OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 #include "base/metrics/field_trial.h" | 6 #include "base/metrics/field_trial.h" |
7 #include "base/metrics/statistics_recorder.h" | 7 #include "base/metrics/statistics_recorder.h" |
8 #include "base/prefs/pref_service.h" | |
9 #include "chrome/browser/net/prediction_options.h" | 8 #include "chrome/browser/net/prediction_options.h" |
10 #include "chrome/browser/predictors/resource_prefetch_common.h" | 9 #include "chrome/browser/predictors/resource_prefetch_common.h" |
11 #include "chrome/browser/predictors/resource_prefetch_predictor.h" | 10 #include "chrome/browser/predictors/resource_prefetch_predictor.h" |
12 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" | 11 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" |
13 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
16 #include "chrome/test/base/in_process_browser_test.h" | 15 #include "chrome/test/base/in_process_browser_test.h" |
17 #include "chrome/test/base/testing_profile.h" | 16 #include "chrome/test/base/testing_profile.h" |
| 17 #include "components/prefs/pref_service.h" |
18 #include "components/variations/entropy_provider.h" | 18 #include "components/variations/entropy_provider.h" |
19 #include "content/public/test/test_browser_thread.h" | 19 #include "content/public/test/test_browser_thread.h" |
20 #include "net/base/network_change_notifier.h" | 20 #include "net/base/network_change_notifier.h" |
21 | 21 |
22 using chrome_browser_net::NetworkPredictionOptions; | 22 using chrome_browser_net::NetworkPredictionOptions; |
23 using net::NetworkChangeNotifier; | 23 using net::NetworkChangeNotifier; |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 class MockNetworkChangeNotifierWIFI : public NetworkChangeNotifier { | 27 class MockNetworkChangeNotifierWIFI : public NetworkChangeNotifier { |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 scoped_ptr<NetworkChangeNotifier> mock(new MockNetworkChangeNotifierWIFI); | 322 scoped_ptr<NetworkChangeNotifier> mock(new MockNetworkChangeNotifierWIFI); |
323 TestIsPrefetchLearning(config); | 323 TestIsPrefetchLearning(config); |
324 } | 324 } |
325 { | 325 { |
326 scoped_ptr<NetworkChangeNotifier> mock(new MockNetworkChangeNotifier4G); | 326 scoped_ptr<NetworkChangeNotifier> mock(new MockNetworkChangeNotifier4G); |
327 TestIsPrefetchLearning(config); | 327 TestIsPrefetchLearning(config); |
328 } | 328 } |
329 } | 329 } |
330 | 330 |
331 } // namespace predictors | 331 } // namespace predictors |
OLD | NEW |