webrtc/sdk/android/native_unittests
Byoungchan Lee a639528a43 Fix AndroidNetworkMonitorTests crash due to DCHECK failure
AndroidNetworkMonitor::SetNetworkInfos assumes this method is called
only once, but unittests calls it twice.
One is called by the startMonitoring Java method, and the other is
called by each test.
Because of this, these tests will not succeed if dcheck_always_on is true.

To solve this problem, use OnNetworkConnected_n
instead of SetNetworkInfos in each test.

Bug: None
Change-Id: I027706ad5ccd597a91e3a66f15e181ee22d4aaa9
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/285861
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Jonas Oreland <jonaso@webrtc.org>
Commit-Queue: Daniel.L (Byoungchan) Lee <daniel.l@hpcnt.com>
Cr-Commit-Position: refs/heads/main@{#38798}
2022-12-02 13:37:27 +00:00
..
audio_device rtc::Event: Finalize migration to TimeDelta. 2022-08-19 13:44:57 +00:00
codecs Rename ..BitrateThresholds to ..BitrateLimits. 2019-07-03 14:50:46 +00:00
org/webrtc Revert "Reland "Reland "Delete old Android ADM.""" 2022-06-28 14:37:43 +00:00
peerconnection Revert "Reland "Reland "Delete old Android ADM.""" 2022-06-28 14:37:43 +00:00
stacktrace rtc::Event: Finalize migration to TimeDelta. 2022-08-19 13:44:57 +00:00
video Mass refactoring: Change JNI #includes to use full paths (webrtc/). 2019-06-26 08:23:14 +00:00
android_network_monitor_unittest.cc Fix AndroidNetworkMonitorTests crash due to DCHECK failure 2022-12-02 13:37:27 +00:00
application_context_provider.cc Revert "Reland "Reland "Delete old Android ADM.""" 2022-06-28 14:37:43 +00:00
application_context_provider.h Revert "Reland "Reland "Delete old Android ADM.""" 2022-06-28 14:37:43 +00:00
DEPS Add unit tests for Android audio device module 2018-04-12 09:27:45 +00:00
java_types_unittest.cc Mass refactoring: Change JNI #includes to use full paths (webrtc/). 2019-06-26 08:23:14 +00:00
test_jni_onload.cc