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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "components/proxy_config/proxy_config_pref_names.h" | 23 #include "components/proxy_config/proxy_config_pref_names.h" |
24 #include "components/variations/variations_associated_data.h" | 24 #include "components/variations/variations_associated_data.h" |
25 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
26 #include "content/public/test/test_browser_thread_bundle.h" | 26 #include "content/public/test/test_browser_thread_bundle.h" |
27 #include "extensions/features/features.h" | 27 #include "extensions/features/features.h" |
28 #include "net/cert_net/nss_ocsp.h" | 28 #include "net/cert_net/nss_ocsp.h" |
29 #include "net/http/http_auth_preferences.h" | 29 #include "net/http/http_auth_preferences.h" |
30 #include "net/http/http_auth_scheme.h" | 30 #include "net/http/http_auth_scheme.h" |
31 #include "net/http/http_network_session.h" | 31 #include "net/http/http_network_session.h" |
32 #include "net/quic/chromium/quic_stream_factory.h" | 32 #include "net/quic/chromium/quic_stream_factory.h" |
33 #include "net/quic/core/quic_protocol.h" | 33 #include "net/quic/core/quic_tag.h" |
| 34 #include "net/quic/core/quic_versions.h" |
34 #include "testing/gmock/include/gmock/gmock.h" | 35 #include "testing/gmock/include/gmock/gmock.h" |
35 #include "testing/gtest/include/gtest/gtest.h" | 36 #include "testing/gtest/include/gtest/gtest.h" |
36 | 37 |
37 #if BUILDFLAG(ENABLE_EXTENSIONS) | 38 #if BUILDFLAG(ENABLE_EXTENSIONS) |
38 #include "chrome/browser/extensions/event_router_forwarder.h" | 39 #include "chrome/browser/extensions/event_router_forwarder.h" |
39 #endif | 40 #endif |
40 | 41 |
41 #if defined(OS_CHROMEOS) | 42 #if defined(OS_CHROMEOS) |
42 #include "chromeos/dbus/dbus_thread_manager.h" | 43 #include "chromeos/dbus/dbus_thread_manager.h" |
43 #include "chromeos/network/network_handler.h" | 44 #include "chromeos/network/network_handler.h" |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 command_line_.AppendSwitchASCII("testing-fixed-http-port", "42"); | 461 command_line_.AppendSwitchASCII("testing-fixed-http-port", "42"); |
461 command_line_.AppendSwitchASCII("testing-fixed-https-port", "137"); | 462 command_line_.AppendSwitchASCII("testing-fixed-https-port", "137"); |
462 | 463 |
463 ConfigureParamsFromFieldTrialsAndCommandLine(); | 464 ConfigureParamsFromFieldTrialsAndCommandLine(); |
464 | 465 |
465 EXPECT_EQ(42u, params_.testing_fixed_http_port); | 466 EXPECT_EQ(42u, params_.testing_fixed_http_port); |
466 EXPECT_EQ(137u, params_.testing_fixed_https_port); | 467 EXPECT_EQ(137u, params_.testing_fixed_https_port); |
467 } | 468 } |
468 | 469 |
469 } // namespace test | 470 } // namespace test |
OLD | NEW |