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

Side by Side Diff: webrtc/pc/channel_unittest.cc

Issue 2098703004: Revert of Revert "Revert of Update the BWE when the network route changes. (patchset #5 id:180001 of https://… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 5 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 | « webrtc/pc/channel.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 rtc::SocketAddress local_address("192.168.1.1", 1000 /* port number */); 930 rtc::SocketAddress local_address("192.168.1.1", 1000 /* port number */);
931 rtc::SocketAddress remote_address("192.168.1.2", 2000 /* port number */); 931 rtc::SocketAddress remote_address("192.168.1.2", 2000 /* port number */);
932 std::unique_ptr<cricket::CandidatePairInterface> candidate_pair( 932 std::unique_ptr<cricket::CandidatePairInterface> candidate_pair(
933 transport_controller1_->CreateFakeCandidatePair( 933 transport_controller1_->CreateFakeCandidatePair(
934 local_address, kLocalNetId, remote_address, kRemoteNetId)); 934 local_address, kLocalNetId, remote_address, kRemoteNetId));
935 transport_channel1->SignalSelectedCandidatePairChanged( 935 transport_channel1->SignalSelectedCandidatePairChanged(
936 transport_channel1, candidate_pair.get(), kLastPacketId); 936 transport_channel1, candidate_pair.get(), kLastPacketId);
937 }); 937 });
938 WaitForThreads(); 938 WaitForThreads();
939 EXPECT_EQ(1, media_channel1->num_network_route_changes()); 939 EXPECT_EQ(1, media_channel1->num_network_route_changes());
940 rtc::NetworkRoute expected_network_route(true, kLocalNetId, kRemoteNetId, 940 rtc::NetworkRoute expected_network_route(kLocalNetId, kRemoteNetId,
941 kLastPacketId); 941 kLastPacketId);
942 EXPECT_EQ(expected_network_route, media_channel1->last_network_route()); 942 EXPECT_EQ(expected_network_route, media_channel1->last_network_route());
943 EXPECT_EQ(kLastPacketId, 943 EXPECT_EQ(kLastPacketId,
944 media_channel1->last_network_route().last_sent_packet_id); 944 media_channel1->last_network_route().last_sent_packet_id);
945 } 945 }
946 946
947 // Test setting up a call. 947 // Test setting up a call.
948 void TestCallSetup() { 948 void TestCallSetup() {
949 CreateChannels(0, 0); 949 CreateChannels(0, 0);
950 EXPECT_FALSE(channel1_->secure()); 950 EXPECT_FALSE(channel1_->secure());
(...skipping 2643 matching lines...) Expand 10 before | Expand all | Expand 10 after
3594 }; 3594 };
3595 rtc::CopyOnWriteBuffer payload(data, 3); 3595 rtc::CopyOnWriteBuffer payload(data, 3);
3596 cricket::SendDataResult result; 3596 cricket::SendDataResult result;
3597 ASSERT_TRUE(media_channel1_->SendData(params, payload, &result)); 3597 ASSERT_TRUE(media_channel1_->SendData(params, payload, &result));
3598 EXPECT_EQ(params.ssrc, 3598 EXPECT_EQ(params.ssrc,
3599 media_channel1_->last_sent_data_params().ssrc); 3599 media_channel1_->last_sent_data_params().ssrc);
3600 EXPECT_EQ("foo", media_channel1_->last_sent_data()); 3600 EXPECT_EQ("foo", media_channel1_->last_sent_data());
3601 } 3601 }
3602 3602
3603 // TODO(pthatcher): TestSetReceiver? 3603 // TODO(pthatcher): TestSetReceiver?
OLDNEW
« no previous file with comments | « webrtc/pc/channel.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698