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 #include "net/ssl/client_cert_store_chromeos.h" | 5 #include "net/ssl/client_cert_store_chromeos.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "crypto/nss_util.h" | 13 #include "crypto/nss_util.h" |
14 #include "crypto/nss_util_internal.h" | 14 #include "crypto/nss_util_internal.h" |
15 #include "crypto/rsa_private_key.h" | 15 #include "crypto/rsa_private_key.h" |
| 16 #include "crypto/scoped_test_nss_chromeos_user.h" |
16 #include "net/base/test_data_directory.h" | 17 #include "net/base/test_data_directory.h" |
17 #include "net/cert/cert_type.h" | 18 #include "net/cert/cert_type.h" |
18 #include "net/cert/x509_certificate.h" | 19 #include "net/cert/x509_certificate.h" |
19 #include "net/ssl/client_cert_store_unittest-inl.h" | 20 #include "net/ssl/client_cert_store_unittest-inl.h" |
20 #include "net/test/cert_test_util.h" | 21 #include "net/test/cert_test_util.h" |
21 | 22 |
22 namespace net { | 23 namespace net { |
23 | 24 |
24 namespace { | 25 namespace { |
25 | 26 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 // store1 should only return certs of user1, namely cert_1. | 253 // store1 should only return certs of user1, namely cert_1. |
253 ASSERT_EQ(1u, selected_certs1.size()); | 254 ASSERT_EQ(1u, selected_certs1.size()); |
254 EXPECT_TRUE(cert_1->Equals(selected_certs1[0])); | 255 EXPECT_TRUE(cert_1->Equals(selected_certs1[0])); |
255 | 256 |
256 // store2 should only return certs of user2, namely cert_2. | 257 // store2 should only return certs of user2, namely cert_2. |
257 ASSERT_EQ(1u, selected_certs2.size()); | 258 ASSERT_EQ(1u, selected_certs2.size()); |
258 EXPECT_TRUE(cert_2->Equals(selected_certs2[0])); | 259 EXPECT_TRUE(cert_2->Equals(selected_certs2[0])); |
259 } | 260 } |
260 | 261 |
261 } // namespace net | 262 } // namespace net |
OLD | NEW |