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

Unified Diff: base/path_service_unittest.cc

Issue 7701014: Upstream misc changes for android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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/path_service_unittest.cc
diff --git a/base/path_service_unittest.cc b/base/path_service_unittest.cc
index 26998de5c097ceaccf95e83f0cac54056c0a0255..344dbe6c9944a22144e131f48047a2365e48fc4e 100644
--- a/base/path_service_unittest.cc
+++ b/base/path_service_unittest.cc
@@ -50,9 +50,16 @@ typedef PlatformTest PathServiceTest;
// later changes to Get broke the semantics of the function and yielded the
// correct value while returning false.)
TEST_F(PathServiceTest, Get) {
+#if defined(OS_ANDROID)
+ EXPECT_PRED1(ReturnsValidPath, static_cast<int>(base::FILE_EXE));
+ EXPECT_PRED1(ReturnsValidPath, static_cast<int>(base::DIR_MODULE));
+ EXPECT_PRED1(ReturnsValidPath, static_cast<int>(base::DIR_SOURCE_ROOT));
+ EXPECT_PRED1(ReturnsValidPath, static_cast<int>(base::DIR_CACHE));
+#else
for (int key = base::DIR_CURRENT; key < base::PATH_END; ++key) {
brettw 2011/08/24 20:46:58 Why doesn't this code work on Android? It seems li
michaelbai 2011/08/24 23:02:18 The FILE_MODULE is not implemented in Android.
brettw 2011/08/24 23:17:13 It seems like the correct solution then is to impl
michaelbai 2011/08/25 17:26:16 I could implement the FILE_MODULE, but the issue i
brettw 2011/08/25 17:49:10 I guess we can leave FILE_MODULE unimplemented. In
michaelbai 2011/08/25 18:09:52 Done.
EXPECT_PRED1(ReturnsValidPath, key);
}
+#endif
#if defined(OS_WIN)
for (int key = base::PATH_WIN_START + 1; key < base::PATH_WIN_END; ++key) {
if (key == base::DIR_LOCAL_APP_DATA_LOW &&
« no previous file with comments | « base/message_pump_android.cc ('k') | base/process_util.cc » ('j') | base/process_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698