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 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test
_utils.h" | 5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test
_utils.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/prefs/testing_pref_service.h" | 8 #include "base/prefs/testing_pref_service.h" |
9 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_service_client.h" | 9 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_service_client.h" |
10 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_test_utils.h" | 10 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_test_utils.h" |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 } | 560 } |
561 | 561 |
562 TestDataReductionProxyConfigServiceClient* | 562 TestDataReductionProxyConfigServiceClient* |
563 DataReductionProxyTestContext::test_config_client() { | 563 DataReductionProxyTestContext::test_config_client() { |
564 DCHECK(test_context_flags_ & | 564 DCHECK(test_context_flags_ & |
565 DataReductionProxyTestContext::USE_TEST_CONFIG_CLIENT); | 565 DataReductionProxyTestContext::USE_TEST_CONFIG_CLIENT); |
566 return reinterpret_cast<TestDataReductionProxyConfigServiceClient*>( | 566 return reinterpret_cast<TestDataReductionProxyConfigServiceClient*>( |
567 io_data_->config_client()); | 567 io_data_->config_client()); |
568 } | 568 } |
569 | 569 |
570 DataReductionProxyUsageStats::UnreachableCallback | 570 DataReductionProxyBypassStats::UnreachableCallback |
571 DataReductionProxyTestContext::unreachable_callback() const { | 571 DataReductionProxyTestContext::unreachable_callback() const { |
572 return base::Bind(&DataReductionProxySettings::SetUnreachable, | 572 return base::Bind(&DataReductionProxySettings::SetUnreachable, |
573 base::Unretained(settings_.get())); | 573 base::Unretained(settings_.get())); |
574 } | 574 } |
575 | 575 |
576 } // namespace data_reduction_proxy | 576 } // namespace data_reduction_proxy |
OLD | NEW |