OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "net/base/client_cert_store_impl.h" | 5 #include "net/ssl/client_cert_store_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "net/base/cert_test_util.h" | 13 #include "net/base/cert_test_util.h" |
14 #include "net/base/test_data_directory.h" | 14 #include "net/base/test_data_directory.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 bool rv = store.SelectClientCertsGivenPreferred(cert_1, certs, *request, | 143 bool rv = store.SelectClientCertsGivenPreferred(cert_1, certs, *request, |
144 &selected_certs); | 144 &selected_certs); |
145 EXPECT_TRUE(rv); | 145 EXPECT_TRUE(rv); |
146 ASSERT_EQ(2u, selected_certs.size()); | 146 ASSERT_EQ(2u, selected_certs.size()); |
147 EXPECT_TRUE(selected_certs[0]->Equals(cert_1)); | 147 EXPECT_TRUE(selected_certs[0]->Equals(cert_1)); |
148 EXPECT_TRUE(selected_certs[1]->Equals(cert_2)); | 148 EXPECT_TRUE(selected_certs[1]->Equals(cert_2)); |
149 } | 149 } |
150 #endif | 150 #endif |
151 | 151 |
152 } // namespace net | 152 } // namespace net |
OLD | NEW |