OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/android/path_utils.h" | 5 #include "base/android/path_utils.h" |
6 #include "base/file_util.h" | |
7 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
| 7 #include "base/files/file_util.h" |
8 | 8 |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace base { | 11 namespace base { |
12 namespace android { | 12 namespace android { |
13 | 13 |
14 typedef testing::Test PathUtilsTest; | 14 typedef testing::Test PathUtilsTest; |
15 | 15 |
16 TEST_F(PathUtilsTest, TestGetDataDirectory) { | 16 TEST_F(PathUtilsTest, TestGetDataDirectory) { |
17 // The string comes from the Java side and depends on the APK | 17 // The string comes from the Java side and depends on the APK |
(...skipping 20 matching lines...) Expand all Loading... |
38 // we are running in. Assumes that the directory contains | 38 // we are running in. Assumes that the directory contains |
39 // the base tests shared object. | 39 // the base tests shared object. |
40 FilePath path; | 40 FilePath path; |
41 GetNativeLibraryDirectory(&path); | 41 GetNativeLibraryDirectory(&path); |
42 EXPECT_TRUE(base::PathExists(path.Append(("libbase_unittests.so"))) || | 42 EXPECT_TRUE(base::PathExists(path.Append(("libbase_unittests.so"))) || |
43 base::PathExists(path.Append(("libbase_unittests.cr.so")))); | 43 base::PathExists(path.Append(("libbase_unittests.cr.so")))); |
44 } | 44 } |
45 | 45 |
46 } // namespace android | 46 } // namespace android |
47 } // namespace base | 47 } // namespace base |
OLD | NEW |