Upstream version 11.39.266.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / test / testsupport / android / root_path_android_chromium.cc
1 /*
2  *  Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3  *
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.
9  */
10
11 #include "base/android/path_utils.h"
12 #include "base/files/file_path.h"
13
14 namespace webrtc {
15 namespace test {
16
17 std::string OutputPathImpl();
18
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() + "/";
27 }
28
29 std::string OutputPathAndroid() {
30   return OutputPathImpl();
31 }
32
33 }  // namespace test
34 }  // namespace webrtc