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

Side by Side Diff: content/renderer/p2p/ipc_network_manager_unittest.cc

Issue 1290723003: Stop including network_interfaces.h from net_util.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TOT and remove AUTHORS change as it is there already Created 5 years, 4 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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "content/renderer/p2p/ipc_network_manager.h" 6 #include "content/renderer/p2p/ipc_network_manager.h"
7 #include "content/renderer/p2p/network_list_manager.h" 7 #include "content/renderer/p2p/network_list_manager.h"
8 #include "net/base/ip_address_number.h" 8 #include "net/base/ip_address_number.h"
9 #include "net/base/net_util.h" 9 #include "net/base/net_util.h"
10 #include "net/base/network_change_notifier.h" 10 #include "net/base/network_change_notifier.h"
11 #include "net/base/network_interfaces.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 13
13 namespace content { 14 namespace content {
14 15
15 namespace { 16 namespace {
16 17
17 class MockP2PSocketDispatcher : public NetworkListManager { 18 class MockP2PSocketDispatcher : public NetworkListManager {
18 public: 19 public:
19 void AddNetworkListObserver( 20 void AddNetworkListObserver(
20 NetworkListObserver* network_list_observer) override {} 21 NetworkListObserver* network_list_observer) override {}
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 EXPECT_TRUE(rtc::IPFromString(kIPv6PublicAddrString2, &ip_address)); 109 EXPECT_TRUE(rtc::IPFromString(kIPv6PublicAddrString2, &ip_address));
109 EXPECT_EQ(networks[1]->GetIPs()[1], ip_address); 110 EXPECT_EQ(networks[1]->GetIPs()[1], ip_address);
110 // Verify the network with prefix length of 48 has 2 IP addresses. 111 // Verify the network with prefix length of 48 has 2 IP addresses.
111 EXPECT_EQ(48, networks[0]->prefix_length()); 112 EXPECT_EQ(48, networks[0]->prefix_length());
112 EXPECT_EQ(1uL, networks[0]->GetIPs().size()); 113 EXPECT_EQ(1uL, networks[0]->GetIPs().size());
113 EXPECT_TRUE(rtc::IPFromString(kIPv6PublicAddrString2, &ip_address)); 114 EXPECT_TRUE(rtc::IPFromString(kIPv6PublicAddrString2, &ip_address));
114 EXPECT_EQ(networks[0]->GetIPs()[0], ip_address); 115 EXPECT_EQ(networks[0]->GetIPs()[0], ip_address);
115 } 116 }
116 117
117 } // namespace content 118 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/p2p/ipc_network_manager.cc ('k') | extensions/browser/api/socket/socket_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698