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

Side by Side Diff: components/certificate_transparency/log_dns_client_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/certificate_transparency/log_dns_client.h" 5 #include "components/certificate_transparency/log_dns_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "components/certificate_transparency/mock_log_dns_traffic.h" 14 #include "components/certificate_transparency/mock_log_dns_traffic.h"
15 #include "crypto/sha2.h" 15 #include "crypto/sha2.h"
16 #include "net/base/net_errors.h" 16 #include "net/base/net_errors.h"
17 #include "net/cert/merkle_audit_proof.h" 17 #include "net/cert/merkle_audit_proof.h"
18 #include "net/cert/signed_certificate_timestamp.h" 18 #include "net/cert/signed_certificate_timestamp.h"
19 #include "net/dns/dns_client.h" 19 #include "net/dns/dns_client.h"
20 #include "net/dns/dns_config_service.h" 20 #include "net/dns/dns_config_service.h"
21 #include "net/dns/dns_protocol.h" 21 #include "net/dns/dns_protocol.h"
22 #include "net/log/net_log.h"
23 #include "net/test/gtest_util.h" 22 #include "net/test/gtest_util.h"
24 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
25 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
26 25
27 namespace certificate_transparency { 26 namespace certificate_transparency {
28 namespace { 27 namespace {
29 28
30 using ::testing::IsEmpty; 29 using ::testing::IsEmpty;
31 using ::testing::IsNull; 30 using ::testing::IsNull;
32 using ::testing::Not; 31 using ::testing::Not;
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 EXPECT_THAT(dns_client->GetConfig()->nameservers, Not(IsEmpty())); 544 EXPECT_THAT(dns_client->GetConfig()->nameservers, Not(IsEmpty()));
546 } 545 }
547 546
548 INSTANTIATE_TEST_CASE_P(ReadMode, 547 INSTANTIATE_TEST_CASE_P(ReadMode,
549 LogDnsClientTest, 548 LogDnsClientTest,
550 ::testing::Values(net::IoMode::ASYNC, 549 ::testing::Values(net::IoMode::ASYNC,
551 net::IoMode::SYNCHRONOUS)); 550 net::IoMode::SYNCHRONOUS));
552 551
553 } // namespace 552 } // namespace
554 } // namespace certificate_transparency 553 } // namespace certificate_transparency
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698