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 22 matching lines...) Expand all Loading... |
33 public: | 33 public: |
34 TransportFeedbackAdapterTest() | 34 TransportFeedbackAdapterTest() |
35 : clock_(0), | 35 : clock_(0), |
36 bitrate_estimator_(nullptr), | 36 bitrate_estimator_(nullptr), |
37 bitrate_controller_(this), | 37 bitrate_controller_(this), |
38 receiver_estimated_bitrate_(0) {} | 38 receiver_estimated_bitrate_(0) {} |
39 | 39 |
40 virtual ~TransportFeedbackAdapterTest() {} | 40 virtual ~TransportFeedbackAdapterTest() {} |
41 | 41 |
42 virtual void SetUp() { | 42 virtual void SetUp() { |
43 adapter_.reset(new TransportFeedbackAdapter(&bitrate_controller_, &clock_)); | 43 adapter_.reset(new TransportFeedbackAdapter(&clock_)); |
44 | 44 |
45 bitrate_estimator_ = new MockRemoteBitrateEstimator(); | 45 bitrate_estimator_ = new MockRemoteBitrateEstimator(); |
46 adapter_->SetBitrateEstimator(bitrate_estimator_); | 46 adapter_->SetBitrateEstimator(bitrate_estimator_); |
47 } | 47 } |
48 | 48 |
49 virtual void TearDown() { | 49 virtual void TearDown() { |
50 adapter_.reset(); | 50 adapter_.reset(); |
51 } | 51 } |
52 | 52 |
53 protected: | 53 protected: |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 })); | 354 })); |
355 adapter_->OnTransportFeedback(*feedback.get()); | 355 adapter_->OnTransportFeedback(*feedback.get()); |
356 | 356 |
357 expected_packets.push_back(info); | 357 expected_packets.push_back(info); |
358 | 358 |
359 ComparePacketVectors(expected_packets, received_feedback); | 359 ComparePacketVectors(expected_packets, received_feedback); |
360 } | 360 } |
361 | 361 |
362 } // namespace test | 362 } // namespace test |
363 } // namespace webrtc | 363 } // namespace webrtc |
OLD | NEW |