| Index: net/quic/chromium/mock_network_change_notifier.cc
|
| diff --git a/net/quic/chromium/mock_network_change_notifier.cc b/net/quic/chromium/mock_network_change_notifier.cc
|
| index ee9687c6a8de36cb46e7fabba632edfaabd1b3d7..141e37e0712337d106420f9b04ee7862a3694bc2 100644
|
| --- a/net/quic/chromium/mock_network_change_notifier.cc
|
| +++ b/net/quic/chromium/mock_network_change_notifier.cc
|
| @@ -39,18 +39,28 @@ void MockNetworkChangeNotifier::GetCurrentConnectedNetworks(
|
|
|
| void MockNetworkChangeNotifier::NotifyNetworkMadeDefault(
|
| NetworkChangeNotifier::NetworkHandle network) {
|
| + QueueNetworkMadeDefault(network);
|
| + // Spin the message loop so the notification is delivered.
|
| + base::RunLoop().RunUntilIdle();
|
| +}
|
| +
|
| +void MockNetworkChangeNotifier::QueueNetworkMadeDefault(
|
| + NetworkChangeNotifier::NetworkHandle network) {
|
| NetworkChangeNotifier::NotifyObserversOfSpecificNetworkChange(
|
| NetworkChangeNotifier::MADE_DEFAULT, network);
|
| +}
|
| +
|
| +void MockNetworkChangeNotifier::NotifyNetworkDisconnected(
|
| + NetworkChangeNotifier::NetworkHandle network) {
|
| + QueueNetworkDisconnected(network);
|
| // Spin the message loop so the notification is delivered.
|
| base::RunLoop().RunUntilIdle();
|
| }
|
|
|
| -void MockNetworkChangeNotifier::NotifyNetworkDisconnected(
|
| +void MockNetworkChangeNotifier::QueueNetworkDisconnected(
|
| NetworkChangeNotifier::NetworkHandle network) {
|
| NetworkChangeNotifier::NotifyObserversOfSpecificNetworkChange(
|
| NetworkChangeNotifier::DISCONNECTED, network);
|
| - // Spin the message loop so the notification is delivered.
|
| - base::RunLoop().RunUntilIdle();
|
| }
|
|
|
| ScopedMockNetworkChangeNotifier::ScopedMockNetworkChangeNotifier()
|
|
|