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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h

Issue 1221663009: Expose API to store and load data usage stats from UI task runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Breakdown
Patch Set: Add missing Pass. Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h
index e1b78cbec7a41f1aebcade5dc5bddebed180fce0..9462f9081ba8349ee6c152c2d8ce2bf2b8f76e68 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h
@@ -154,7 +154,7 @@ class MockDataReductionProxyService : public DataReductionProxyService {
DataReductionProxySettings* settings,
PrefService* prefs,
net::URLRequestContextGetter* request_context,
- scoped_refptr<base::SingleThreadTaskRunner> io_task_runner);
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
~MockDataReductionProxyService() override;
MOCK_METHOD2(SetProxyPrefs, void(bool enabled, bool at_startup));
@@ -166,7 +166,7 @@ class MockDataReductionProxyService : public DataReductionProxyService {
class TestDataReductionProxyIOData : public DataReductionProxyIOData {
public:
TestDataReductionProxyIOData(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner,
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
scoped_ptr<DataReductionProxyConfig> config,
scoped_ptr<DataReductionProxyEventCreator> event_creator,
scoped_ptr<DataReductionProxyRequestOptions> request_options,
@@ -413,7 +413,7 @@ class DataReductionProxyTestContext {
};
DataReductionProxyTestContext(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner,
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
scoped_ptr<TestingPrefServiceSimple> simple_pref_service,
scoped_ptr<net::TestNetLog> net_log,
scoped_refptr<net::URLRequestContextGetter> request_context_getter,

Powered by Google App Engine
This is Rietveld 408576698