Chromium Code Reviews| Index: webrtc/modules/audio_processing/agc2/agc2_mock.h |
| diff --git a/webrtc/modules/audio_processing/agc2/agc2_mock.h b/webrtc/modules/audio_processing/agc2/agc2_mock.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..45b286618d5c9bb0afd22b39588854872c473f0f |
| --- /dev/null |
| +++ b/webrtc/modules/audio_processing/agc2/agc2_mock.h |
| @@ -0,0 +1,32 @@ |
| +/* |
| + * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| + * |
| + * Use of this source code is governed by a BSD-style license |
| + * that can be found in the LICENSE file in the root of the source |
| + * tree. An additional intellectual property rights grant can be found |
| + * in the file PATENTS. All contributing project authors may |
| + * be found in the AUTHORS file in the root of the source tree. |
| + */ |
| + |
| +#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AGC2_AGC2_MOCK_H_ |
| +#define WEBRTC_MODULES_AUDIO_PROCESSING_AGC2_AGC2_MOCK_H_ |
| + |
| +#include "webrtc/base/checks.h" |
| +#include "webrtc/modules/audio_processing/agc2/agc2.h" |
| +#include "webrtc/test/gmock.h" |
| + |
| +namespace webrtc { |
| +namespace test { |
| + |
| +class Agc2Mock : Agc2 { |
|
peah-webrtc
2017/05/02 11:01:08
I don't think we need a mock of AGC2. The main adv
AleBzk
2017/05/02 11:31:54
Right. Before removing AGC2 interface and its mock
peah-webrtc
2017/05/02 11:45:20
I don't think we should have any depencencies if w
AleBzk
2017/05/02 15:42:51
Mock removed.
|
| + public: |
| + explicit Agc2Mock(rtc::CriticalSection* crit) { |
| + RTC_DCHECK(crit); |
| + } |
| + ~Agc2Mock() override = default; |
| +}; |
| + |
| +} // namespace test |
| +} // namespace webrtc |
| + |
| +#endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC2_AGC2_MOCK_H_ |