| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/stale_host_resolver.h" | 5 #include "components/cronet/stale_host_resolver.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 TEST_F(StaleHostResolverTest, CreatedByContext) { | 444 TEST_F(StaleHostResolverTest, CreatedByContext) { |
| 445 URLRequestContextConfig config( | 445 URLRequestContextConfig config( |
| 446 // Enable QUIC. | 446 // Enable QUIC. |
| 447 true, | 447 true, |
| 448 // QUIC User Agent ID. | 448 // QUIC User Agent ID. |
| 449 "Default QUIC User Agent ID", | 449 "Default QUIC User Agent ID", |
| 450 // Enable SPDY. | 450 // Enable SPDY. |
| 451 true, | 451 true, |
| 452 // Enable SDCH. | 452 // Enable SDCH. |
| 453 false, | 453 false, |
| 454 // Enable Brotli. |
| 455 false, |
| 454 // Type of http cache. | 456 // Type of http cache. |
| 455 URLRequestContextConfig::HttpCacheType::DISK, | 457 URLRequestContextConfig::HttpCacheType::DISK, |
| 456 // Max size of http cache in bytes. | 458 // Max size of http cache in bytes. |
| 457 1024000, | 459 1024000, |
| 458 // Disable caching for HTTP responses. Other information may be stored in | 460 // Disable caching for HTTP responses. Other information may be stored in |
| 459 // the cache. | 461 // the cache. |
| 460 false, | 462 false, |
| 461 // Storage path for http cache and cookie storage. | 463 // Storage path for http cache and cookie storage. |
| 462 "/data/data/org.chromium.net/app_cronet_test/test_storage", | 464 "/data/data/org.chromium.net/app_cronet_test/test_storage", |
| 463 // User-Agent request header field. | 465 // User-Agent request header field. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 | 507 |
| 506 EXPECT_TRUE(resolve_complete()); | 508 EXPECT_TRUE(resolve_complete()); |
| 507 EXPECT_EQ(net::OK, resolve_error()); | 509 EXPECT_EQ(net::OK, resolve_error()); |
| 508 EXPECT_EQ(1u, resolve_addresses().size()); | 510 EXPECT_EQ(1u, resolve_addresses().size()); |
| 509 EXPECT_EQ(kCacheAddress, resolve_addresses()[0].ToStringWithoutPort()); | 511 EXPECT_EQ(kCacheAddress, resolve_addresses()[0].ToStringWithoutPort()); |
| 510 } | 512 } |
| 511 | 513 |
| 512 } // namespace | 514 } // namespace |
| 513 | 515 |
| 514 } // namespace cronet | 516 } // namespace cronet |
| OLD | NEW |