Add Java function to retrieve the native library dir.
Upstreaming the Change with change-id: I94aa26a6e421ec8310f351a410b9083d49eb90f4 made by Ben Murdoch (benm@google.com)
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10663039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145179 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 672898bcd1f04dd3678dc1aa7aaa38c17b404fc3
diff --git a/base/android/path_utils_unittest.cc b/base/android/path_utils_unittest.cc
index e86cd49..faa00b5 100644
--- a/base/android/path_utils_unittest.cc
+++ b/base/android/path_utils_unittest.cc
@@ -27,5 +27,13 @@
GetCacheDirectory().c_str());
}
+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
+ EXPECT_STREQ("/data/data/org.chromium.native_test/lib",
+ GetNativeLibraryDirectory().c_str());
+}
+
} // namespace android
} // namespace base