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

Side by Side Diff: net/base/openssl_client_key_store_unittest.cc

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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/base/openssl_client_key_store.cc ('k') | net/base/pem_tokenizer.h » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/base/openssl_client_key_store.h" 5 #include "net/base/openssl_client_key_store.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "net/base/cert_test_util.h"
9 #include "net/base/test_data_directory.h" 8 #include "net/base/test_data_directory.h"
9 #include "net/test/cert_test_util.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 namespace { 14 namespace {
15 15
16 typedef OpenSSLClientKeyStore::ScopedEVP_PKEY ScopedEVP_PKEY; 16 typedef OpenSSLClientKeyStore::ScopedEVP_PKEY ScopedEVP_PKEY;
17 17
18 // Return the internal reference count of a given EVP_PKEY. 18 // Return the internal reference count of a given EVP_PKEY.
19 int EVP_PKEY_get_refcount(EVP_PKEY* pkey) { 19 int EVP_PKEY_get_refcount(EVP_PKEY* pkey) {
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 EXPECT_EQ(fetch_key1.get(), priv_key1.get()); 165 EXPECT_EQ(fetch_key1.get(), priv_key1.get());
166 EXPECT_EQ(fetch_key2.get(), priv_key2.get()); 166 EXPECT_EQ(fetch_key2.get(), priv_key2.get());
167 167
168 EXPECT_EQ(3, EVP_PKEY_get_refcount(priv_key1.get())); 168 EXPECT_EQ(3, EVP_PKEY_get_refcount(priv_key1.get()));
169 EXPECT_EQ(3, EVP_PKEY_get_refcount(priv_key2.get())); 169 EXPECT_EQ(3, EVP_PKEY_get_refcount(priv_key2.get()));
170 } 170 }
171 171
172 } // namespace 172 } // namespace
173 } // namespace net 173 } // namespace net
OLDNEW
« no previous file with comments | « net/base/openssl_client_key_store.cc ('k') | net/base/pem_tokenizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698