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

Side by Side Diff: chromeos/network/host_resolver_impl_chromeos_unittest.cc

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 4 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chromeos/network/host_resolver_impl_chromeos.h" 5 #include "chromeos/network/host_resolver_impl_chromeos.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/macros.h"
8 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
9 #include "base/run_loop.h" 10 #include "base/run_loop.h"
10 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
11 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
12 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
13 #include "chromeos/dbus/dbus_thread_manager.h" 14 #include "chromeos/dbus/dbus_thread_manager.h"
14 #include "chromeos/dbus/shill_device_client.h" 15 #include "chromeos/dbus/shill_device_client.h"
15 #include "chromeos/dbus/shill_ipconfig_client.h" 16 #include "chromeos/dbus/shill_ipconfig_client.h"
16 #include "chromeos/dbus/shill_service_client.h" 17 #include "chromeos/dbus/shill_service_client.h"
17 #include "chromeos/network/device_state.h" 18 #include "chromeos/network/device_state.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 EXPECT_EQ(expected, addresses_[0].ToString()); 164 EXPECT_EQ(expected, addresses_[0].ToString());
164 165
165 info.set_address_family(net::ADDRESS_FAMILY_IPV6); 166 info.set_address_family(net::ADDRESS_FAMILY_IPV6);
166 EXPECT_EQ(net::OK, CallResolve(info)); 167 EXPECT_EQ(net::OK, CallResolve(info));
167 ASSERT_EQ(2u, addresses_.size()); 168 ASSERT_EQ(2u, addresses_.size());
168 expected = base::StringPrintf("[%s]:%d", kTestIPv6Address, 0); 169 expected = base::StringPrintf("[%s]:%d", kTestIPv6Address, 0);
169 EXPECT_EQ(expected, addresses_[0].ToString()); 170 EXPECT_EQ(expected, addresses_[0].ToString());
170 expected = base::StringPrintf("%s:%d", kTestIPv4Address, 0); 171 expected = base::StringPrintf("%s:%d", kTestIPv4Address, 0);
171 EXPECT_EQ(expected, addresses_[1].ToString()); 172 EXPECT_EQ(expected, addresses_[1].ToString());
172 } 173 }
OLDNEW
« no previous file with comments | « chromeos/network/host_resolver_impl_chromeos.cc ('k') | chromeos/network/managed_network_configuration_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698