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

Side by Side Diff: webrtc/call/mock/mock_congestion_controller.h

Issue 1535963002: Wire-up BWE feedback for audio receive streams. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix audio receive stream test expectation. Created 5 years 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
(Empty)
1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_CALL_MOCK_MOCK_CONGESTION_CONTROLLER_H_
12 #define WEBRTC_CALL_MOCK_MOCK_CONGESTION_CONTROLLER_H_
13
14 #include "testing/gmock/include/gmock/gmock.h"
15 #include "webrtc/call/congestion_controller.h"
16
17 namespace webrtc {
the sun 2015/12/20 23:16:15 I'd put this under namespace webrtc { namespace
stefan-webrtc 2015/12/21 08:01:29 Sure, sounds good.
18
19 class MockCongestionController : public CongestionController {
20 public:
21 MockCongestionController(ProcessThread* process_thread,
22 CallStats* call_stats,
23 BitrateObserver* bitrate_observer)
24 : CongestionController(process_thread, call_stats, bitrate_observer) {}
25 MOCK_METHOD1(AddEncoder, void(ViEEncoder* encoder));
26 MOCK_METHOD1(RemoveEncoder, void(ViEEncoder* encoder));
27 MOCK_METHOD3(SetBweBitrates,
28 void(int min_bitrate_bps,
29 int start_bitrate_bps,
30 int max_bitrate_bps));
31 MOCK_METHOD3(SetChannelRembStatus,
32 void(bool sender, bool receiver, RtpRtcp* rtp_module));
33 MOCK_METHOD1(SignalNetworkState, void(NetworkState state));
34 MOCK_CONST_METHOD0(GetBitrateController, BitrateController*());
35 MOCK_CONST_METHOD1(GetRemoteBitrateEstimator,
36 RemoteBitrateEstimator*(bool send_side_bwe));
37 MOCK_CONST_METHOD0(GetPacerQueuingDelayMs, int64_t());
38 MOCK_CONST_METHOD0(pacer, PacedSender*());
39 MOCK_CONST_METHOD0(packet_router, PacketRouter*());
40 MOCK_METHOD0(GetTransportFeedbackObserver, TransportFeedbackObserver*());
41 MOCK_METHOD3(UpdatePacerBitrate,
42 void(int bitrate_kbps,
43 int max_bitrate_kbps,
44 int min_bitrate_kbps));
45 MOCK_METHOD1(OnSentPacket, void(const rtc::SentPacket& sent_packet));
46 };
47 } // namespace webrtc
48 #endif // WEBRTC_CALL_MOCK_MOCK_CONGESTION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698