| Index: webrtc/p2p/base/p2ptransportchannel_unittest.cc
|
| diff --git a/webrtc/p2p/base/p2ptransportchannel_unittest.cc b/webrtc/p2p/base/p2ptransportchannel_unittest.cc
|
| index 29567c72619ec9cce8259597fd472858121aea71..90ddd43714daa8c55bdaa45139caf5f2b7812dbf 100644
|
| --- a/webrtc/p2p/base/p2ptransportchannel_unittest.cc
|
| +++ b/webrtc/p2p/base/p2ptransportchannel_unittest.cc
|
| @@ -306,7 +306,7 @@
|
| const std::string& remote_ice_ufrag,
|
| const std::string& remote_ice_pwd) {
|
| cricket::P2PTransportChannel* channel = new cricket::P2PTransportChannel(
|
| - "test content name", component, GetAllocator(endpoint));
|
| + "test content name", component, NULL, GetAllocator(endpoint));
|
| channel->SignalCandidateGathered.connect(
|
| this, &P2PTransportChannelTestBase::OnCandidate);
|
| channel->SignalReadPacket.connect(
|
| @@ -1810,7 +1810,7 @@
|
|
|
| TEST_F(P2PTransportChannelPingTest, TestTriggeredChecks) {
|
| cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
|
| - cricket::P2PTransportChannel ch("trigger checks", 1, &pa);
|
| + cricket::P2PTransportChannel ch("trigger checks", 1, nullptr, &pa);
|
| PrepareChannel(&ch);
|
| ch.Connect();
|
| ch.MaybeStartGathering();
|
| @@ -1835,7 +1835,7 @@
|
|
|
| TEST_F(P2PTransportChannelPingTest, TestNoTriggeredChecksWhenWritable) {
|
| cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
|
| - cricket::P2PTransportChannel ch("trigger checks", 1, &pa);
|
| + cricket::P2PTransportChannel ch("trigger checks", 1, nullptr, &pa);
|
| PrepareChannel(&ch);
|
| ch.Connect();
|
| ch.MaybeStartGathering();
|
| @@ -1866,7 +1866,7 @@
|
| // ufrag, its pwd and generation will be set properly.
|
| TEST_F(P2PTransportChannelPingTest, TestAddRemoteCandidateWithVariousUfrags) {
|
| cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
|
| - cricket::P2PTransportChannel ch("add candidate", 1, &pa);
|
| + cricket::P2PTransportChannel ch("add candidate", 1, nullptr, &pa);
|
| PrepareChannel(&ch);
|
| ch.Connect();
|
| ch.MaybeStartGathering();
|
| @@ -1916,7 +1916,7 @@
|
|
|
| TEST_F(P2PTransportChannelPingTest, ConnectionResurrection) {
|
| cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
|
| - cricket::P2PTransportChannel ch("connection resurrection", 1, &pa);
|
| + cricket::P2PTransportChannel ch("connection resurrection", 1, nullptr, &pa);
|
| PrepareChannel(&ch);
|
| ch.Connect();
|
| ch.MaybeStartGathering();
|
| @@ -1969,7 +1969,7 @@
|
|
|
| TEST_F(P2PTransportChannelPingTest, TestReceivingStateChange) {
|
| cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
|
| - cricket::P2PTransportChannel ch("receiving state change", 1, &pa);
|
| + cricket::P2PTransportChannel ch("receiving state change", 1, nullptr, &pa);
|
| PrepareChannel(&ch);
|
| // Default receiving timeout and checking receiving delay should not be too
|
| // small.
|
| @@ -1997,7 +1997,7 @@
|
| // "best connection".
|
| TEST_F(P2PTransportChannelPingTest, TestSelectConnectionBeforeNomination) {
|
| cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
|
| - cricket::P2PTransportChannel ch("receiving state change", 1, &pa);
|
| + cricket::P2PTransportChannel ch("receiving state change", 1, nullptr, &pa);
|
| PrepareChannel(&ch);
|
| ch.SetIceRole(cricket::ICEROLE_CONTROLLED);
|
| ch.Connect();
|
| @@ -2054,7 +2054,7 @@
|
| // a ping response and set the ICE pwd in the remote candidate appropriately.
|
| TEST_F(P2PTransportChannelPingTest, TestSelectConnectionFromUnknownAddress) {
|
| cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
|
| - cricket::P2PTransportChannel ch("receiving state change", 1, &pa);
|
| + cricket::P2PTransportChannel ch("receiving state change", 1, nullptr, &pa);
|
| PrepareChannel(&ch);
|
| ch.SetIceRole(cricket::ICEROLE_CONTROLLED);
|
| ch.Connect();
|
| @@ -2136,7 +2136,7 @@
|
| // the "best connection".
|
| TEST_F(P2PTransportChannelPingTest, TestSelectConnectionBasedOnMediaReceived) {
|
| cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
|
| - cricket::P2PTransportChannel ch("receiving state change", 1, &pa);
|
| + cricket::P2PTransportChannel ch("receiving state change", 1, nullptr, &pa);
|
| PrepareChannel(&ch);
|
| ch.SetIceRole(cricket::ICEROLE_CONTROLLED);
|
| ch.Connect();
|
| @@ -2194,7 +2194,7 @@
|
| // be pruned. Otherwise, lower-priority connections are kept.
|
| TEST_F(P2PTransportChannelPingTest, TestDontPruneWhenWeak) {
|
| cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
|
| - cricket::P2PTransportChannel ch("test channel", 1, &pa);
|
| + cricket::P2PTransportChannel ch("test channel", 1, nullptr, &pa);
|
| PrepareChannel(&ch);
|
| ch.SetIceRole(cricket::ICEROLE_CONTROLLED);
|
| ch.Connect();
|
| @@ -2232,7 +2232,7 @@
|
| // Test that GetState returns the state correctly.
|
| TEST_F(P2PTransportChannelPingTest, TestGetState) {
|
| cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
|
| - cricket::P2PTransportChannel ch("test channel", 1, &pa);
|
| + cricket::P2PTransportChannel ch("test channel", 1, nullptr, &pa);
|
| PrepareChannel(&ch);
|
| ch.Connect();
|
| ch.MaybeStartGathering();
|
| @@ -2259,7 +2259,7 @@
|
| // right away, and it can become active and be pruned again.
|
| TEST_F(P2PTransportChannelPingTest, TestConnectionPrunedAgain) {
|
| cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
|
| - cricket::P2PTransportChannel ch("test channel", 1, &pa);
|
| + cricket::P2PTransportChannel ch("test channel", 1, nullptr, &pa);
|
| PrepareChannel(&ch);
|
| ch.SetIceConfig(CreateIceConfig(1000, false));
|
| ch.Connect();
|
| @@ -2302,7 +2302,7 @@
|
| // will all be deleted. We use Prune to simulate write_time_out.
|
| TEST_F(P2PTransportChannelPingTest, TestDeleteConnectionsIfAllWriteTimedout) {
|
| cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
|
| - cricket::P2PTransportChannel ch("test channel", 1, &pa);
|
| + cricket::P2PTransportChannel ch("test channel", 1, nullptr, &pa);
|
| PrepareChannel(&ch);
|
| ch.Connect();
|
| ch.MaybeStartGathering();
|
| @@ -2334,7 +2334,7 @@
|
| // holds even if the transport channel did not lose the writability.
|
| TEST_F(P2PTransportChannelPingTest, TestStopPortAllocatorSessions) {
|
| cricket::FakePortAllocator pa(rtc::Thread::Current(), nullptr);
|
| - cricket::P2PTransportChannel ch("test channel", 1, &pa);
|
| + cricket::P2PTransportChannel ch("test channel", 1, nullptr, &pa);
|
| PrepareChannel(&ch);
|
| ch.SetIceConfig(CreateIceConfig(2000, false));
|
| ch.Connect();
|
|
|