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

Side by Side Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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 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 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN GS_TEST_UTILS_H_ 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN GS_TEST_UTILS_H_
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN GS_TEST_UTILS_H_ 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN GS_TEST_UTILS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 11
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/time/clock.h" 13 #include "base/time/clock.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h" 15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h"
16 #include "components/prefs/testing_pref_service.h" 16 #include "components/prefs/testing_pref_service.h"
17 #include "net/log/test_net_log.h" 17 #include "net/log/test_net_log.h"
18 #include "net/url_request/test_url_fetcher_factory.h" 18 #include "net/url_request/test_url_fetcher_factory.h"
19 #include "net/url_request/url_request_test_util.h" 19 #include "net/url_request/url_request_test_util.h"
20 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 class PrefService; 23 class PrefService;
24 class TestingPrefServiceSimple;
25 24
26 namespace data_reduction_proxy { 25 namespace data_reduction_proxy {
27 26
28 class DataReductionProxyTestContext; 27 class DataReductionProxyTestContext;
29 class MockDataReductionProxyConfig;
30 28
31 template <class C> 29 template <class C>
32 class MockDataReductionProxySettings : public C { 30 class MockDataReductionProxySettings : public C {
33 public: 31 public:
34 MockDataReductionProxySettings<C>() : C() { 32 MockDataReductionProxySettings<C>() : C() {
35 } 33 }
36 MOCK_METHOD0(GetOriginalProfilePrefs, PrefService*()); 34 MOCK_METHOD0(GetOriginalProfilePrefs, PrefService*());
37 MOCK_METHOD0(GetLocalStatePrefs, PrefService*()); 35 MOCK_METHOD0(GetLocalStatePrefs, PrefService*());
38 MOCK_METHOD1(RecordStartupState, 36 MOCK_METHOD1(RecordStartupState,
39 void(ProxyStartupState state)); 37 void(ProxyStartupState state));
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 bool promo_allowed, 102 bool promo_allowed,
105 bool holdback) override { 103 bool holdback) override {
106 return DataReductionProxySettingsTestBase::ResetSettings<C>( 104 return DataReductionProxySettingsTestBase::ResetSettings<C>(
107 std::move(clock), allowed, fallback_allowed, promo_allowed, holdback); 105 std::move(clock), allowed, fallback_allowed, promo_allowed, holdback);
108 } 106 }
109 }; 107 };
110 108
111 } // namespace data_reduction_proxy 109 } // namespace data_reduction_proxy
112 110
113 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SET TINGS_TEST_UTILS_H_ 111 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SET TINGS_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698