OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 20 matching lines...) Expand all Loading... |
31 // Note, we explicitly chose not to create a mock for the Encode method. | 31 // Note, we explicitly chose not to create a mock for the Encode method. |
32 MOCK_METHOD4(EncodeInternal, | 32 MOCK_METHOD4(EncodeInternal, |
33 EncodedInfo(uint32_t timestamp, | 33 EncodedInfo(uint32_t timestamp, |
34 const int16_t* audio, | 34 const int16_t* audio, |
35 size_t max_encoded_bytes, | 35 size_t max_encoded_bytes, |
36 uint8_t* encoded)); | 36 uint8_t* encoded)); |
37 MOCK_METHOD0(Reset, void()); | 37 MOCK_METHOD0(Reset, void()); |
38 MOCK_METHOD1(SetFec, bool(bool enable)); | 38 MOCK_METHOD1(SetFec, bool(bool enable)); |
39 MOCK_METHOD1(SetDtx, bool(bool enable)); | 39 MOCK_METHOD1(SetDtx, bool(bool enable)); |
40 MOCK_METHOD1(SetApplication, bool(Application application)); | 40 MOCK_METHOD1(SetApplication, bool(Application application)); |
41 MOCK_METHOD1(SetMaxPlaybackRate, bool(int frequency_hz)); | 41 MOCK_METHOD1(SetMaxPlaybackRate, void(int frequency_hz)); |
42 MOCK_METHOD1(SetProjectedPacketLossRate, void(double fraction)); | 42 MOCK_METHOD1(SetProjectedPacketLossRate, void(double fraction)); |
43 MOCK_METHOD1(SetTargetBitrate, void(int target_bps)); | 43 MOCK_METHOD1(SetTargetBitrate, void(int target_bps)); |
44 MOCK_METHOD1(SetMaxBitrate, void(int max_bps)); | 44 MOCK_METHOD1(SetMaxBitrate, void(int max_bps)); |
45 MOCK_METHOD1(SetMaxPayloadSize, void(int max_payload_size_bytes)); | 45 MOCK_METHOD1(SetMaxPayloadSize, void(int max_payload_size_bytes)); |
46 }; | 46 }; |
47 | 47 |
48 } // namespace webrtc | 48 } // namespace webrtc |
49 | 49 |
50 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_MOCK_MOCK_AUDIO_ENCODER_H_ | 50 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_MOCK_MOCK_AUDIO_ENCODER_H_ |
OLD | NEW |