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

Side by Side Diff: webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h

Issue 2997973002: Split LogRtpHeader and LogRtcpPacket into separate versions for incoming and outgoing packets.
Patch Set: Use RTC_DEPRECATED Created 3 years, 4 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) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 23 matching lines...) Expand all
34 34
35 MOCK_METHOD1(LogVideoSendStreamConfig, 35 MOCK_METHOD1(LogVideoSendStreamConfig,
36 void(const rtclog::StreamConfig& config)); 36 void(const rtclog::StreamConfig& config));
37 37
38 MOCK_METHOD1(LogAudioReceiveStreamConfig, 38 MOCK_METHOD1(LogAudioReceiveStreamConfig,
39 void(const rtclog::StreamConfig& config)); 39 void(const rtclog::StreamConfig& config));
40 40
41 MOCK_METHOD1(LogAudioSendStreamConfig, 41 MOCK_METHOD1(LogAudioSendStreamConfig,
42 void(const rtclog::StreamConfig& config)); 42 void(const rtclog::StreamConfig& config));
43 43
44 MOCK_METHOD3(LogRtpHeader, 44 MOCK_METHOD2(LogIncomingRtpHeader,
45 void(PacketDirection direction, 45 void(const uint8_t* header, size_t packet_length));
the sun 2017/08/22 11:44:31 Please use ArrayView instead of pointer+size pairs
terelius 2017/09/04 12:47:51 After some discussions, it turned out that ArrayVi
46 const uint8_t* header,
47 size_t packet_length));
48 46
49 MOCK_METHOD4(LogRtpHeader, 47 MOCK_METHOD3(LogOutgoingRtpHeader,
50 void(PacketDirection direction, 48 void(const uint8_t* header,
51 const uint8_t* header,
52 size_t packet_length, 49 size_t packet_length,
53 int probe_cluster_id)); 50 int probe_cluster_id));
54 51
55 MOCK_METHOD3(LogRtcpPacket, 52 MOCK_METHOD2(LogIncomingRtcpPacket,
56 void(PacketDirection direction, 53 void(const uint8_t* packet, size_t length));
57 const uint8_t* packet, 54
58 size_t length)); 55 MOCK_METHOD2(LogOutgoingRtcpPacket,
56 void(const uint8_t* packet, size_t length));
59 57
60 MOCK_METHOD1(LogAudioPlayout, void(uint32_t ssrc)); 58 MOCK_METHOD1(LogAudioPlayout, void(uint32_t ssrc));
61 59
62 MOCK_METHOD3(LogLossBasedBweUpdate, 60 MOCK_METHOD3(LogLossBasedBweUpdate,
63 void(int32_t bitrate_bps, 61 void(int32_t bitrate_bps,
64 uint8_t fraction_loss, 62 uint8_t fraction_loss,
65 int32_t total_packets)); 63 int32_t total_packets));
66 64
67 MOCK_METHOD2(LogDelayBasedBweUpdate, 65 MOCK_METHOD2(LogDelayBasedBweUpdate,
68 void(int32_t bitrate_bps, BandwidthUsage detector_state)); 66 void(int32_t bitrate_bps, BandwidthUsage detector_state));
69 67
70 MOCK_METHOD1(LogAudioNetworkAdaptation, 68 MOCK_METHOD1(LogAudioNetworkAdaptation,
71 void(const AudioEncoderRuntimeConfig& config)); 69 void(const AudioEncoderRuntimeConfig& config));
72 70
73 MOCK_METHOD4(LogProbeClusterCreated, 71 MOCK_METHOD4(LogProbeClusterCreated,
74 void(int id, int bitrate_bps, int min_probes, int min_bytes)); 72 void(int id, int bitrate_bps, int min_probes, int min_bytes));
75 73
76 MOCK_METHOD2(LogProbeResultSuccess, void(int id, int bitrate_bps)); 74 MOCK_METHOD2(LogProbeResultSuccess, void(int id, int bitrate_bps));
77 MOCK_METHOD2(LogProbeResultFailure, 75 MOCK_METHOD2(LogProbeResultFailure,
78 void(int id, ProbeFailureReason failure_reason)); 76 void(int id, ProbeFailureReason failure_reason));
79 }; 77 };
80 78
81 } // namespace webrtc 79 } // namespace webrtc
82 80
83 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_MOCK_MOCK_RTC_EVENT_LOG_H_ 81 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_MOCK_MOCK_RTC_EVENT_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698