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

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

Issue 1571283002: Fixes a bug which incorrectly logs incoming RTCP as outgoing. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase 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
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/call/rtc_event_log.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2016 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_RTC_EVENT_LOG_H_
12 #define WEBRTC_CALL_MOCK_MOCK_RTC_EVENT_LOG_H_
13
14 #include <string>
15
16 #include "testing/gmock/include/gmock/gmock.h"
17
18 #include "webrtc/call/rtc_event_log.h"
19
20 namespace webrtc {
21
22 class MockRtcEventLog : public RtcEventLog {
23 public:
24 MOCK_METHOD1(SetBufferDuration, void(int64_t buffer_duration_us));
25
26 MOCK_METHOD2(StartLogging,
27 void(const std::string& file_name, int duration_ms));
28
29 MOCK_METHOD1(StartLogging, bool(rtc::PlatformFile log_file));
30
31 MOCK_METHOD0(StopLogging, void());
32
33 MOCK_METHOD1(LogVideoReceiveStreamConfig,
34 void(const webrtc::VideoReceiveStream::Config& config));
35
36 MOCK_METHOD1(LogVideoSendStreamConfig,
37 void(const webrtc::VideoSendStream::Config& config));
38
39 MOCK_METHOD4(LogRtpHeader,
40 void(PacketDirection direction,
41 MediaType media_type,
42 const uint8_t* header,
43 size_t packet_length));
44
45 MOCK_METHOD4(LogRtcpPacket,
46 void(PacketDirection direction,
47 MediaType media_type,
48 const uint8_t* packet,
49 size_t length));
50
51 MOCK_METHOD1(LogAudioPlayout, void(uint32_t ssrc));
52
53 MOCK_METHOD3(LogBwePacketLossEvent,
54 void(int32_t bitrate,
55 uint8_t fraction_loss,
56 int32_t total_packets));
57 };
58
59 } // namespace webrtc
60
61 #endif // WEBRTC_CALL_MOCK_MOCK_RTC_EVENT_LOG_H_
OLDNEW
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/call/rtc_event_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698