2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
11 #include "base/android/path_utils.h"
12 #include "base/files/file_path.h"
17 std::string OutputPathImpl();
19 // This file is only compiled when running WebRTC tests in a Chromium workspace.
20 // The Android testing framework will push files relative to the root path of
21 // the Chromium workspace. The root path for webrtc is one directory up from
22 // trunk/webrtc (in standalone) or src/third_party/webrtc (in Chromium).
23 std::string ProjectRootPathAndroid() {
24 base::FilePath root_path;
25 base::android::GetExternalStorageDirectory(&root_path);
26 return root_path.value() + "/";
29 std::string OutputPathAndroid() {
30 return OutputPathImpl();