OLD | NEW |
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 #include "components/data_reduction_proxy/browser/data_reduction_proxy_settings.
h" | 5 #include "components/data_reduction_proxy/browser/data_reduction_proxy_settings.
h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/md5.h" | 8 #include "base/md5.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 EXPECT_FALSE(settings->params()->allowed()); | 406 EXPECT_FALSE(settings->params()->allowed()); |
407 EXPECT_CALL(*settings, RecordStartupState(PROXY_NOT_AVAILABLE)); | 407 EXPECT_CALL(*settings, RecordStartupState(PROXY_NOT_AVAILABLE)); |
408 | 408 |
409 scoped_ptr<DataReductionProxyConfigurator> configurator( | 409 scoped_ptr<DataReductionProxyConfigurator> configurator( |
410 new TestDataReductionProxyConfig()); | 410 new TestDataReductionProxyConfig()); |
411 settings_->SetProxyConfigurator(configurator.get()); | 411 settings_->SetProxyConfigurator(configurator.get()); |
412 scoped_refptr<net::TestURLRequestContextGetter> request_context = | 412 scoped_refptr<net::TestURLRequestContextGetter> request_context = |
413 new net::TestURLRequestContextGetter(base::MessageLoopProxy::current()); | 413 new net::TestURLRequestContextGetter(base::MessageLoopProxy::current()); |
414 settings_->InitDataReductionProxySettings( | 414 settings_->InitDataReductionProxySettings( |
415 &pref_service_, | 415 &pref_service_, |
416 &pref_service_, | |
417 request_context.get()); | 416 request_context.get()); |
418 settings_->SetOnDataReductionEnabledCallback( | 417 settings_->SetOnDataReductionEnabledCallback( |
419 base::Bind(&DataReductionProxySettingsTestBase:: | 418 base::Bind(&DataReductionProxySettingsTestBase:: |
420 RegisterSyntheticFieldTrialCallback, | 419 RegisterSyntheticFieldTrialCallback, |
421 base::Unretained(this))); | 420 base::Unretained(this))); |
422 | 421 |
423 base::MessageLoop::current()->RunUntilIdle(); | 422 base::MessageLoop::current()->RunUntilIdle(); |
424 } | 423 } |
425 | 424 |
426 } // namespace data_reduction_proxy | 425 } // namespace data_reduction_proxy |
OLD | NEW |