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

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

Issue 956223002: Rename DataReductionProxyUsageStats to DataReductionProxyBypassStats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 years, 8 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 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"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_bypa ss_stats.h"
15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_service_client.h" 16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_service_client.h"
16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h" 17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h"
17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_requ est_options.h" 18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_requ est_options.h"
18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv ice.h" 19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv ice.h"
19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings_test_utils.h" 20 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings_test_utils.h"
20 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_usag e_stats.h"
21 #include "net/base/backoff_entry.h" 21 #include "net/base/backoff_entry.h"
22 #include "net/base/capturing_net_log.h" 22 #include "net/base/capturing_net_log.h"
23 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
24 24
25 class TestingPrefServiceSimple; 25 class TestingPrefServiceSimple;
26 26
27 namespace base { 27 namespace base {
28 class MessageLoopForUI; 28 class MessageLoopForUI;
29 } 29 }
30 30
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 // Returns the underlying |DataReductionProxyMutableConfigValues|. This can 318 // Returns the underlying |DataReductionProxyMutableConfigValues|. This can
319 // only be called if built with WithConfigClient. 319 // only be called if built with WithConfigClient.
320 DataReductionProxyMutableConfigValues* mutable_config_values(); 320 DataReductionProxyMutableConfigValues* mutable_config_values();
321 321
322 // Returns the underlying |TestDataReductionProxyConfigServiceClient|. This 322 // Returns the underlying |TestDataReductionProxyConfigServiceClient|. This
323 // can only be called if built with WithTestConfigClient. 323 // can only be called if built with WithTestConfigClient.
324 TestDataReductionProxyConfigServiceClient* test_config_client(); 324 TestDataReductionProxyConfigServiceClient* test_config_client();
325 325
326 // Obtains a callback for notifying that the Data Reduction Proxy is no 326 // Obtains a callback for notifying that the Data Reduction Proxy is no
327 // longer reachable. 327 // longer reachable.
328 DataReductionProxyUsageStats::UnreachableCallback 328 DataReductionProxyBypassStats::UnreachableCallback
329 unreachable_callback() const; 329 unreachable_callback() const;
330 330
331 scoped_refptr<base::SingleThreadTaskRunner> task_runner() const { 331 scoped_refptr<base::SingleThreadTaskRunner> task_runner() const {
332 return task_runner_; 332 return task_runner_;
333 } 333 }
334 334
335 TestingPrefServiceSimple* pref_service() { 335 TestingPrefServiceSimple* pref_service() {
336 return simple_pref_service_.get(); 336 return simple_pref_service_.get();
337 } 337 }
338 338
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698