| 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 5142d99d3b4d108111b9f1e355c7a195a87c4154..5ef2a7f28844d31c2865e37f953bf5af0e8f8fe4 100644
|
| --- a/chrome/browser/extensions/api/file_system/file_system_apitest.cc
|
| +++ b/chrome/browser/extensions/api/file_system/file_system_apitest.cc
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #include "base/file_util.h"
|
| +#include "base/path_service.h"
|
| #include "chrome/browser/extensions/api/file_system/file_system_api.h"
|
| #include "chrome/browser/extensions/platform_app_browsertest_util.h"
|
|
|
| @@ -47,6 +48,19 @@ 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,
|
| + test_root_folder_, false));
|
| +
|
| + FilePath test_file = test_root_folder_.AppendASCII("gold.txt");
|
| + FileSystemChooseFileFunction::SkipPickerAndAlwaysSelectPathForTest(
|
| + &test_file);
|
| + ASSERT_TRUE(RunPlatformAppTest(
|
| + "api_test/file_system/get_display_path_prettify")) << message_;
|
| +}
|
| +#endif
|
| +
|
| IN_PROC_BROWSER_TEST_F(FileSystemApiTest, FileSystemApiOpenExistingFileTest) {
|
| FilePath test_file = TempFilePath("open_existing.txt", true);
|
| ASSERT_FALSE(test_file.empty());
|
| @@ -174,4 +188,3 @@ IN_PROC_BROWSER_TEST_F(FileSystemApiTest,
|
| ASSERT_TRUE(RunPlatformAppTest(
|
| "api_test/file_system/get_writable_file_entry_with_write")) << message_;
|
| }
|
| -
|
|
|