| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_TEST_U
TILS_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_TEST_U
TILS_H_ |
| 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_TEST_U
TILS_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_TEST_U
TILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 class URLRequestContextStorage; | 36 class URLRequestContextStorage; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace data_reduction_proxy { | 39 namespace data_reduction_proxy { |
| 40 | 40 |
| 41 class DataReductionProxyConfigurator; | 41 class DataReductionProxyConfigurator; |
| 42 class DataReductionProxyEventStore; | 42 class DataReductionProxyEventStore; |
| 43 class DataReductionProxyMutableConfigValues; | 43 class DataReductionProxyMutableConfigValues; |
| 44 class DataReductionProxyRequestOptions; | 44 class DataReductionProxyRequestOptions; |
| 45 class DataReductionProxySettings; | 45 class DataReductionProxySettings; |
| 46 class DataReductionProxyStatisticsPrefs; | 46 class DataReductionProxyCompressionStats; |
| 47 class MockDataReductionProxyConfig; | 47 class MockDataReductionProxyConfig; |
| 48 class TestDataReductionProxyConfig; | 48 class TestDataReductionProxyConfig; |
| 49 class TestDataReductionProxyConfigurator; | 49 class TestDataReductionProxyConfigurator; |
| 50 class TestDataReductionProxyParams; | 50 class TestDataReductionProxyParams; |
| 51 | 51 |
| 52 // Test version of |DataReductionProxyRequestOptions|. | 52 // Test version of |DataReductionProxyRequestOptions|. |
| 53 class TestDataReductionProxyRequestOptions | 53 class TestDataReductionProxyRequestOptions |
| 54 : public DataReductionProxyRequestOptions { | 54 : public DataReductionProxyRequestOptions { |
| 55 public: | 55 public: |
| 56 TestDataReductionProxyRequestOptions( | 56 TestDataReductionProxyRequestOptions( |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 148 |
| 149 TestTickClock tick_clock_; | 149 TestTickClock tick_clock_; |
| 150 TestBackoffEntry test_backoff_entry_; | 150 TestBackoffEntry test_backoff_entry_; |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 // Test version of |DataReductionProxyService|, which permits mocking of various | 153 // Test version of |DataReductionProxyService|, which permits mocking of various |
| 154 // methods. | 154 // methods. |
| 155 class MockDataReductionProxyService : public DataReductionProxyService { | 155 class MockDataReductionProxyService : public DataReductionProxyService { |
| 156 public: | 156 public: |
| 157 MockDataReductionProxyService( | 157 MockDataReductionProxyService( |
| 158 scoped_ptr<DataReductionProxyStatisticsPrefs> statistics_prefs, | 158 scoped_ptr<DataReductionProxyCompressionStats> compression_stats, |
| 159 DataReductionProxySettings* settings, | 159 DataReductionProxySettings* settings, |
| 160 net::URLRequestContextGetter* request_context); | 160 net::URLRequestContextGetter* request_context); |
| 161 ~MockDataReductionProxyService() override; | 161 ~MockDataReductionProxyService() override; |
| 162 | 162 |
| 163 MOCK_METHOD2(SecureProxyCheck, | 163 MOCK_METHOD2(SecureProxyCheck, |
| 164 void(const GURL& secure_proxy_check_url, | 164 void(const GURL& secure_proxy_check_url, |
| 165 FetcherResponseCallback fetcher_callback)); | 165 FetcherResponseCallback fetcher_callback)); |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 // Test version of |DataReductionProxyIOData|, which bypasses initialization in | 168 // Test version of |DataReductionProxyIOData|, which bypasses initialization in |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 scoped_ptr<DataReductionProxySettings> settings_; | 418 scoped_ptr<DataReductionProxySettings> settings_; |
| 419 | 419 |
| 420 TestDataReductionProxyParams* params_; | 420 TestDataReductionProxyParams* params_; |
| 421 | 421 |
| 422 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyTestContext); | 422 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyTestContext); |
| 423 }; | 423 }; |
| 424 | 424 |
| 425 } // namespace data_reduction_proxy | 425 } // namespace data_reduction_proxy |
| 426 | 426 |
| 427 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_TES
T_UTILS_H_ | 427 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_TES
T_UTILS_H_ |
| OLD | NEW |