OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2010 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 #define WEBRTC_BOOL_STUB(method, args) \ | 45 #define WEBRTC_BOOL_STUB(method, args) \ |
46 bool method args override { return true; } | 46 bool method args override { return true; } |
47 | 47 |
48 #define WEBRTC_BOOL_STUB_CONST(method, args) \ | 48 #define WEBRTC_BOOL_STUB_CONST(method, args) \ |
49 bool method args const override { return true; } | 49 bool method args const override { return true; } |
50 | 50 |
51 #define WEBRTC_VOID_STUB(method, args) \ | 51 #define WEBRTC_VOID_STUB(method, args) \ |
52 void method args override {} | 52 void method args override {} |
53 | 53 |
| 54 #define WEBRTC_VOID_STUB_CONST(method, args) \ |
| 55 void method args const override {} |
| 56 |
54 #define WEBRTC_FUNC(method, args) int method args override | 57 #define WEBRTC_FUNC(method, args) int method args override |
55 | 58 |
56 #define WEBRTC_VOID_FUNC(method, args) void method args override | 59 #define WEBRTC_VOID_FUNC(method, args) void method args override |
57 | 60 |
58 class FakeAudioProcessing : public webrtc::AudioProcessing { | 61 class FakeAudioProcessing : public webrtc::AudioProcessing { |
59 public: | 62 public: |
60 FakeAudioProcessing() : experimental_ns_enabled_(false) {} | 63 FakeAudioProcessing() : experimental_ns_enabled_(false) {} |
61 | 64 |
62 WEBRTC_STUB(Initialize, ()) | 65 WEBRTC_STUB(Initialize, ()) |
63 WEBRTC_STUB(Initialize, ( | 66 WEBRTC_STUB(Initialize, ( |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 WEBRTC_VOID_STUB(set_stream_key_pressed, (bool key_pressed)); | 116 WEBRTC_VOID_STUB(set_stream_key_pressed, (bool key_pressed)); |
114 WEBRTC_VOID_STUB(set_delay_offset_ms, (int offset)); | 117 WEBRTC_VOID_STUB(set_delay_offset_ms, (int offset)); |
115 WEBRTC_STUB_CONST(delay_offset_ms, ()); | 118 WEBRTC_STUB_CONST(delay_offset_ms, ()); |
116 WEBRTC_STUB(StartDebugRecording, | 119 WEBRTC_STUB(StartDebugRecording, |
117 (const char filename[kMaxFilenameSize], int64_t max_size_bytes)); | 120 (const char filename[kMaxFilenameSize], int64_t max_size_bytes)); |
118 WEBRTC_STUB(StartDebugRecording, (FILE * handle, int64_t max_size_bytes)); | 121 WEBRTC_STUB(StartDebugRecording, (FILE * handle, int64_t max_size_bytes)); |
119 WEBRTC_STUB(StartDebugRecording, (FILE * handle)); | 122 WEBRTC_STUB(StartDebugRecording, (FILE * handle)); |
120 WEBRTC_STUB(StartDebugRecordingForPlatformFile, (rtc::PlatformFile handle)); | 123 WEBRTC_STUB(StartDebugRecordingForPlatformFile, (rtc::PlatformFile handle)); |
121 WEBRTC_STUB(StopDebugRecording, ()); | 124 WEBRTC_STUB(StopDebugRecording, ()); |
122 WEBRTC_VOID_STUB(UpdateHistogramsOnCallEnd, ()); | 125 WEBRTC_VOID_STUB(UpdateHistogramsOnCallEnd, ()); |
| 126 WEBRTC_VOID_STUB(SetStatisticsEnabled, (bool enabled)); |
| 127 WEBRTC_VOID_STUB_CONST(GetStatistics, |
| 128 (webrtc::AudioProcessing::AudioProcessingStatistics * |
| 129 stats)); |
123 webrtc::EchoCancellation* echo_cancellation() const override { return NULL; } | 130 webrtc::EchoCancellation* echo_cancellation() const override { return NULL; } |
124 webrtc::EchoControlMobile* echo_control_mobile() const override { | 131 webrtc::EchoControlMobile* echo_control_mobile() const override { |
125 return NULL; | 132 return NULL; |
126 } | 133 } |
127 webrtc::GainControl* gain_control() const override { return NULL; } | 134 webrtc::GainControl* gain_control() const override { return NULL; } |
128 webrtc::HighPassFilter* high_pass_filter() const override { return NULL; } | 135 webrtc::HighPassFilter* high_pass_filter() const override { return NULL; } |
129 webrtc::LevelEstimator* level_estimator() const override { return NULL; } | 136 webrtc::LevelEstimator* level_estimator() const override { return NULL; } |
130 webrtc::NoiseSuppression* noise_suppression() const override { return NULL; } | 137 webrtc::NoiseSuppression* noise_suppression() const override { return NULL; } |
131 webrtc::VoiceDetection* voice_detection() const override { return NULL; } | 138 webrtc::VoiceDetection* voice_detection() const override { return NULL; } |
132 | 139 |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 webrtc::AecmModes aecm_mode_ = webrtc::kAecmSpeakerphone; | 568 webrtc::AecmModes aecm_mode_ = webrtc::kAecmSpeakerphone; |
562 webrtc::NsModes ns_mode_ = webrtc::kNsDefault; | 569 webrtc::NsModes ns_mode_ = webrtc::kNsDefault; |
563 webrtc::AgcModes agc_mode_ = webrtc::kAgcDefault; | 570 webrtc::AgcModes agc_mode_ = webrtc::kAgcDefault; |
564 webrtc::AgcConfig agc_config_; | 571 webrtc::AgcConfig agc_config_; |
565 FakeAudioProcessing audio_processing_; | 572 FakeAudioProcessing audio_processing_; |
566 }; | 573 }; |
567 | 574 |
568 } // namespace cricket | 575 } // namespace cricket |
569 | 576 |
570 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ | 577 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ |
OLD | NEW |