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

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

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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/cert/cert_verify_proc.h" 16 #include "net/cert/cert_verify_proc.h"
17 #include "net/cert/cert_verify_result.h" 17 #include "net/cert/cert_verify_result.h"
18 #include "net/cert/x509_certificate.h" 18 #include "net/cert/x509_certificate.h"
19 #include "net/log/net_log.h" 19 #include "net/log/net_log_with_source.h"
20 #include "net/test/cert_test_util.h" 20 #include "net/test/cert_test_util.h"
21 #include "net/test/gtest_util.h" 21 #include "net/test/gtest_util.h"
22 #include "net/test/test_data_directory.h" 22 #include "net/test/test_data_directory.h"
23 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 25
26 using net::test::IsError; 26 using net::test::IsError;
27 using net::test::IsOk; 27 using net::test::IsOk;
28 28
29 namespace net { 29 namespace net {
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 ASSERT_TRUE(IsCertificateError(error)); 251 ASSERT_TRUE(IsCertificateError(error));
252 error = callback4.WaitForResult(); 252 error = callback4.WaitForResult();
253 ASSERT_TRUE(IsCertificateError(error)); 253 ASSERT_TRUE(IsCertificateError(error));
254 254
255 // Let the other requests automatically cancel. 255 // Let the other requests automatically cancel.
256 ASSERT_EQ(5u, verifier_.requests()); 256 ASSERT_EQ(5u, verifier_.requests());
257 ASSERT_EQ(2u, verifier_.inflight_joins()); 257 ASSERT_EQ(2u, verifier_.inflight_joins());
258 } 258 }
259 259
260 } // namespace net 260 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698