| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc
 | 
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc
 | 
| index 3fe09d6bf326cd569faecf2ce3f152a61e24035c..5c4d80a824ed36d23da77c6a27cc143b3498a823 100644
 | 
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc
 | 
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc
 | 
| @@ -13,30 +13,32 @@
 | 
|  #include "base/base64.h"
 | 
|  #include "base/command_line.h"
 | 
|  #include "base/macros.h"
 | 
|  #include "base/memory/scoped_ptr.h"
 | 
|  #include "base/metrics/field_trial.h"
 | 
|  #include "base/test/histogram_tester.h"
 | 
|  #include "base/test/mock_entropy_provider.h"
 | 
|  #include "base/time/time.h"
 | 
|  #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h"
 | 
|  #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.h"
 | 
| +#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h"
 | 
|  #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h"
 | 
|  #include "components/data_reduction_proxy/core/common/data_reduction_proxy_client_config_parser.h"
 | 
|  #include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
 | 
|  #include "components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h"
 | 
|  #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
 | 
|  #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h"
 | 
|  #include "components/data_reduction_proxy/proto/client_config.pb.h"
 | 
|  #include "net/http/http_response_headers.h"
 | 
|  #include "net/proxy/proxy_server.h"
 | 
|  #include "net/socket/socket_test_util.h"
 | 
| +#include "net/url_request/url_request_test_util.h"
 | 
|  #include "testing/gmock/include/gmock/gmock.h"
 | 
|  #include "testing/gtest/include/gtest/gtest.h"
 | 
|  #include "url/gurl.h"
 | 
|  
 | 
|  namespace {
 | 
|  
 | 
|  // The following values should match those in
 | 
|  // DataReductionProxyConfigServiceClientTest.config_:
 | 
|  const char kSuccessOrigin[] = "https://origin.net:443";
 | 
|  const char kSuccessFallback[] = "fallback.net:80";
 | 
| @@ -111,32 +113,33 @@ class DataReductionProxyConfigServiceClientTest : public testing::Test {
 | 
|      test_context_ =
 | 
|          DataReductionProxyTestContext::Builder()
 | 
|              .WithParamsDefinitions(TestDataReductionProxyParams::HAS_EVERYTHING)
 | 
|              .WithURLRequestContext(&context_)
 | 
|              .WithMockClientSocketFactory(&mock_socket_factory_)
 | 
|              .WithTestConfigurator()
 | 
|              .WithMockRequestOptions()
 | 
|              .WithTestConfigClient()
 | 
|              .Build();
 | 
|      context_.set_client_socket_factory(&mock_socket_factory_);
 | 
| +
 | 
| +    delegate_ = test_context_->io_data()->CreateProxyDelegate();
 | 
| +    context_.set_proxy_delegate(delegate_.get());
 | 
| +
 | 
|      context_.Init();
 | 
|      ResetBackoffEntryReleaseTime();
 | 
|      test_context_->test_config_client()->SetNow(base::Time::UnixEpoch());
 | 
|      test_context_->test_config_client()->SetEnabled(true);
 | 
|      enabled_proxies_for_http_ =
 | 
|          test_context_->test_params()->proxies_for_http();
 | 
|      test_context_->test_config_client()->SetConfigServiceURL(
 | 
|          GURL("http://configservice.com"));
 | 
|  
 | 
| -    delegate_.reset(
 | 
| -        new DataReductionProxyDelegate(request_options(), config()));
 | 
| -
 | 
|      // Set up the various test ClientConfigs.
 | 
|      ClientConfig config =
 | 
|          CreateConfig(kSuccessSessionKey, kConfingRefreshDurationSeconds, 0,
 | 
|                       ProxyServer_ProxyScheme_HTTPS, "origin.net", 443,
 | 
|                       ProxyServer_ProxyScheme_HTTP, "fallback.net", 80);
 | 
|      config.SerializeToString(&config_);
 | 
|      encoded_config_ = EncodeConfig(config);
 | 
|  
 | 
|      ClientConfig previous_config =
 | 
|          CreateConfig(kOldSuccessSessionKey, kConfingRefreshDurationSeconds, 0,
 | 
| 
 |