| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "webrtc/base/fakesslidentity.h" | 14 #include "webrtc/rtc_base/fakesslidentity.h" |
| 15 #include "webrtc/base/gunit.h" | 15 #include "webrtc/rtc_base/gunit.h" |
| 16 #include "webrtc/base/helpers.h" | 16 #include "webrtc/rtc_base/helpers.h" |
| 17 #include "webrtc/base/ssladapter.h" | 17 #include "webrtc/rtc_base/ssladapter.h" |
| 18 #include "webrtc/base/sslfingerprint.h" | 18 #include "webrtc/rtc_base/sslfingerprint.h" |
| 19 #include "webrtc/base/sslidentity.h" | 19 #include "webrtc/rtc_base/sslidentity.h" |
| 20 #include "webrtc/base/stringutils.h" | 20 #include "webrtc/rtc_base/stringutils.h" |
| 21 | 21 |
| 22 using rtc::SSLIdentity; | 22 using rtc::SSLIdentity; |
| 23 | 23 |
| 24 const char kTestCertificate[] = "-----BEGIN CERTIFICATE-----\n" | 24 const char kTestCertificate[] = "-----BEGIN CERTIFICATE-----\n" |
| 25 "MIIB6TCCAVICAQYwDQYJKoZIhvcNAQEEBQAwWzELMAkGA1UEBhMCQVUxEzARBgNV\n" | 25 "MIIB6TCCAVICAQYwDQYJKoZIhvcNAQEEBQAwWzELMAkGA1UEBhMCQVUxEzARBgNV\n" |
| 26 "BAgTClF1ZWVuc2xhbmQxGjAYBgNVBAoTEUNyeXB0U29mdCBQdHkgTHRkMRswGQYD\n" | 26 "BAgTClF1ZWVuc2xhbmQxGjAYBgNVBAoTEUNyeXB0U29mdCBQdHkgTHRkMRswGQYD\n" |
| 27 "VQQDExJUZXN0IENBICgxMDI0IGJpdCkwHhcNMDAxMDE2MjIzMTAzWhcNMDMwMTE0\n" | 27 "VQQDExJUZXN0IENBICgxMDI0IGJpdCkwHhcNMDAxMDE2MjIzMTAzWhcNMDMwMTE0\n" |
| 28 "MjIzMTAzWjBjMQswCQYDVQQGEwJBVTETMBEGA1UECBMKUXVlZW5zbGFuZDEaMBgG\n" | 28 "MjIzMTAzWjBjMQswCQYDVQQGEwJBVTETMBEGA1UECBMKUXVlZW5zbGFuZDEaMBgG\n" |
| 29 "A1UEChMRQ3J5cHRTb2Z0IFB0eSBMdGQxIzAhBgNVBAMTGlNlcnZlciB0ZXN0IGNl\n" | 29 "A1UEChMRQ3J5cHRTb2Z0IFB0eSBMdGQxIzAhBgNVBAMTGlNlcnZlciB0ZXN0IGNl\n" |
| 30 "cnQgKDUxMiBiaXQpMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJ+zw4Qnlf8SMVIP\n" | 30 "cnQgKDUxMiBiaXQpMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJ+zw4Qnlf8SMVIP\n" |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 } | 604 } |
| 605 }; | 605 }; |
| 606 | 606 |
| 607 TEST_F(SSLIdentityExpirationTest, TestASN1TimeToSec) { | 607 TEST_F(SSLIdentityExpirationTest, TestASN1TimeToSec) { |
| 608 TestASN1TimeToSec(); | 608 TestASN1TimeToSec(); |
| 609 } | 609 } |
| 610 | 610 |
| 611 TEST_F(SSLIdentityExpirationTest, TestExpireTime) { | 611 TEST_F(SSLIdentityExpirationTest, TestExpireTime) { |
| 612 TestExpireTime(500); | 612 TestExpireTime(500); |
| 613 } | 613 } |
| OLD | NEW |