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

Side by Side Diff: net/dns/host_resolver_mojo_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/dns/host_resolver_mojo.h" 5 #include "net/dns/host_resolver_mojo.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "mojo/public/cpp/bindings/binding.h" 11 #include "mojo/public/cpp/bindings/binding.h"
12 #include "net/base/address_list.h" 12 #include "net/base/address_list.h"
13 #include "net/base/ip_address.h" 13 #include "net/base/ip_address.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 #include "net/base/request_priority.h" 15 #include "net/base/request_priority.h"
16 #include "net/base/test_completion_callback.h" 16 #include "net/base/test_completion_callback.h"
17 #include "net/dns/mojo_host_type_converters.h" 17 #include "net/dns/mojo_host_type_converters.h"
18 #include "net/log/net_log_with_source.h"
18 #include "net/test/event_waiter.h" 19 #include "net/test/event_waiter.h"
19 #include "net/test/gtest_util.h" 20 #include "net/test/gtest_util.h"
20 #include "testing/gmock/include/gmock/gmock.h" 21 #include "testing/gmock/include/gmock/gmock.h"
21 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
22 23
23 using net::test::IsError; 24 using net::test::IsError;
24 using net::test::IsOk; 25 using net::test::IsOk;
25 26
26 namespace net { 27 namespace net {
27 namespace { 28 namespace {
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 EXPECT_EQ(ERR_DNS_CACHE_MISS, resolver_->ResolveFromCache( 401 EXPECT_EQ(ERR_DNS_CACHE_MISS, resolver_->ResolveFromCache(
401 request_info, &result, NetLogWithSource())); 402 request_info, &result, NetLogWithSource()));
402 EXPECT_TRUE(result.empty()); 403 EXPECT_TRUE(result.empty());
403 } 404 }
404 405
405 TEST_F(HostResolverMojoTest, GetHostCache) { 406 TEST_F(HostResolverMojoTest, GetHostCache) {
406 EXPECT_TRUE(resolver_->GetHostCache()); 407 EXPECT_TRUE(resolver_->GetHostCache());
407 } 408 }
408 409
409 } // namespace net 410 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698