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_requ
est_options.h" | 5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_requ
est_options.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/md5.h" | 11 #include "base/md5.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/metrics/field_trial.h" | 13 #include "base/metrics/field_trial.h" |
14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "build/build_config.h" |
17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_test_utils.h" | 18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_test_utils.h" |
18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test
_utils.h" | 19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test
_utils.h" |
19 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s_test_utils.h" | 20 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s_test_utils.h" |
20 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc
hes.h" | 21 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc
hes.h" |
21 #include "net/base/auth.h" | 22 #include "net/base/auth.h" |
22 #include "net/base/host_port_pair.h" | 23 #include "net/base/host_port_pair.h" |
23 #include "net/base/load_flags.h" | 24 #include "net/base/load_flags.h" |
24 #include "net/proxy/proxy_server.h" | 25 #include "net/proxy/proxy_server.h" |
25 #include "net/url_request/url_request.h" | 26 #include "net/url_request/url_request.h" |
26 #include "net/url_request/url_request_context.h" | 27 #include "net/url_request/url_request_context.h" |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 std::string expected_header; | 290 std::string expected_header; |
290 SetHeaderExpectations(kExpectedSession, kExpectedCredentials, std::string(), | 291 SetHeaderExpectations(kExpectedSession, kExpectedCredentials, std::string(), |
291 kClientStr, std::string(), std::string(), | 292 kClientStr, std::string(), std::string(), |
292 expected_experiments, &expected_header); | 293 expected_experiments, &expected_header); |
293 | 294 |
294 CreateRequestOptions(kBogusVersion); | 295 CreateRequestOptions(kBogusVersion); |
295 VerifyExpectedHeader(params()->DefaultOrigin(), expected_header); | 296 VerifyExpectedHeader(params()->DefaultOrigin(), expected_header); |
296 } | 297 } |
297 | 298 |
298 } // namespace data_reduction_proxy | 299 } // namespace data_reduction_proxy |
OLD | NEW |