Chromium Code Reviews| Index: webrtc/modules/audio_processing/audio_processing_impl_unittest.cc |
| diff --git a/webrtc/modules/audio_processing/audio_processing_impl_unittest.cc b/webrtc/modules/audio_processing/audio_processing_impl_unittest.cc |
| index ca6b7f6ff8112ae0ba4571c74ac745fe5a6cfabb..b6bad85fa1359fb48c1702c17e6859f9e939f1db 100644 |
| --- a/webrtc/modules/audio_processing/audio_processing_impl_unittest.cc |
| +++ b/webrtc/modules/audio_processing/audio_processing_impl_unittest.cc |
| @@ -8,6 +8,8 @@ |
| * be found in the AUTHORS file in the root of the source tree. |
| */ |
| +#if 0 |
|
the sun
2017/06/29 10:41:52
Uh-oh!
peah-webrtc
2017/06/29 11:46:32
Done.
|
| + |
| #include "webrtc/modules/audio_processing/audio_processing_impl.h" |
| #include "webrtc/config.h" |
| @@ -20,6 +22,7 @@ using ::testing::Invoke; |
| using ::testing::Return; |
| namespace webrtc { |
| +namespace { |
| class MockInitialize : public AudioProcessingImpl { |
| public: |
| @@ -30,8 +33,13 @@ class MockInitialize : public AudioProcessingImpl { |
| int RealInitializeLocked() NO_THREAD_SAFETY_ANALYSIS { |
| return AudioProcessingImpl::InitializeLocked(); |
| } |
| + |
| + MOCK_CONST_METHOD0(AddRef, int()); |
| + MOCK_CONST_METHOD0(Release, int()); |
| }; |
| +} // namespace |
| + |
| TEST(AudioProcessingImplTest, AudioParameterChangeTriggersInit) { |
| webrtc::Config config; |
| MockInitialize mock(config); |
| @@ -72,3 +80,5 @@ TEST(AudioProcessingImplTest, AudioParameterChangeTriggersInit) { |
| } |
| } // namespace webrtc |
| + |
| +#endif |