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

Side by Side Diff: net/cert/multi_threaded_cert_verifier_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 (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/cert/multi_threaded_cert_verifier.h" 5 #include "net/cert/multi_threaded_cert_verifier.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/debug/leak_annotations.h" 10 #include "base/debug/leak_annotations.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/format_macros.h" 12 #include "base/format_macros.h"
13 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 #include "net/base/test_completion_callback.h" 15 #include "net/base/test_completion_callback.h"
16 #include "net/base/test_data_directory.h"
17 #include "net/cert/cert_verify_proc.h" 16 #include "net/cert/cert_verify_proc.h"
18 #include "net/cert/cert_verify_result.h" 17 #include "net/cert/cert_verify_result.h"
19 #include "net/cert/x509_certificate.h" 18 #include "net/cert/x509_certificate.h"
20 #include "net/log/net_log.h" 19 #include "net/log/net_log.h"
21 #include "net/test/cert_test_util.h" 20 #include "net/test/cert_test_util.h"
21 #include "net/test/test_data_directory.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 namespace net { 24 namespace net {
25 25
26 namespace { 26 namespace {
27 27
28 void FailTest(int /* result */) { 28 void FailTest(int /* result */) {
29 FAIL(); 29 FAIL();
30 } 30 }
31 31
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 ASSERT_TRUE(IsCertificateError(error)); 237 ASSERT_TRUE(IsCertificateError(error));
238 error = callback4.WaitForResult(); 238 error = callback4.WaitForResult();
239 ASSERT_TRUE(IsCertificateError(error)); 239 ASSERT_TRUE(IsCertificateError(error));
240 240
241 // Let the other requests automatically cancel. 241 // Let the other requests automatically cancel.
242 ASSERT_EQ(5u, verifier_.requests()); 242 ASSERT_EQ(5u, verifier_.requests());
243 ASSERT_EQ(2u, verifier_.inflight_joins()); 243 ASSERT_EQ(2u, verifier_.inflight_joins());
244 } 244 }
245 245
246 } // namespace net 246 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/multi_log_ct_verifier_unittest.cc ('k') | net/cert/nss_cert_database_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698