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/core/browser/data_reduction_proxy_netw
ork_delegate.h" | 5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_netw
ork_delegate.h" |
6 | 6 |
7 #include "base/metrics/field_trial.h" | 7 #include "base/metrics/field_trial.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/test/histogram_tester.h" | 9 #include "base/test/histogram_tester.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_test_utils.h" | 11 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_test_utils.h" |
12 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metr
ics.h" | 12 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metr
ics.h" |
13 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_requ
est_options.h" | 13 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_requ
est_options.h" |
14 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test
_utils.h" | 14 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test
_utils.h" |
15 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade
rs_test_utils.h" | 15 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade
rs_test_utils.h" |
16 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s_test_utils.h" | 16 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s_test_utils.h" |
17 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_
names.h" | 17 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_
names.h" |
18 #include "net/base/host_port_pair.h" | 18 #include "net/base/host_port_pair.h" |
19 #include "net/base/load_flags.h" | 19 #include "net/base/load_flags.h" |
20 #include "net/http/http_response_headers.h" | 20 #include "net/http/http_response_headers.h" |
21 #include "net/log/capturing_net_log.h" | |
22 #include "net/log/net_log.h" | 21 #include "net/log/net_log.h" |
| 22 #include "net/log/test_net_log.h" |
23 #include "net/proxy/proxy_config.h" | 23 #include "net/proxy/proxy_config.h" |
24 #include "net/proxy/proxy_server.h" | 24 #include "net/proxy/proxy_server.h" |
25 #include "net/url_request/url_request.h" | 25 #include "net/url_request/url_request.h" |
26 #include "net/url_request/url_request_job_factory_impl.h" | 26 #include "net/url_request/url_request_job_factory_impl.h" |
27 #include "net/url_request/url_request_test_job.h" | 27 #include "net/url_request/url_request_test_job.h" |
28 #include "net/url_request/url_request_test_util.h" | 28 #include "net/url_request/url_request_test_util.h" |
29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
30 | 30 |
31 namespace data_reduction_proxy { | 31 namespace data_reduction_proxy { |
32 namespace { | 32 namespace { |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 &result); | 392 &result); |
393 EXPECT_TRUE(result.is_direct()); | 393 EXPECT_TRUE(result.is_direct()); |
394 | 394 |
395 OnResolveProxyHandler(url, load_flags, data_reduction_proxy_config, | 395 OnResolveProxyHandler(url, load_flags, data_reduction_proxy_config, |
396 empty_proxy_retry_info, config(), | 396 empty_proxy_retry_info, config(), |
397 &other_proxy_info); | 397 &other_proxy_info); |
398 EXPECT_FALSE(other_proxy_info.is_direct()); | 398 EXPECT_FALSE(other_proxy_info.is_direct()); |
399 } | 399 } |
400 | 400 |
401 } // namespace data_reduction_proxy | 401 } // namespace data_reduction_proxy |
OLD | NEW |