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 "net/cert/cert_verifier.h" | 7 #include "net/cert/cert_verifier.h" |
8 #include "net/http/http_network_session.h" | 8 #include "net/http/http_network_session.h" |
9 #include "net/proxy/proxy_config.h" | 9 #include "net/proxy/proxy_config.h" |
10 #include "net/proxy/proxy_config_service_fixed.h" | 10 #include "net/proxy/proxy_config_service_fixed.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 false, | 31 false, |
32 // Storage path for http cache and cookie storage. | 32 // Storage path for http cache and cookie storage. |
33 "/data/data/org.chromium.net/app_cronet_test/test_storage", | 33 "/data/data/org.chromium.net/app_cronet_test/test_storage", |
34 // User-Agent request header field. | 34 // User-Agent request header field. |
35 "fake agent", | 35 "fake agent", |
36 // JSON encoded experimental options. | 36 // JSON encoded experimental options. |
37 "{\"QUIC\":{\"store_server_configs_in_properties\":true," | 37 "{\"QUIC\":{\"store_server_configs_in_properties\":true," |
38 "\"delay_tcp_race\":true," | 38 "\"delay_tcp_race\":true," |
39 "\"max_number_of_lossy_connections\":10," | 39 "\"max_number_of_lossy_connections\":10," |
40 "\"packet_loss_threshold\":0.5," | 40 "\"packet_loss_threshold\":0.5," |
| 41 "\"idle_connection_timeout_seconds\":300," |
41 "\"connection_options\":\"TIME,TBBR,REJ\"}," | 42 "\"connection_options\":\"TIME,TBBR,REJ\"}," |
42 "\"AsyncDNS\":{\"enable\":true}}", | 43 "\"AsyncDNS\":{\"enable\":true}}", |
43 // Data reduction proxy key. | 44 // Data reduction proxy key. |
44 "", | 45 "", |
45 // Data reduction proxy. | 46 // Data reduction proxy. |
46 "", | 47 "", |
47 // Fallback data reduction proxy. | 48 // Fallback data reduction proxy. |
48 "", | 49 "", |
49 // Data reduction proxy secure proxy check URL. | 50 // Data reduction proxy secure proxy check URL. |
50 "", | 51 "", |
(...skipping 19 matching lines...) Expand all Loading... |
70 // Check store_server_configs_in_properties. | 71 // Check store_server_configs_in_properties. |
71 EXPECT_TRUE(params->quic_store_server_configs_in_properties); | 72 EXPECT_TRUE(params->quic_store_server_configs_in_properties); |
72 | 73 |
73 // Check delay_tcp_race. | 74 // Check delay_tcp_race. |
74 EXPECT_TRUE(params->quic_delay_tcp_race); | 75 EXPECT_TRUE(params->quic_delay_tcp_race); |
75 | 76 |
76 // Check max_number_of_lossy_connections and packet_loss_threshold. | 77 // Check max_number_of_lossy_connections and packet_loss_threshold. |
77 EXPECT_EQ(10, params->quic_max_number_of_lossy_connections); | 78 EXPECT_EQ(10, params->quic_max_number_of_lossy_connections); |
78 EXPECT_FLOAT_EQ(0.5f, params->quic_packet_loss_threshold); | 79 EXPECT_FLOAT_EQ(0.5f, params->quic_packet_loss_threshold); |
79 | 80 |
| 81 // Check idle_connection_timeout_seconds. |
| 82 EXPECT_EQ(300, params->quic_idle_connection_timeout_seconds); |
| 83 |
80 // Check AsyncDNS resolver is enabled. | 84 // Check AsyncDNS resolver is enabled. |
81 EXPECT_NE(nullptr, context->host_resolver()->GetDnsConfigAsValue()); | 85 EXPECT_NE(nullptr, context->host_resolver()->GetDnsConfigAsValue()); |
82 } | 86 } |
83 | 87 |
84 } // namespace cronet | 88 } // namespace cronet |
OLD | NEW |