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

Side by Side Diff: chrome/browser/extensions/api/file_system/file_system_apitest.cc

Issue 10692104: Add isWritableFileEntry to the fileSystem API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: added presubmit fix 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/file_system/file_system_api.cc ('k') | chrome/common/extensions/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698