OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2009 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 |
11 #include "webrtc/p2p/base/basicpacketsocketfactory.h" | 11 #include "webrtc/p2p/base/basicpacketsocketfactory.h" |
12 #include "webrtc/p2p/base/constants.h" | 12 #include "webrtc/p2p/base/p2pconstants.h" |
13 #include "webrtc/p2p/base/p2ptransportchannel.h" | 13 #include "webrtc/p2p/base/p2ptransportchannel.h" |
14 #include "webrtc/p2p/base/testrelayserver.h" | 14 #include "webrtc/p2p/base/testrelayserver.h" |
15 #include "webrtc/p2p/base/teststunserver.h" | 15 #include "webrtc/p2p/base/teststunserver.h" |
16 #include "webrtc/p2p/base/testturnserver.h" | 16 #include "webrtc/p2p/base/testturnserver.h" |
17 #include "webrtc/p2p/client/basicportallocator.h" | 17 #include "webrtc/p2p/client/basicportallocator.h" |
18 #include "webrtc/p2p/client/httpportallocator.h" | 18 #include "webrtc/p2p/client/httpportallocator.h" |
19 #include "webrtc/base/fakenetwork.h" | 19 #include "webrtc/base/fakenetwork.h" |
20 #include "webrtc/base/firewallsocketserver.h" | 20 #include "webrtc/base/firewallsocketserver.h" |
21 #include "webrtc/base/gunit.h" | 21 #include "webrtc/base/gunit.h" |
22 #include "webrtc/base/helpers.h" | 22 #include "webrtc/base/helpers.h" |
(...skipping 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1401 | 1401 |
1402 // After clearing getting ports, adding a new interface will start getting | 1402 // After clearing getting ports, adding a new interface will start getting |
1403 // ports again. | 1403 // ports again. |
1404 candidates_.clear(); | 1404 candidates_.clear(); |
1405 ports_.clear(); | 1405 ports_.clear(); |
1406 candidate_allocation_done_ = false; | 1406 candidate_allocation_done_ = false; |
1407 network_manager_.AddInterface(kClientAddr2); | 1407 network_manager_.AddInterface(kClientAddr2); |
1408 ASSERT_EQ_WAIT(2U, candidates_.size(), 1000); | 1408 ASSERT_EQ_WAIT(2U, candidates_.size(), 1000); |
1409 EXPECT_EQ(2U, ports_.size()); | 1409 EXPECT_EQ(2U, ports_.size()); |
1410 } | 1410 } |
OLD | NEW |