OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/cronet/url_request_context_config.h" | 5 #include "components/cronet/url_request_context_config.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "net/cert/cert_verifier.h" | 9 #include "net/cert/cert_verifier.h" |
10 #include "net/http/http_network_session.h" | 10 #include "net/http/http_network_session.h" |
| 11 #include "net/log/net_log.h" |
| 12 #include "net/log/net_log_with_source.h" |
11 #include "net/proxy/proxy_config.h" | 13 #include "net/proxy/proxy_config.h" |
12 #include "net/proxy/proxy_config_service_fixed.h" | 14 #include "net/proxy/proxy_config_service_fixed.h" |
13 #include "net/url_request/url_request_context.h" | 15 #include "net/url_request/url_request_context.h" |
14 #include "net/url_request/url_request_context_builder.h" | 16 #include "net/url_request/url_request_context_builder.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
16 | 18 |
17 namespace cronet { | 19 namespace cronet { |
18 | 20 |
19 TEST(URLRequestContextConfigTest, TestExperimentalOptionPassing) { | 21 TEST(URLRequestContextConfigTest, TestExperimentalOptionPassing) { |
20 URLRequestContextConfig config( | 22 URLRequestContextConfig config( |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 context->GetNetworkSessionParams(); | 168 context->GetNetworkSessionParams(); |
167 | 169 |
168 EXPECT_FALSE(params->quic_close_sessions_on_ip_change); | 170 EXPECT_FALSE(params->quic_close_sessions_on_ip_change); |
169 EXPECT_TRUE(params->quic_migrate_sessions_on_network_change); | 171 EXPECT_TRUE(params->quic_migrate_sessions_on_network_change); |
170 EXPECT_TRUE(params->quic_migrate_sessions_early); | 172 EXPECT_TRUE(params->quic_migrate_sessions_early); |
171 } | 173 } |
172 | 174 |
173 // See stale_host_resolver_unittest.cc for test of StaleDNS options. | 175 // See stale_host_resolver_unittest.cc for test of StaleDNS options. |
174 | 176 |
175 } // namespace cronet | 177 } // namespace cronet |
OLD | NEW |