summaryrefslogtreecommitdiff
path: root/chromium/net/socket/tcp_socket_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/socket/tcp_socket_unittest.cc')
-rw-r--r--chromium/net/socket/tcp_socket_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chromium/net/socket/tcp_socket_unittest.cc b/chromium/net/socket/tcp_socket_unittest.cc
index 28264b40b4e..be9ab1b5982 100644
--- a/chromium/net/socket/tcp_socket_unittest.cc
+++ b/chromium/net/socket/tcp_socket_unittest.cc
@@ -178,8 +178,8 @@ class TCPSocketTest : public PlatformTest, public WithTaskEnvironment {
TestCompletionCallback connect_callback;
- std::unique_ptr<TestSocketPerformanceWatcher> watcher(
- new TestSocketPerformanceWatcher(should_notify_updated_rtt));
+ auto watcher = std::make_unique<TestSocketPerformanceWatcher>(
+ should_notify_updated_rtt);
TestSocketPerformanceWatcher* watcher_ptr = watcher.get();
TCPSocket connecting_socket(std::move(watcher), nullptr, NetLogSource());
@@ -1020,7 +1020,7 @@ TEST_F(TCPSocketTest, BindToNetwork) {
if (!NetworkChangeNotifier::AreNetworkHandlesSupported())
GTEST_SKIP() << "Network handles are required to test BindToNetwork.";
- const NetworkChangeNotifier::NetworkHandle wrong_network_handle = 65536;
+ const handles::NetworkHandle wrong_network_handle = 65536;
// Try binding to this IP to trigger the underlying BindToNetwork call.
const IPEndPoint ip(IPAddress::IPv4Localhost(), 0);
// TestCompletionCallback connect_callback;
@@ -1034,9 +1034,9 @@ TEST_F(TCPSocketTest, BindToNetwork) {
EXPECT_NE(ERR_NOT_IMPLEMENTED, rv);
// Connecting using an existing network should succeed.
- const NetworkChangeNotifier::NetworkHandle network_handle =
+ const handles::NetworkHandle network_handle =
NetworkChangeNotifier::GetDefaultNetwork();
- if (network_handle != NetworkChangeNotifier::kInvalidNetworkHandle) {
+ if (network_handle != handles::kInvalidNetworkHandle) {
TCPClientSocket connecting_socket(local_address_list(), nullptr, nullptr,
nullptr, NetLogSource(),
wrong_network_handle);