OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 |
11 #ifndef WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_MOCK_AUDIO_DEVICE_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_MOCK_AUDIO_DEVICE_H_ |
12 #define WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_MOCK_AUDIO_DEVICE_H_ | 12 #define WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_MOCK_AUDIO_DEVICE_H_ |
13 | 13 |
14 #include <string> | 14 #include <string> |
| 15 |
| 16 #include "webrtc/modules/audio_device/include/audio_device.h" |
15 #include "webrtc/test/gmock.h" | 17 #include "webrtc/test/gmock.h" |
16 #include "webrtc/modules/audio_device/include/audio_device.h" | |
17 | 18 |
18 namespace webrtc { | 19 namespace webrtc { |
19 namespace test { | 20 namespace test { |
20 | 21 |
21 class MockAudioDeviceModule : public AudioDeviceModule { | 22 class MockAudioDeviceModule : public AudioDeviceModule { |
22 public: | 23 public: |
23 // Module. | 24 // Module. |
24 MOCK_METHOD0(TimeUntilNextProcess, int64_t()); | 25 MOCK_METHOD0(TimeUntilNextProcess, int64_t()); |
25 MOCK_METHOD0(Process, void()); | 26 MOCK_METHOD0(Process, void()); |
26 MOCK_METHOD1(ProcessThreadAttached, void(ProcessThread*)); | 27 MOCK_METHOD1(ProcessThreadAttached, void(ProcessThread*)); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 MOCK_METHOD1(EnableBuiltInNS, int32_t(bool enable)); | 128 MOCK_METHOD1(EnableBuiltInNS, int32_t(bool enable)); |
128 #if defined(WEBRTC_IOS) | 129 #if defined(WEBRTC_IOS) |
129 MOCK_CONST_METHOD1(GetPlayoutAudioParameters, int(AudioParameters* params)); | 130 MOCK_CONST_METHOD1(GetPlayoutAudioParameters, int(AudioParameters* params)); |
130 MOCK_CONST_METHOD1(GetRecordAudioParameters, int(AudioParameters* params)); | 131 MOCK_CONST_METHOD1(GetRecordAudioParameters, int(AudioParameters* params)); |
131 #endif // WEBRTC_IOS | 132 #endif // WEBRTC_IOS |
132 }; | 133 }; |
133 } // namespace test | 134 } // namespace test |
134 } // namespace webrtc | 135 } // namespace webrtc |
135 | 136 |
136 #endif // WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_MOCK_AUDIO_DEVICE_H_ | 137 #endif // WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_MOCK_AUDIO_DEVICE_H_ |
OLD | NEW |