| OLD | NEW |
| 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 Loading... |
| 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, true); | 40 proxy_.IncomingPacket(time_ms, kDefaultPacketSize, header); |
| 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 Loading... |
| 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 |
| OLD | NEW |