Fix modules_unittests on iOS.
Some of the module tests were failing on iOS, causing them to be ignored on the trybots. Specifically this CL: - Skips some tests that should not run on the simulator - Fixes iOS file system test helpers - Fixes failing nalu parser unittest BUG=webrtc:4752 R=henrika@webrtc.org, peah@webrtc.org, sprang@webrtc.org TBR=tkchin@webrtc.org Review URL: https://codereview.webrtc.org/2352063002 . Cr-Commit-Position: refs/heads/master@{#14472}
This commit is contained in:
@ -293,7 +293,7 @@ void ClearTempFiles() {
|
||||
remove(kv.second.c_str());
|
||||
}
|
||||
|
||||
void OpenFileAndReadMessage(const std::string filename,
|
||||
void OpenFileAndReadMessage(std::string filename,
|
||||
::google::protobuf::MessageLite* msg) {
|
||||
FILE* file = fopen(filename.c_str(), "rb");
|
||||
ASSERT_TRUE(file != NULL);
|
||||
@ -404,7 +404,12 @@ 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"),
|
||||
#elif defined(WEBRTC_AUDIOPROC_FLOAT_PROFILE)
|
||||
|
||||
Reference in New Issue
Block a user