| Index: webrtc/p2p/base/portallocator_unittest.cc
|
| diff --git a/webrtc/p2p/base/portallocator_unittest.cc b/webrtc/p2p/base/portallocator_unittest.cc
|
| index 6a34a25c1334075b5c82cb42aed0abf0bd196b48..06abaad2a08edcc941471e5f04d50b5712f6d260 100644
|
| --- a/webrtc/p2p/base/portallocator_unittest.cc
|
| +++ b/webrtc/p2p/base/portallocator_unittest.cc
|
| @@ -35,7 +35,7 @@ class PortAllocatorTest : public testing::Test, public sigslot::has_slots<> {
|
| void SetConfigurationWithPoolSize(int candidate_pool_size) {
|
| allocator_->SetConfiguration(cricket::ServerAddresses(),
|
| std::vector<cricket::RelayServerConfig>(),
|
| - candidate_pool_size);
|
| + candidate_pool_size, false);
|
| }
|
|
|
| std::unique_ptr<cricket::FakePortAllocatorSession> CreateSession(
|
| @@ -107,14 +107,14 @@ TEST_F(PortAllocatorTest, CreateSession) {
|
| TEST_F(PortAllocatorTest, SetConfigurationUpdatesIceServers) {
|
| cricket::ServerAddresses stun_servers_1 = {stun_server_1};
|
| std::vector<cricket::RelayServerConfig> turn_servers_1 = {turn_server_1};
|
| - allocator_->SetConfiguration(stun_servers_1, turn_servers_1, 0);
|
| + allocator_->SetConfiguration(stun_servers_1, turn_servers_1, 0, false);
|
| EXPECT_EQ(stun_servers_1, allocator_->stun_servers());
|
| EXPECT_EQ(turn_servers_1, allocator_->turn_servers());
|
|
|
| // Update with a different set of servers.
|
| cricket::ServerAddresses stun_servers_2 = {stun_server_2};
|
| std::vector<cricket::RelayServerConfig> turn_servers_2 = {turn_server_2};
|
| - allocator_->SetConfiguration(stun_servers_2, turn_servers_2, 0);
|
| + allocator_->SetConfiguration(stun_servers_2, turn_servers_2, 0, false);
|
| EXPECT_EQ(stun_servers_2, allocator_->stun_servers());
|
| EXPECT_EQ(turn_servers_2, allocator_->turn_servers());
|
| }
|
| @@ -182,14 +182,14 @@ TEST_F(PortAllocatorTest,
|
| SetConfigurationRecreatesPooledSessionsWhenIceServersChange) {
|
| cricket::ServerAddresses stun_servers_1 = {stun_server_1};
|
| std::vector<cricket::RelayServerConfig> turn_servers_1 = {turn_server_1};
|
| - allocator_->SetConfiguration(stun_servers_1, turn_servers_1, 1);
|
| + allocator_->SetConfiguration(stun_servers_1, turn_servers_1, 1, false);
|
| EXPECT_EQ(stun_servers_1, allocator_->stun_servers());
|
| EXPECT_EQ(turn_servers_1, allocator_->turn_servers());
|
|
|
| // Update with a different set of servers (and also change pool size).
|
| cricket::ServerAddresses stun_servers_2 = {stun_server_2};
|
| std::vector<cricket::RelayServerConfig> turn_servers_2 = {turn_server_2};
|
| - allocator_->SetConfiguration(stun_servers_2, turn_servers_2, 2);
|
| + allocator_->SetConfiguration(stun_servers_2, turn_servers_2, 2, false);
|
| EXPECT_EQ(stun_servers_2, allocator_->stun_servers());
|
| EXPECT_EQ(turn_servers_2, allocator_->turn_servers());
|
| auto session_1 = TakePooledSession();
|
|
|