Index: net/quic/quic_stream_factory_test.cc |
diff --git a/net/quic/quic_stream_factory_test.cc b/net/quic/quic_stream_factory_test.cc |
index 95a093a9492e775d73993ea5097f7ab691b0a817..030e5df73f212a2e9c312e487e9d363f32bda374 100644 |
--- a/net/quic/quic_stream_factory_test.cc |
+++ b/net/quic/quic_stream_factory_test.cc |
@@ -212,14 +212,14 @@ class MockNetworkChangeNotifier : public NetworkChangeNotifier { |
NetworkChangeNotifier::NotifyObserversOfSpecificNetworkChange( |
NetworkChangeNotifier::SOON_TO_DISCONNECT, network); |
// Spin the message loop so the notification is delivered. |
- base::MessageLoop::current()->RunUntilIdle(); |
+ base::RunLoop().RunUntilIdle(); |
} |
void NotifyNetworkDisconnected(NetworkChangeNotifier::NetworkHandle network) { |
NetworkChangeNotifier::NotifyObserversOfSpecificNetworkChange( |
NetworkChangeNotifier::DISCONNECTED, network); |
// Spin the message loop so the notification is delivered. |
- base::MessageLoop::current()->RunUntilIdle(); |
+ base::RunLoop().RunUntilIdle(); |
} |
private: |
@@ -441,7 +441,7 @@ class QuicStreamFactoryTestBase { |
void NotifyIPAddressChanged() { |
NetworkChangeNotifier::NotifyObserversOfIPAddressChangeForTests(); |
// Spin the message loop so the notification is delivered. |
- base::MessageLoop::current()->RunUntilIdle(); |
+ base::RunLoop().RunUntilIdle(); |
} |
std::unique_ptr<QuicEncryptedPacket> ConstructGetRequestPacket( |