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

Unified Diff: base/test/test_stub_android.cc

Issue 10332230: Run base_unittests_apk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed nit Created 8 years, 7 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
« no previous file with comments | « no previous file | build/android/buildbot_functions.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_stub_android.cc
diff --git a/base/test/test_stub_android.cc b/base/test/test_stub_android.cc
index 05dc4e8663e3f3a0c902c57e052f9abba6255880..aaf952e232cf5e003baaeedfafe47bfb92594ac9 100644
--- a/base/test/test_stub_android.cc
+++ b/base/test/test_stub_android.cc
@@ -137,10 +137,14 @@ bool PathTestProviderAndroid(int key, FilePath* result) {
*result = FilePath(kAndroidTestTempDirectory);
return true;
}
+#if !defined(ANDROID_APK_TEST_TARGET)
+ // When running as executable we need to use /data/local/tmp as the
+ // cache directory.
case base::DIR_CACHE: {
*result = FilePath(kAndroidTestTempDirectory);
return true;
}
+#endif // !defined(ANDROID_APK_TEST_TARGET)
case base::DIR_ANDROID_APP_DATA: {
*result = FilePath(kAndroidTestTempDirectory);
return true;
« no previous file with comments | « no previous file | build/android/buildbot_functions.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698