Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: net/ssl/client_cert_store_impl_unittest.cc

Issue 12680003: net: split net/ssl out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/ssl/client_cert_store_impl_nss.cc ('k') | net/ssl/client_cert_store_impl_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/ssl/client_cert_store_impl_nss.cc ('k') | net/ssl/client_cert_store_impl_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698