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

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: comments addressed 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
« no previous file with comments | « net/quic/chromium/mock_network_change_notifier.h ('k') | net/quic/chromium/quic_chromium_client_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()),
« no previous file with comments | « net/quic/chromium/mock_network_change_notifier.h ('k') | net/quic/chromium/quic_chromium_client_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698