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

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

Issue 1228843002: Update audio code to use size_t more correctly, (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Review comments Created 5 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) 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 23 matching lines...) Expand all
34 const DecoderDatabase& decoder_database, 34 const DecoderDatabase& decoder_database,
35 uint8_t* current_rtp_payload_type, 35 uint8_t* current_rtp_payload_type,
36 uint8_t* current_cng_rtp_payload_type)); 36 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*(int* 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 int()); 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

Powered by Google App Engine
This is Rietveld 408576698