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

Unified Diff: base/android/path_utils_unittest.cc

Issue 11031008: Upstreaming chrome/common/chrome_* diff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: base/android/path_utils_unittest.cc
diff --git a/base/android/path_utils_unittest.cc b/base/android/path_utils_unittest.cc
index faa00b5e495d37aa3eb129414bbcdce01e58e4b6..6234d5fb30db3dfd2f69d2f460563e107928a24f 100644
--- a/base/android/path_utils_unittest.cc
+++ b/base/android/path_utils_unittest.cc
@@ -6,6 +6,8 @@
#include "testing/gtest/include/gtest/gtest.h"
+#include "base/file_path.h"
nilesh 2012/10/01 20:38:35 Sort order.
aurimas (slooooooooow) 2012/10/01 21:06:41 Done.
+
namespace base {
namespace android {
@@ -15,24 +17,30 @@ TEST_F(PathUtilsTest, TestGetDataDirectory) {
// 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
+ FilePath path;
+ GetDataDirectory(&path);
EXPECT_STREQ("/data/data/org.chromium.native_test/app_chrome",
- GetDataDirectory().c_str());
+ path.value().c_str());
}
TEST_F(PathUtilsTest, TestGetCacheDirectory) {
// 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
+ FilePath path;
+ GetCacheDirectory(&path);
EXPECT_STREQ("/data/data/org.chromium.native_test/cache",
- GetCacheDirectory().c_str());
+ path.value().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
+ FilePath path;
+ GetNativeLibraryDirectory(&path);
EXPECT_STREQ("/data/data/org.chromium.native_test/lib",
- GetNativeLibraryDirectory().c_str());
+ path.value().c_str());
}
} // namespace android

Powered by Google App Engine
This is Rietveld 408576698