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

Side by Side Diff: webrtc/modules/audio_coding/neteq/mock/mock_packet_buffer.h

Issue 2290153002: NetEq: Change member variables for current RTP types to rtc::Optionals (Closed)
Patch Set: Updates after review Created 4 years, 3 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 | « no previous file | webrtc/modules/audio_coding/neteq/neteq_impl.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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 14 matching lines...) Expand all
25 MOCK_METHOD0(Die, void()); 25 MOCK_METHOD0(Die, void());
26 MOCK_METHOD0(Flush, 26 MOCK_METHOD0(Flush,
27 void()); 27 void());
28 MOCK_CONST_METHOD0(Empty, 28 MOCK_CONST_METHOD0(Empty,
29 bool()); 29 bool());
30 MOCK_METHOD1(InsertPacket, 30 MOCK_METHOD1(InsertPacket,
31 int(Packet* packet)); 31 int(Packet* packet));
32 MOCK_METHOD4(InsertPacketList, 32 MOCK_METHOD4(InsertPacketList,
33 int(PacketList* packet_list, 33 int(PacketList* packet_list,
34 const DecoderDatabase& decoder_database, 34 const DecoderDatabase& decoder_database,
35 uint8_t* current_rtp_payload_type, 35 rtc::Optional<uint8_t>* current_rtp_payload_type,
36 uint8_t* current_cng_rtp_payload_type)); 36 rtc::Optional<uint8_t>* current_cng_rtp_payload_type));
37 MOCK_CONST_METHOD1(NextTimestamp, 37 MOCK_CONST_METHOD1(NextTimestamp,
38 int(uint32_t* next_timestamp)); 38 int(uint32_t* next_timestamp));
39 MOCK_CONST_METHOD2(NextHigherTimestamp, 39 MOCK_CONST_METHOD2(NextHigherTimestamp,
40 int(uint32_t timestamp, uint32_t* next_timestamp)); 40 int(uint32_t timestamp, uint32_t* next_timestamp));
41 MOCK_CONST_METHOD0(NextRtpHeader, 41 MOCK_CONST_METHOD0(NextRtpHeader,
42 const RTPHeader*()); 42 const RTPHeader*());
43 MOCK_METHOD1(GetNextPacket, 43 MOCK_METHOD1(GetNextPacket,
44 Packet*(size_t* discard_count)); 44 Packet*(size_t* discard_count));
45 MOCK_METHOD0(DiscardNextPacket, 45 MOCK_METHOD0(DiscardNextPacket,
46 int()); 46 int());
47 MOCK_METHOD2(DiscardOldPackets, 47 MOCK_METHOD2(DiscardOldPackets,
48 int(uint32_t timestamp_limit, uint32_t horizon_samples)); 48 int(uint32_t timestamp_limit, uint32_t horizon_samples));
49 MOCK_METHOD1(DiscardAllOldPackets, 49 MOCK_METHOD1(DiscardAllOldPackets,
50 int(uint32_t timestamp_limit)); 50 int(uint32_t timestamp_limit));
51 MOCK_CONST_METHOD0(NumPacketsInBuffer, 51 MOCK_CONST_METHOD0(NumPacketsInBuffer,
52 size_t()); 52 size_t());
53 MOCK_METHOD1(IncrementWaitingTimes, 53 MOCK_METHOD1(IncrementWaitingTimes,
54 void(int)); 54 void(int));
55 MOCK_CONST_METHOD0(current_memory_bytes, 55 MOCK_CONST_METHOD0(current_memory_bytes,
56 int()); 56 int());
57 }; 57 };
58 58
59 } // namespace webrtc 59 } // namespace webrtc
60 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_MOCK_MOCK_PACKET_BUFFER_H_ 60 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_MOCK_MOCK_PACKET_BUFFER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/neteq/neteq_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698