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

Unified Diff: chrome/browser/extensions/api/file_system/file_system_apitest.cc

Issue 10700136: Prettify output from chrome.fileSystem.getDisplayPath for POSIX profile directories (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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: chrome/browser/extensions/api/file_system/file_system_apitest.cc
diff --git a/chrome/browser/extensions/api/file_system/file_system_apitest.cc b/chrome/browser/extensions/api/file_system/file_system_apitest.cc
index 5ef2a7f28844d31c2865e37f953bf5af0e8f8fe4..a4c3350f0eefe1e916ff257602332288e1b4fdd2 100644
--- a/chrome/browser/extensions/api/file_system/file_system_apitest.cc
+++ b/chrome/browser/extensions/api/file_system/file_system_apitest.cc
@@ -48,9 +48,13 @@ IN_PROC_BROWSER_TEST_F(FileSystemApiTest, FileSystemApiGetDisplayPath) {
<< message_;
}
-#if defined(OS_WIN)
IN_PROC_BROWSER_TEST_F(FileSystemApiTest, FileSystemApiGetDisplayPathPrettify) {
- ASSERT_TRUE(PathService::OverrideAndCreateIfNeeded(base::DIR_PROFILE,
+#if defined(OS_WIN)
+ int override = base::DIR_PROFILE;
+#elif defined(OS_POSIX)
+ int override = base::DIR_HOME;
+#endif
benwells 2012/07/10 23:57:49 Again, I don't like relying on OS_POSIX == !OS_WIN
thorogood 2012/07/11 00:30:24 I've guarded this test by a define again.
+ ASSERT_TRUE(PathService::OverrideAndCreateIfNeeded(override,
test_root_folder_, false));
FilePath test_file = test_root_folder_.AppendASCII("gold.txt");
@@ -59,7 +63,6 @@ IN_PROC_BROWSER_TEST_F(FileSystemApiTest, FileSystemApiGetDisplayPathPrettify) {
ASSERT_TRUE(RunPlatformAppTest(
"api_test/file_system/get_display_path_prettify")) << message_;
Mihai Parparita -not on Chrome 2012/07/11 00:21:10 Sorry for not catching this in the other review, b
thorogood 2012/07/11 04:07:45 Thanks for the insight! I've had a play with it, b
Mihai Parparita -not on Chrome 2012/07/11 05:32:28 Fair enough.
}
-#endif
IN_PROC_BROWSER_TEST_F(FileSystemApiTest, FileSystemApiOpenExistingFileTest) {
FilePath test_file = TempFilePath("open_existing.txt", true);

Powered by Google App Engine
This is Rietveld 408576698