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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 // Storage path for http cache and cookie storage. | 463 // Storage path for http cache and cookie storage. |
464 "/data/data/org.chromium.net/app_cronet_test/test_storage", | 464 "/data/data/org.chromium.net/app_cronet_test/test_storage", |
465 // User-Agent request header field. | 465 // User-Agent request header field. |
466 "fake agent", | 466 "fake agent", |
467 // JSON encoded experimental options. | 467 // JSON encoded experimental options. |
468 "{\"AsyncDNS\":{\"enable\":false}," | 468 "{\"AsyncDNS\":{\"enable\":false}," |
469 "\"StaleDNS\":{\"enable\":true," | 469 "\"StaleDNS\":{\"enable\":true," |
470 "\"delay_ms\":0," | 470 "\"delay_ms\":0," |
471 "\"max_expired_time_ms\":0," | 471 "\"max_expired_time_ms\":0," |
472 "\"max_stale_uses\":0}}", | 472 "\"max_stale_uses\":0}}", |
473 // Data reduction proxy key. | |
474 "", | |
475 // Data reduction proxy. | |
476 "", | |
477 // Fallback data reduction proxy. | |
478 "", | |
479 // Data reduction proxy secure proxy check URL. | |
480 "", | |
481 // MockCertVerifier to use for testing purposes. | 473 // MockCertVerifier to use for testing purposes. |
482 std::unique_ptr<net::CertVerifier>(), | 474 std::unique_ptr<net::CertVerifier>(), |
483 // Enable network quality estimator. | 475 // Enable network quality estimator. |
484 false, | 476 false, |
485 // Enable Public Key Pinning bypass for local trust anchors. | 477 // Enable Public Key Pinning bypass for local trust anchors. |
486 true, | 478 true, |
487 // Certificate verifier cache data. | 479 // Certificate verifier cache data. |
488 ""); | 480 ""); |
489 | 481 |
490 net::URLRequestContextBuilder builder; | 482 net::URLRequestContextBuilder builder; |
(...skipping 16 matching lines...) Expand all Loading... |
507 | 499 |
508 EXPECT_TRUE(resolve_complete()); | 500 EXPECT_TRUE(resolve_complete()); |
509 EXPECT_EQ(net::OK, resolve_error()); | 501 EXPECT_EQ(net::OK, resolve_error()); |
510 EXPECT_EQ(1u, resolve_addresses().size()); | 502 EXPECT_EQ(1u, resolve_addresses().size()); |
511 EXPECT_EQ(kCacheAddress, resolve_addresses()[0].ToStringWithoutPort()); | 503 EXPECT_EQ(kCacheAddress, resolve_addresses()[0].ToStringWithoutPort()); |
512 } | 504 } |
513 | 505 |
514 } // namespace | 506 } // namespace |
515 | 507 |
516 } // namespace cronet | 508 } // namespace cronet |
OLD | NEW |