OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "ios/web/net/request_tracker_impl.h" | 5 #include "ios/web/net/request_tracker_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
11 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
12 #include "base/strings/sys_string_conversions.h" | 14 #include "base/strings/sys_string_conversions.h" |
13 #include "ios/web/public/cert_policy.h" | 15 #include "ios/web/public/cert_policy.h" |
14 #include "ios/web/public/certificate_policy_cache.h" | 16 #include "ios/web/public/certificate_policy_cache.h" |
15 #include "ios/web/public/ssl_status.h" | 17 #include "ios/web/public/ssl_status.h" |
16 #include "ios/web/public/test/test_browser_state.h" | 18 #include "ios/web/public/test/test_browser_state.h" |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 base::Bind(&TwoStartsSSLCallback, | 508 base::Bind(&TwoStartsSSLCallback, |
507 &request_0_called)); | 509 &request_0_called)); |
508 tracker_->OnSSLCertificateError(GetSecureRequest(1), ssl_info, true, | 510 tracker_->OnSSLCertificateError(GetSecureRequest(1), ssl_info, true, |
509 base::Bind(&TwoStartsSSLCallback, | 511 base::Bind(&TwoStartsSSLCallback, |
510 &request_1_called)); | 512 &request_1_called)); |
511 EXPECT_TRUE(request_0_called); | 513 EXPECT_TRUE(request_0_called); |
512 EXPECT_TRUE(request_1_called); | 514 EXPECT_TRUE(request_1_called); |
513 } | 515 } |
514 | 516 |
515 } // namespace | 517 } // namespace |
OLD | NEW |