Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: net/quic/chromium/mock_network_change_notifier.cc

Issue 2329853002: Introduces ability for session to wait on a migration trigger for a new (Closed)
Patch Set: sync Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 141e37e0712337d106420f9b04ee7862a3694bc2..e72ba2501cf89c0d16e0712e010680f277653af5 100644
--- a/net/quic/chromium/mock_network_change_notifier.cc
+++ b/net/quic/chromium/mock_network_change_notifier.cc
@@ -63,6 +63,14 @@ void MockNetworkChangeNotifier::QueueNetworkDisconnected(
NetworkChangeNotifier::DISCONNECTED, network);
}
+void MockNetworkChangeNotifier::NotifyNetworkConnected(
+ NetworkChangeNotifier::NetworkHandle network) {
+ NetworkChangeNotifier::NotifyObserversOfSpecificNetworkChange(
+ NetworkChangeNotifier::CONNECTED, network);
+ // Spin the message loop so the notification is delivered.
+ base::RunLoop().RunUntilIdle();
+}
+
ScopedMockNetworkChangeNotifier::ScopedMockNetworkChangeNotifier()
: disable_network_change_notifier_for_tests_(
new NetworkChangeNotifier::DisableForTest()),

Powered by Google App Engine
This is Rietveld 408576698