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

Side by Side Diff: webrtc/modules/congestion_controller/include/send_side_congestion_controller.h

Issue 2834663003: Allow mocking SendSideCongestionController for Call tests. (Closed)
Patch Set: rebase Created 3 years, 7 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/modules/congestion_controller/include/mock/mock_send_side_congestion_controller.h ('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 (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 class Observer { 50 class Observer {
51 public: 51 public:
52 virtual void OnNetworkChanged(uint32_t bitrate_bps, 52 virtual void OnNetworkChanged(uint32_t bitrate_bps,
53 uint8_t fraction_loss, // 0 - 255. 53 uint8_t fraction_loss, // 0 - 255.
54 int64_t rtt_ms, 54 int64_t rtt_ms,
55 int64_t probing_interval_ms) = 0; 55 int64_t probing_interval_ms) = 0;
56 56
57 protected: 57 protected:
58 virtual ~Observer() {} 58 virtual ~Observer() {}
59 }; 59 };
60 // TODO(nisse): Consider deleting the |observer| argument to constructors. 60 // TODO(nisse): Consider deleting the |observer| argument to constructors
61 // once CongestionController is deleted.
61 SendSideCongestionController(const Clock* clock, 62 SendSideCongestionController(const Clock* clock,
62 Observer* observer, 63 Observer* observer,
63 RtcEventLog* event_log, 64 RtcEventLog* event_log,
64 PacketRouter* packet_router); 65 PacketRouter* packet_router);
65 SendSideCongestionController(const Clock* clock, 66 SendSideCongestionController(const Clock* clock,
66 Observer* observer, 67 Observer* observer,
67 RtcEventLog* event_log, 68 RtcEventLog* event_log,
68 std::unique_ptr<PacedSender> pacer); 69 std::unique_ptr<PacedSender> pacer);
69 virtual ~SendSideCongestionController(); 70 virtual ~SendSideCongestionController();
70 71
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 std::unique_ptr<DelayBasedBwe> delay_based_bwe_ GUARDED_BY(bwe_lock_); 155 std::unique_ptr<DelayBasedBwe> delay_based_bwe_ GUARDED_BY(bwe_lock_);
155 156
156 rtc::ThreadChecker worker_thread_checker_; 157 rtc::ThreadChecker worker_thread_checker_;
157 158
158 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SendSideCongestionController); 159 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SendSideCongestionController);
159 }; 160 };
160 161
161 } // namespace webrtc 162 } // namespace webrtc
162 163
163 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_SEND_SIDE_CONGESTION_CON TROLLER_H_ 164 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_SEND_SIDE_CONGESTION_CON TROLLER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/congestion_controller/include/mock/mock_send_side_congestion_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698