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

Side by Side Diff: components/web_resource/resource_request_allowed_notifier_unittest.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/macros.h"
5 #include "base/prefs/testing_pref_service.h" 6 #include "base/prefs/testing_pref_service.h"
6 #include "components/web_resource/eula_accepted_notifier.h" 7 #include "components/web_resource/eula_accepted_notifier.h"
7 #include "components/web_resource/resource_request_allowed_notifier_test_util.h" 8 #include "components/web_resource/resource_request_allowed_notifier_test_util.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 10
10 namespace web_resource { 11 namespace web_resource {
11 12
12 // Override NetworkChangeNotifier to simulate connection type changes for tests. 13 // Override NetworkChangeNotifier to simulate connection type changes for tests.
13 class TestNetworkChangeNotifier : public net::NetworkChangeNotifier { 14 class TestNetworkChangeNotifier : public net::NetworkChangeNotifier {
14 public: 15 public:
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 DisableEulaAndNetwork(); 271 DisableEulaAndNetwork();
271 272
272 SimulateNetworkConnectionChange(net::NetworkChangeNotifier::CONNECTION_WIFI); 273 SimulateNetworkConnectionChange(net::NetworkChangeNotifier::CONNECTION_WIFI);
273 EXPECT_FALSE(was_notified()); 274 EXPECT_FALSE(was_notified());
274 275
275 SimulateEulaAccepted(); 276 SimulateEulaAccepted();
276 EXPECT_FALSE(was_notified()); 277 EXPECT_FALSE(was_notified());
277 } 278 }
278 279
279 } // namespace web_resource 280 } // namespace web_resource
OLDNEW
« no previous file with comments | « components/web_resource/resource_request_allowed_notifier_test_util.h ('k') | components/web_resource/web_resource_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698