Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: base/android/path_utils_unittest.cc

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | base/base_paths.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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" 6 #include "base/file_util.h"
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 8
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 21 matching lines...) Expand all
32 EXPECT_STREQ("/data/data/org.chromium.native_test/cache", 32 EXPECT_STREQ("/data/data/org.chromium.native_test/cache",
33 path.value().c_str()); 33 path.value().c_str());
34 } 34 }
35 35
36 TEST_F(PathUtilsTest, TestGetNativeLibraryDirectory) { 36 TEST_F(PathUtilsTest, TestGetNativeLibraryDirectory) {
37 // The string comes from the Java side and depends on the APK 37 // The string comes from the Java side and depends on the APK
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(file_util::PathExists(path.Append(("libbase_unittests.so")))); 42 EXPECT_TRUE(base::PathExists(path.Append(("libbase_unittests.so"))));
43 } 43 }
44 44
45 } // namespace android 45 } // namespace android
46 } // namespace base 46 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | base/base_paths.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698