blob: a80d71a2c823e69809a0910b4d594d2f4eb08f8a [file] [log] [blame]
/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include "webrtc/voice_engine/test/auto_test/resource_manager.h"
#include "webrtc/test/testsupport/fileutils.h"
ResourceManager::ResourceManager() {
std::string filename = "audio_long16.pcm";
#if defined(WEBRTC_ANDROID)
long_audio_file_path_ = "/sdcard/" + filename;
#else
std::string resource_path = webrtc::test::ProjectRootPath();
if (resource_path == webrtc::test::kCannotFindProjectRootDir) {
long_audio_file_path_ = "";
} else {
long_audio_file_path_ =
resource_path + "data/voice_engine/" + filename;
}
#endif
}