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

Side by Side Diff: webrtc/test/mock_voe_channel_proxy.h

Issue 2964593002: Adding stats that can be used to compute output audio levels. (Closed)
Patch Set: Add test coverage in AudioSendStreamTest. Created 3 years, 5 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/stats/rtcstats_objects.cc ('k') | webrtc/voice_engine/channel.h » ('j') | 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) 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 MOCK_METHOD1(RegisterReceiverCongestionControlObjects, 47 MOCK_METHOD1(RegisterReceiverCongestionControlObjects,
48 void(PacketRouter* packet_router)); 48 void(PacketRouter* packet_router));
49 MOCK_METHOD0(ResetSenderCongestionControlObjects, void()); 49 MOCK_METHOD0(ResetSenderCongestionControlObjects, void());
50 MOCK_METHOD0(ResetReceiverCongestionControlObjects, void()); 50 MOCK_METHOD0(ResetReceiverCongestionControlObjects, void());
51 MOCK_CONST_METHOD0(GetRTCPStatistics, CallStatistics()); 51 MOCK_CONST_METHOD0(GetRTCPStatistics, CallStatistics());
52 MOCK_CONST_METHOD0(GetRemoteRTCPReportBlocks, std::vector<ReportBlock>()); 52 MOCK_CONST_METHOD0(GetRemoteRTCPReportBlocks, std::vector<ReportBlock>());
53 MOCK_CONST_METHOD0(GetNetworkStatistics, NetworkStatistics()); 53 MOCK_CONST_METHOD0(GetNetworkStatistics, NetworkStatistics());
54 MOCK_CONST_METHOD0(GetDecodingCallStatistics, AudioDecodingCallStats()); 54 MOCK_CONST_METHOD0(GetDecodingCallStatistics, AudioDecodingCallStats());
55 MOCK_CONST_METHOD0(GetSpeechOutputLevel, int()); 55 MOCK_CONST_METHOD0(GetSpeechOutputLevel, int());
56 MOCK_CONST_METHOD0(GetSpeechOutputLevelFullRange, int()); 56 MOCK_CONST_METHOD0(GetSpeechOutputLevelFullRange, int());
57 MOCK_CONST_METHOD0(GetTotalOutputEnergy, double());
58 MOCK_CONST_METHOD0(GetTotalOutputDuration, double());
57 MOCK_CONST_METHOD0(GetDelayEstimate, uint32_t()); 59 MOCK_CONST_METHOD0(GetDelayEstimate, uint32_t());
58 MOCK_METHOD2(SetSendTelephoneEventPayloadType, bool(int payload_type, 60 MOCK_METHOD2(SetSendTelephoneEventPayloadType, bool(int payload_type,
59 int payload_frequency)); 61 int payload_frequency));
60 MOCK_METHOD2(SendTelephoneEventOutband, bool(int event, int duration_ms)); 62 MOCK_METHOD2(SendTelephoneEventOutband, bool(int event, int duration_ms));
61 MOCK_METHOD2(SetBitrate, void(int bitrate_bps, int64_t probing_interval_ms)); 63 MOCK_METHOD2(SetBitrate, void(int bitrate_bps, int64_t probing_interval_ms));
62 // TODO(solenberg): Talk the compiler into accepting this mock method: 64 // TODO(solenberg): Talk the compiler into accepting this mock method:
63 // MOCK_METHOD1(SetSink, void(std::unique_ptr<AudioSinkInterface> sink)); 65 // MOCK_METHOD1(SetSink, void(std::unique_ptr<AudioSinkInterface> sink));
64 MOCK_METHOD1(SetInputMute, void(bool muted)); 66 MOCK_METHOD1(SetInputMute, void(bool muted));
65 MOCK_METHOD1(RegisterExternalTransport, void(Transport* transport)); 67 MOCK_METHOD1(RegisterExternalTransport, void(Transport* transport));
66 MOCK_METHOD0(DeRegisterExternalTransport, void()); 68 MOCK_METHOD0(DeRegisterExternalTransport, void());
(...skipping 21 matching lines...) Expand all
88 void(const std::map<int, SdpAudioFormat>& codecs)); 90 void(const std::map<int, SdpAudioFormat>& codecs));
89 MOCK_METHOD1(OnTwccBasedUplinkPacketLossRate, void(float packet_loss_rate)); 91 MOCK_METHOD1(OnTwccBasedUplinkPacketLossRate, void(float packet_loss_rate));
90 MOCK_METHOD1(OnRecoverableUplinkPacketLossRate, 92 MOCK_METHOD1(OnRecoverableUplinkPacketLossRate,
91 void(float recoverable_packet_loss_rate)); 93 void(float recoverable_packet_loss_rate));
92 MOCK_CONST_METHOD0(GetSources, std::vector<RtpSource>()); 94 MOCK_CONST_METHOD0(GetSources, std::vector<RtpSource>());
93 }; 95 };
94 } // namespace test 96 } // namespace test
95 } // namespace webrtc 97 } // namespace webrtc
96 98
97 #endif // WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_ 99 #endif // WEBRTC_TEST_MOCK_VOE_CHANNEL_PROXY_H_
OLDNEW
« no previous file with comments | « webrtc/stats/rtcstats_objects.cc ('k') | webrtc/voice_engine/channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698