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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy_unittest.cc

Issue 2086633002: Revert of Remove audio/video distinction for probe packets. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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 (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 19 matching lines...) Expand all
30 class RemoteEstimatorProxyTest : public ::testing::Test { 30 class RemoteEstimatorProxyTest : public ::testing::Test {
31 public: 31 public:
32 RemoteEstimatorProxyTest() : clock_(0), proxy_(&clock_, &router_) {} 32 RemoteEstimatorProxyTest() : clock_(0), proxy_(&clock_, &router_) {}
33 33
34 protected: 34 protected:
35 void IncomingPacket(uint16_t seq, int64_t time_ms) { 35 void IncomingPacket(uint16_t seq, int64_t time_ms) {
36 RTPHeader header; 36 RTPHeader header;
37 header.extension.hasTransportSequenceNumber = true; 37 header.extension.hasTransportSequenceNumber = true;
38 header.extension.transportSequenceNumber = seq; 38 header.extension.transportSequenceNumber = seq;
39 header.ssrc = kMediaSsrc; 39 header.ssrc = kMediaSsrc;
40 proxy_.IncomingPacket(time_ms, kDefaultPacketSize, header); 40 proxy_.IncomingPacket(time_ms, kDefaultPacketSize, header, true);
41 } 41 }
42 42
43 void Process() { 43 void Process() {
44 clock_.AdvanceTimeMilliseconds( 44 clock_.AdvanceTimeMilliseconds(
45 RemoteEstimatorProxy::kDefaultProcessIntervalMs); 45 RemoteEstimatorProxy::kDefaultProcessIntervalMs);
46 proxy_.Process(); 46 proxy_.Process();
47 } 47 }
48 48
49 SimulatedClock clock_; 49 SimulatedClock clock_;
50 MockPacketRouter router_; 50 MockPacketRouter router_;
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 (packet->GetBaseTimeUs() + delta_vec[0]) / 1000); 288 (packet->GetBaseTimeUs() + delta_vec[0]) / 1000);
289 EXPECT_EQ(kTimeoutTimeMs - kBaseTimeMs, delta_vec[1] / 1000); 289 EXPECT_EQ(kTimeoutTimeMs - kBaseTimeMs, delta_vec[1] / 1000);
290 EXPECT_EQ(1, delta_vec[2] / 1000); 290 EXPECT_EQ(1, delta_vec[2] / 1000);
291 return true; 291 return true;
292 })); 292 }));
293 293
294 Process(); 294 Process();
295 } 295 }
296 296
297 } // namespace webrtc 297 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698