Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(545)

Unified Diff: webrtc/modules/audio_processing/audio_processing_impl_unittest.cc

Issue 2948763002: Allow an external audio processing module to be used in WebRTC (Closed)
Patch Set: tracking linux32_rel issue Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 a68da2f50fffa4b40ef170ee6e4015419e35c4d8..9789c7c00a9fc8c07aa956fd6884df63daf6e765 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
+
#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);
@@ -73,3 +81,5 @@ TEST(AudioProcessingImplTest, AudioParameterChangeTriggersInit) {
}
} // namespace webrtc
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698