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

Unified Diff: base/android/path_utils_unittest.cc

Issue 11412128: Android: Fix PathUtilsTest.TestGetNativeLibraryDirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Check for the base unit tests so Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/path_utils_unittest.cc
diff --git a/base/android/path_utils_unittest.cc b/base/android/path_utils_unittest.cc
index 92728b5f6e0e6e6236644eb43363105777859f66..636e3fab16a9df300dc916b75fdbdc64aecc5fa9 100644
--- a/base/android/path_utils_unittest.cc
+++ b/base/android/path_utils_unittest.cc
@@ -4,6 +4,7 @@
#include "base/android/path_utils.h"
#include "base/file_path.h"
+#include "base/file_util.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -34,12 +35,11 @@ TEST_F(PathUtilsTest, TestGetCacheDirectory) {
TEST_F(PathUtilsTest, TestGetNativeLibraryDirectory) {
// The string comes from the Java side and depends on the APK
- // we are running in. Assumes that we are packaged in
- // org.chromium.native_test
+ // we are running in. Assumes that the directory contains
+ // the base tests shared object.
FilePath path;
GetNativeLibraryDirectory(&path);
- EXPECT_STREQ("/data/data/org.chromium.native_test/lib",
- path.value().c_str());
+ EXPECT_TRUE(file_util::PathExists(path.Append(("libbase_unittests.so"))));
}
} // namespace android
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698