OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef NET_SSL_CLIENT_CERT_STORE_UNITTEST_INL_H_ | 5 #ifndef NET_SSL_CLIENT_CERT_STORE_UNITTEST_INL_H_ |
6 #define NET_SSL_CLIENT_CERT_STORE_UNITTEST_INL_H_ | 6 #define NET_SSL_CLIENT_CERT_STORE_UNITTEST_INL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "net/base/test_data_directory.h" | 14 #include "net/base/test_data_directory.h" |
| 15 #include "net/ssl/ssl_cert_request_info.h" |
15 #include "net/test/cert_test_util.h" | 16 #include "net/test/cert_test_util.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
17 | 18 |
18 namespace net { | 19 namespace net { |
19 | 20 |
20 namespace { | 21 namespace { |
21 | 22 |
22 // "CN=B CA" - DER encoded DN of the issuer of client_1.pem | 23 // "CN=B CA" - DER encoded DN of the issuer of client_1.pem |
23 const unsigned char kAuthority1DN[] = { | 24 const unsigned char kAuthority1DN[] = { |
24 0x30, 0x0f, 0x31, 0x0d, 0x30, 0x0b, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, | 25 0x30, 0x0f, 0x31, 0x0d, 0x30, 0x0b, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 } | 120 } |
120 | 121 |
121 REGISTER_TYPED_TEST_CASE_P(ClientCertStoreTest, | 122 REGISTER_TYPED_TEST_CASE_P(ClientCertStoreTest, |
122 EmptyQuery, | 123 EmptyQuery, |
123 AllIssuersAllowed, | 124 AllIssuersAllowed, |
124 CertAuthorityFiltering); | 125 CertAuthorityFiltering); |
125 | 126 |
126 } // namespace net | 127 } // namespace net |
127 | 128 |
128 #endif // NET_SSL_CLIENT_CERT_STORE_UNITTEST_INL_H_ | 129 #endif // NET_SSL_CLIENT_CERT_STORE_UNITTEST_INL_H_ |
OLD | NEW |