build: Make build succeed without test and non-audio deps

This commit is contained in:
Arun Raghavan
2015-10-13 17:27:17 +05:30
parent 753eada3aa
commit 407bfbf651
6 changed files with 21 additions and 2 deletions

View File

@ -95,8 +95,10 @@ class IntelligibilityEnhancer {
AudioSource source_;
};
friend class TransformCallback;
#ifndef WEBRTC_AUDIO_PROCESSING_ONLY_BUILD
FRIEND_TEST_ALL_PREFIXES(IntelligibilityEnhancerTest, TestErbCreation);
FRIEND_TEST_ALL_PREFIXES(IntelligibilityEnhancerTest, TestSolveForGains);
#endif
// Sends streams to ProcessClearBlock or ProcessNoiseBlock based on source.
void DispatchAudio(AudioSource source,

View File

@ -15,7 +15,9 @@
#include <set>
#include "webrtc/base/scoped_ptr.h"
#ifndef WEBRTC_AUDIO_PROCESSING_ONLY_BUILD
#include "webrtc/test/testsupport/gtest_prod_util.h"
#endif
#include "webrtc/typedefs.h"
namespace webrtc {
@ -59,8 +61,10 @@ class TransientSuppressor {
bool key_pressed);
private:
#ifndef WEBRTC_AUDIO_PROCESSING_ONLY_BUILD
FRIEND_TEST_ALL_PREFIXES(TransientSuppressorTest,
TypingDetectionLogicWorksAsExpectedForMono);
#endif
void Suppress(float* in_ptr, float* spectral_mean, float* out_ptr);
void UpdateKeypress(bool key_pressed);