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

Side by Side Diff: webrtc/modules/bitrate_controller/include/mock/mock_bitrate_controller.h

Issue 1581113006: Support REMB in combination with send-side BWE. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added comment. Created 4 years, 11 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
11 #ifndef WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_MOCK_MOCK_BITRATE_CONTROLLER_H _ 11 #ifndef WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_MOCK_MOCK_BITRATE_CONTROLLER_H _
12 #define WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_MOCK_MOCK_BITRATE_CONTROLLER_H _ 12 #define WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_MOCK_MOCK_BITRATE_CONTROLLER_H _
13 13
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" 15 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h"
16 16
17 namespace webrtc { 17 namespace webrtc {
18 namespace test { 18 namespace test {
19 19
20 class MockBitrateObserver : public BitrateObserver { 20 class MockBitrateObserver : public BitrateObserver {
21 public: 21 public:
22 MOCK_METHOD3(OnNetworkChanged, 22 MOCK_METHOD3(OnNetworkChanged,
23 void(uint32_t bitrate_bps, 23 void(uint32_t bitrate_bps,
24 uint8_t fraction_loss, 24 uint8_t fraction_loss,
25 int64_t rtt_ms)); 25 int64_t rtt_ms));
26 }; 26 };
27
28 class MockBitrateController : public BitrateController {
29 public:
30 MOCK_METHOD0(CreateRtcpBandwidthObserver, RtcpBandwidthObserver*());
31 MOCK_METHOD1(SetStartBitrate, void(int start_bitrate_bps));
32 MOCK_METHOD2(SetMinMaxBitrate,
33 void(int min_bitrate_bps, int max_bitrate_bps));
34 MOCK_METHOD1(UpdateDelayBasedEstimate, void(uint32_t bitrate_bps));
35 MOCK_METHOD1(SetEventLog, void(RtcEventLog* event_log));
36 MOCK_CONST_METHOD1(AvailableBandwidth, bool(uint32_t* bandwidth));
37 MOCK_METHOD1(SetReservedBitrate, void(uint32_t reserved_bitrate_bps));
38
39 MOCK_METHOD0(Process, int());
40 MOCK_METHOD0(TimeUntilNextProcess, int64_t());
41 };
27 } // namespace test 42 } // namespace test
28 } // namespace webrtc 43 } // namespace webrtc
29 44
30 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_MOCK_MOCK_BITRATE_CONTROLLE R_H_ 45 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_INCLUDE_MOCK_MOCK_BITRATE_CONTROLLE R_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698