| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "chrome/browser/extensions/api/file_system/file_system_api.h" | 7 #include "chrome/browser/extensions/api/file_system/file_system_api.h" |
| 8 #include "chrome/browser/extensions/platform_app_browsertest_util.h" | 8 #include "chrome/browser/extensions/platform_app_browsertest_util.h" |
| 9 | 9 |
| 10 using extensions::FileSystemChooseFileFunction; | 10 using extensions::FileSystemChooseFileFunction; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 IN_PROC_BROWSER_TEST_F(FileSystemApiTest, | 182 IN_PROC_BROWSER_TEST_F(FileSystemApiTest, |
| 183 FileSystemApiGetWritableWithWriteTest) { | 183 FileSystemApiGetWritableWithWriteTest) { |
| 184 FilePath test_file = TempFilePath("writable.txt", true); | 184 FilePath test_file = TempFilePath("writable.txt", true); |
| 185 ASSERT_FALSE(test_file.empty()); | 185 ASSERT_FALSE(test_file.empty()); |
| 186 FileSystemChooseFileFunction::SkipPickerAndAlwaysSelectPathForTest( | 186 FileSystemChooseFileFunction::SkipPickerAndAlwaysSelectPathForTest( |
| 187 &test_file); | 187 &test_file); |
| 188 ASSERT_TRUE(RunPlatformAppTest( | 188 ASSERT_TRUE(RunPlatformAppTest( |
| 189 "api_test/file_system/get_writable_file_entry_with_write")) << message_; | 189 "api_test/file_system/get_writable_file_entry_with_write")) << message_; |
| 190 } | 190 } |
| 191 |
| 192 IN_PROC_BROWSER_TEST_F(FileSystemApiTest, FileSystemApiIsWritableTest) { |
| 193 FilePath test_file = TempFilePath("writable.txt", true); |
| 194 ASSERT_FALSE(test_file.empty()); |
| 195 FileSystemChooseFileFunction::SkipPickerAndAlwaysSelectPathForTest( |
| 196 &test_file); |
| 197 ASSERT_TRUE(RunPlatformAppTest( |
| 198 "api_test/file_system/is_writable_file_entry")) << message_; |
| 199 } |
| OLD | NEW |