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

Side by Side Diff: net/cert/nss_cert_database_chromeos_unittest.cc

Issue 2090463002: Move net/base/test_data_directory.[cc,h] to net/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
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/cert/nss_cert_database_chromeos.h" 5 #include "net/cert/nss_cert_database_chromeos.h"
6 6
7 #include <memory> 7 #include <memory>
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/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/threading/thread_task_runner_handle.h" 12 #include "base/threading/thread_task_runner_handle.h"
13 #include "crypto/nss_util_internal.h" 13 #include "crypto/nss_util_internal.h"
14 #include "crypto/scoped_test_nss_chromeos_user.h" 14 #include "crypto/scoped_test_nss_chromeos_user.h"
15 #include "crypto/scoped_test_nss_db.h" 15 #include "crypto/scoped_test_nss_db.h"
16 #include "net/base/test_data_directory.h"
17 #include "net/cert/cert_database.h" 16 #include "net/cert/cert_database.h"
18 #include "net/test/cert_test_util.h" 17 #include "net/test/cert_test_util.h"
18 #include "net/test/test_data_directory.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace net { 21 namespace net {
22 22
23 namespace { 23 namespace {
24 24
25 bool IsCertInCertificateList(const X509Certificate* cert, 25 bool IsCertInCertificateList(const X509Certificate* cert,
26 const CertificateList& cert_list) { 26 const CertificateList& cert_list) {
27 for (CertificateList::const_iterator it = cert_list.begin(); 27 for (CertificateList::const_iterator it = cert_list.begin();
28 it != cert_list.end(); 28 it != cert_list.end();
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 "client_2.pem", 316 "client_2.pem",
317 "client_2.pk8", 317 "client_2.pk8",
318 system_db_.slot())); 318 system_db_.slot()));
319 CertificateList certs; 319 CertificateList certs;
320 db_2_->ListCertsSync(&certs); 320 db_2_->ListCertsSync(&certs);
321 EXPECT_TRUE(IsCertInCertificateList(cert_1.get(), certs)); 321 EXPECT_TRUE(IsCertInCertificateList(cert_1.get(), certs));
322 EXPECT_FALSE(IsCertInCertificateList(cert_2.get(), certs)); 322 EXPECT_FALSE(IsCertInCertificateList(cert_2.get(), certs));
323 } 323 }
324 324
325 } // namespace net 325 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/multi_threaded_cert_verifier_unittest.cc ('k') | net/cert/nss_cert_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698