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

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

Issue 2235373004: Probing: Add support for exponential startup probing (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@fix_probing2
Patch Set: Addressed comments Created 4 years, 3 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 22 matching lines...) Expand all
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698