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

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

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « content/renderer/p2p/ipc_network_manager.h ('k') | content/renderer/p2p/ipc_socket_factory.h » ('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 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/net_util.h" 8 #include "net/base/net_util.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 namespace { 13 namespace {
14 14
15 class MockP2PSocketDispatcher : public NetworkListManager { 15 class MockP2PSocketDispatcher : public NetworkListManager {
16 public: 16 public:
17 virtual void AddNetworkListObserver( 17 virtual void AddNetworkListObserver(
18 NetworkListObserver* network_list_observer) OVERRIDE {} 18 NetworkListObserver* network_list_observer) override {}
19 19
20 virtual void RemoveNetworkListObserver( 20 virtual void RemoveNetworkListObserver(
21 NetworkListObserver* network_list_observer) OVERRIDE {} 21 NetworkListObserver* network_list_observer) override {}
22 22
23 virtual ~MockP2PSocketDispatcher() {} 23 virtual ~MockP2PSocketDispatcher() {}
24 }; 24 };
25 25
26 } // namespace 26 } // namespace
27 27
28 // 2 IPv6 addresses with only last digit different. 28 // 2 IPv6 addresses with only last digit different.
29 static const char kIPv6PublicAddrString1[] = 29 static const char kIPv6PublicAddrString1[] =
30 "2401:fa00:4:1000:be30:5bff:fee5:c3"; 30 "2401:fa00:4:1000:be30:5bff:fee5:c3";
31 static const char kIPv6PublicAddrString2[] = 31 static const char kIPv6PublicAddrString2[] =
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 EXPECT_TRUE(rtc::IPFromString(kIPv6PublicAddrString2, &ip_address)); 106 EXPECT_TRUE(rtc::IPFromString(kIPv6PublicAddrString2, &ip_address));
107 EXPECT_EQ(networks[1]->GetIPs()[1], ip_address); 107 EXPECT_EQ(networks[1]->GetIPs()[1], ip_address);
108 // Verify the network with prefix length of 48 has 2 IP addresses. 108 // Verify the network with prefix length of 48 has 2 IP addresses.
109 EXPECT_EQ(48, networks[0]->prefix_length()); 109 EXPECT_EQ(48, networks[0]->prefix_length());
110 EXPECT_EQ(1uL, networks[0]->GetIPs().size()); 110 EXPECT_EQ(1uL, networks[0]->GetIPs().size());
111 EXPECT_TRUE(rtc::IPFromString(kIPv6PublicAddrString2, &ip_address)); 111 EXPECT_TRUE(rtc::IPFromString(kIPv6PublicAddrString2, &ip_address));
112 EXPECT_EQ(networks[0]->GetIPs()[0], ip_address); 112 EXPECT_EQ(networks[0]->GetIPs()[0], ip_address);
113 } 113 }
114 114
115 } // namespace content 115 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/p2p/ipc_network_manager.h ('k') | content/renderer/p2p/ipc_socket_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698