Chromium Code Reviews| 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..592beacaf0638059f1f684dfcf1bad4255537a53 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 |
|
Paweł Hajdan Jr.
2012/05/22 11:44:22
nit: // !defined(...)
nilesh
2012/05/22 16:43:36
Done.
|
| case base::DIR_ANDROID_APP_DATA: { |
| *result = FilePath(kAndroidTestTempDirectory); |
| return true; |