diff options
author | jri <jri@chromium.org> | 2015-12-03 10:50:22 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-03 18:51:15 +0000 |
commit | c94943b28b4876071a8d509f478e4c63ebb75ca2 (patch) | |
tree | 6459f9462c99494ad7a40c26357962994baacce3 /net/android/network_change_notifier_android_unittest.cc | |
parent | aa2a5a499c073ac079f9f80ecbd208af26becc9f (diff) | |
download | chromium_src-c94943b28b4876071a8d509f478e4c63ebb75ca2.zip chromium_src-c94943b28b4876071a8d509f478e4c63ebb75ca2.tar.gz chromium_src-c94943b28b4876071a8d509f478e4c63ebb75ca2.tar.bz2 |
Adding platform support check for NetworkObserver
Review URL: https://codereview.chromium.org/1454313002
Cr-Commit-Position: refs/heads/master@{#363020}
Diffstat (limited to 'net/android/network_change_notifier_android_unittest.cc')
-rw-r--r-- | net/android/network_change_notifier_android_unittest.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/android/network_change_notifier_android_unittest.cc b/net/android/network_change_notifier_android_unittest.cc index fdb94ef..bd5df46 100644 --- a/net/android/network_change_notifier_android_unittest.cc +++ b/net/android/network_change_notifier_android_unittest.cc @@ -317,6 +317,10 @@ class NetworkChangeNotifierAndroidTest &other_connection_type_observer_); } + void ForceNetworkHandlesSupportedForTesting() { + notifier_->ForceNetworkHandlesSupportedForTesting(); + } + NetworkChangeNotifierObserver connection_type_observer_; NetworkChangeNotifierObserver other_connection_type_observer_; NetworkChangeNotifier::DisableForTest disable_for_test_; @@ -387,6 +391,8 @@ TEST_F(NetworkChangeNotifierAndroidTest, InitialSignal) { } TEST_F(NetworkChangeNotifierAndroidTest, NetworkCallbacks) { + ForceNetworkHandlesSupportedForTesting(); + TestNetworkObserver network_observer; NetworkChangeNotifier::AddNetworkObserver(&network_observer); |