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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc

Issue 1255263002: Remove a race around NetworkChangeNotifier::test_notifications_only_ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Possible iOS fix Created 5 years, 5 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: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc
index 2dd5da25802fedefa04f410b363fad746d0ab997..e38a603a49c867a91959612863f508aa156f0423 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc
@@ -85,9 +85,9 @@ class DataReductionProxyProtocolTest : public testing::Test {
}
void SetUp() override {
+ net::NetworkChangeNotifier::SetTestNotificationsOnly(true);
test_context_ = DataReductionProxyTestContext::Builder().Build();
network_change_notifier_.reset(net::NetworkChangeNotifier::CreateMock());
- net::NetworkChangeNotifier::SetTestNotificationsOnly(true);
test_context_->RunUntilIdle();
}

Powered by Google App Engine
This is Rietveld 408576698