diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-14 18:36:51 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-14 18:36:51 +0000 |
commit | b4c62ebe8a5bce337c64f9776c225cafc6a51a16 (patch) | |
tree | 5fff0a30ab02ba08b8b9ff2dd2a675d36353c181 /net/android/network_change_notifier_android_unittest.cc | |
parent | 90bb38d8b23ab609bd95b209b28df1eff5940cd5 (diff) | |
download | chromium_src-b4c62ebe8a5bce337c64f9776c225cafc6a51a16.zip chromium_src-b4c62ebe8a5bce337c64f9776c225cafc6a51a16.tar.gz chromium_src-b4c62ebe8a5bce337c64f9776c225cafc6a51a16.tar.bz2 |
net: Update calls from RunAllPending() to RunUntilIdle().
RunAllPending() is deprecated and we should switch to RunUntilIdle().
BUG=131220
TBR=willchan@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11361263
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167705 0039d316-1c4b-4281-b951-d872f2087c98
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, 3 insertions, 3 deletions
diff --git a/net/android/network_change_notifier_android_unittest.cc b/net/android/network_change_notifier_android_unittest.cc index 356ac4c..9b86470 100644 --- a/net/android/network_change_notifier_android_unittest.cc +++ b/net/android/network_change_notifier_android_unittest.cc @@ -80,21 +80,21 @@ TEST_F(NetworkChangeNotifierAndroidTest, ObserverNotified) { observer()->current_connection()); ForceConnectivityState(false); - MessageLoop::current()->RunAllPending(); + MessageLoop::current()->RunUntilIdle(); EXPECT_EQ(1, observer()->times_connection_type_has_been_changed()); EXPECT_EQ(NetworkChangeNotifier::CONNECTION_NONE, observer()->current_connection()); ForceConnectivityState(false); - MessageLoop::current()->RunAllPending(); + MessageLoop::current()->RunUntilIdle(); EXPECT_EQ(1, observer()->times_connection_type_has_been_changed()); EXPECT_EQ(NetworkChangeNotifier::CONNECTION_NONE, observer()->current_connection()); ForceConnectivityState(true); - MessageLoop::current()->RunAllPending(); + MessageLoop::current()->RunUntilIdle(); EXPECT_EQ(2, observer()->times_connection_type_has_been_changed()); EXPECT_EQ(NetworkChangeNotifier::CONNECTION_UNKNOWN, |