| 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 "ios/web/net/cert_host_pair.h" | 5 #include "ios/web/net/cert_host_pair.h" |
| 6 | 6 |
| 7 #include "net/base/test_data_directory.h" | |
| 8 #include "net/test/cert_test_util.h" | 7 #include "net/test/cert_test_util.h" |
| 8 #include "net/test/test_data_directory.h" |
| 9 #include "testing/platform_test.h" | 9 #include "testing/platform_test.h" |
| 10 | 10 |
| 11 namespace web { | 11 namespace web { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 // Test cert filenames. | 15 // Test cert filenames. |
| 16 const char kCertFileName1[] = "ok_cert.pem"; | 16 const char kCertFileName1[] = "ok_cert.pem"; |
| 17 const char kCertFileName2[] = "expired_cert.pem"; | 17 const char kCertFileName2[] = "expired_cert.pem"; |
| 18 | 18 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 CertHostPair pair1(cert1, kHostName1); | 93 CertHostPair pair1(cert1, kHostName1); |
| 94 CertHostPair pair2(cert2, kHostName1); | 94 CertHostPair pair2(cert2, kHostName1); |
| 95 | 95 |
| 96 EXPECT_FALSE(pair1 < pair1); | 96 EXPECT_FALSE(pair1 < pair1); |
| 97 EXPECT_FALSE(pair2 < pair2); | 97 EXPECT_FALSE(pair2 < pair2); |
| 98 EXPECT_FALSE(pair1 < pair2); | 98 EXPECT_FALSE(pair1 < pair2); |
| 99 EXPECT_FALSE(pair2 < pair1); | 99 EXPECT_FALSE(pair2 < pair1); |
| 100 } | 100 } |
| 101 | 101 |
| 102 } // namespace web | 102 } // namespace web |
| OLD | NEW |