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

Side by Side Diff: net/dns/host_resolver_mojo_unittest.cc

Issue 955263002: Rename mojo_type_converters.* to mojo_{host,proxy}_type_converters.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « net/dns/host_resolver_mojo.cc ('k') | net/dns/mojo_host_resolver_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "net/base/address_list.h" 10 #include "net/base/address_list.h"
11 #include "net/base/net_errors.h" 11 #include "net/base/net_errors.h"
12 #include "net/base/request_priority.h" 12 #include "net/base/request_priority.h"
13 #include "net/base/test_completion_callback.h" 13 #include "net/base/test_completion_callback.h"
14 #include "net/dns/mojo_type_converters.h" 14 #include "net/dns/mojo_host_type_converters.h"
15 #include "net/test/event_waiter.h" 15 #include "net/test/event_waiter.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" 17 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
18 #include "third_party/mojo/src/mojo/public/cpp/bindings/error_handler.h" 18 #include "third_party/mojo/src/mojo/public/cpp/bindings/error_handler.h"
19 19
20 namespace net { 20 namespace net {
21 namespace { 21 namespace {
22 22
23 void Fail(int result) { 23 void Fail(int result) {
24 FAIL() << "Unexpected callback called with error " << result; 24 FAIL() << "Unexpected callback called with error " << result;
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 TEST_F(HostResolverMojoTest, ResolveFromCache) { 351 TEST_F(HostResolverMojoTest, ResolveFromCache) {
352 HostResolver::RequestInfo request_info( 352 HostResolver::RequestInfo request_info(
353 HostPortPair::FromString("example.com:8080")); 353 HostPortPair::FromString("example.com:8080"));
354 AddressList result; 354 AddressList result;
355 EXPECT_EQ(ERR_DNS_CACHE_MISS, 355 EXPECT_EQ(ERR_DNS_CACHE_MISS,
356 resolver_->ResolveFromCache(request_info, &result, BoundNetLog())); 356 resolver_->ResolveFromCache(request_info, &result, BoundNetLog()));
357 EXPECT_TRUE(result.empty()); 357 EXPECT_TRUE(result.empty());
358 } 358 }
359 359
360 } // namespace net 360 } // namespace net
OLDNEW
« no previous file with comments | « net/dns/host_resolver_mojo.cc ('k') | net/dns/mojo_host_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698