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

Side by Side Diff: webrtc/p2p/client/connectivitychecker_unittest.cc

Issue 1277263002: Add instrumentation to track the IceEndpointType. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: 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 /* 1 /*
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2011 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 int min_port, int max_port, 74 int min_port, int max_port,
75 const std::string& username, const std::string& password, 75 const std::string& username, const std::string& password,
76 const ServerAddresses& server_addr) 76 const ServerAddresses& server_addr)
77 : StunPort(thread, factory, network, ip, min_port, max_port, 77 : StunPort(thread, factory, network, ip, min_port, max_port,
78 username, password, server_addr, std::string()) { 78 username, password, server_addr, std::string()) {
79 } 79 }
80 80
81 // Just set external address and signal that we are done. 81 // Just set external address and signal that we are done.
82 virtual void PrepareAddress() { 82 virtual void PrepareAddress() {
83 AddAddress(kExternalAddr, kExternalAddr, rtc::SocketAddress(), "udp", "", 83 AddAddress(kExternalAddr, kExternalAddr, rtc::SocketAddress(), "udp", "",
84 STUN_PORT_TYPE, ICE_TYPE_PREFERENCE_SRFLX, 0, true); 84 "", STUN_PORT_TYPE, ICE_TYPE_PREFERENCE_SRFLX, 0, true);
85 SignalPortComplete(this); 85 SignalPortComplete(this);
86 } 86 }
87 }; 87 };
88 88
89 // Fake implementation to mock away real network usage by responding 89 // Fake implementation to mock away real network usage by responding
90 // to http requests immediately. 90 // to http requests immediately.
91 class FakeHttpPortAllocatorSession : public TestHttpPortAllocatorSession { 91 class FakeHttpPortAllocatorSession : public TestHttpPortAllocatorSession {
92 public: 92 public:
93 FakeHttpPortAllocatorSession( 93 FakeHttpPortAllocatorSession(
94 HttpPortAllocator* allocator, 94 HttpPortAllocator* allocator,
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 connectivity_checker.Start(); 358 connectivity_checker.Start();
359 rtc::Thread::Current()->ProcessMessages(1000); 359 rtc::Thread::Current()->ProcessMessages(1000);
360 360
361 NicMap nics = connectivity_checker.GetResults(); 361 NicMap nics = connectivity_checker.GetResults();
362 362
363 // Verify that no nics where checked. 363 // Verify that no nics where checked.
364 EXPECT_EQ(0U, nics.size()); 364 EXPECT_EQ(0U, nics.size());
365 } 365 }
366 366
367 } // namespace cricket 367 } // namespace cricket
OLDNEW
« webrtc/p2p/base/turnport_unittest.cc ('K') | « webrtc/p2p/base/turnport_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698