Modify audio_processing_unittest to use ResourcePath instead of ProjectRootPath.
Move the resources to //resources and upload them to Google Storage. BUG=webrtc:6727 Review-Url: https://codereview.webrtc.org/2508943004 Cr-Commit-Position: refs/heads/master@{#15152}
This commit is contained in:
@ -391,7 +391,6 @@ class ApmTest : public ::testing::Test {
|
||||
void VerifyDebugDumpTest(Format format);
|
||||
|
||||
const std::string output_path_;
|
||||
const std::string ref_path_;
|
||||
const std::string ref_filename_;
|
||||
std::unique_ptr<AudioProcessing> apm_;
|
||||
AudioFrame* frame_;
|
||||
@ -407,21 +406,18 @@ class ApmTest : public ::testing::Test {
|
||||
|
||||
ApmTest::ApmTest()
|
||||
: output_path_(test::OutputPath()),
|
||||
#ifndef WEBRTC_IOS
|
||||
ref_path_(test::ProjectRootPath() + "data/audio_processing/"),
|
||||
#else
|
||||
// On iOS test data is flat in the project root dir
|
||||
ref_path_(test::ProjectRootPath()),
|
||||
#endif
|
||||
#if defined(WEBRTC_AUDIOPROC_FIXED_PROFILE)
|
||||
ref_filename_(ref_path_ + "output_data_fixed.pb"),
|
||||
ref_filename_(test::ResourcePath("audio_processing/output_data_fixed",
|
||||
"pb")),
|
||||
#elif defined(WEBRTC_AUDIOPROC_FLOAT_PROFILE)
|
||||
#if defined(WEBRTC_MAC)
|
||||
// A different file for Mac is needed because on this platform the AEC
|
||||
// constant |kFixedDelayMs| value is 20 and not 50 as it is on the rest.
|
||||
ref_filename_(ref_path_ + "output_data_mac.pb"),
|
||||
ref_filename_(test::ResourcePath("audio_processing/output_data_mac",
|
||||
"pb")),
|
||||
#else
|
||||
ref_filename_(ref_path_ + "output_data_float.pb"),
|
||||
ref_filename_(test::ResourcePath("audio_processing/output_data_float",
|
||||
"pb")),
|
||||
#endif
|
||||
#endif
|
||||
frame_(NULL),
|
||||
|
||||
Reference in New Issue
Block a user