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

Unified Diff: chrome/browser/extensions/api/file_system/file_system_api.h

Issue 10663014: Add tests for chrome.fileSystem app API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Created 8 years, 6 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_api.h
diff --git a/chrome/browser/extensions/api/file_system/file_system_api.h b/chrome/browser/extensions/api/file_system/file_system_api.h
index 2acf23a4f1050edf8f01ba4eeee3f0743d278e1f..ff0e486ec9defe0bec65890dc47514257dbc0573 100644
--- a/chrome/browser/extensions/api/file_system/file_system_api.h
+++ b/chrome/browser/extensions/api/file_system/file_system_api.h
@@ -20,6 +20,12 @@ class FileSystemGetDisplayPathFunction : public SyncExtensionFunction {
};
class FileSystemPickerFunction : public AsyncExtensionFunction {
+ public:
+ // Allow picker UI to be skipped in testing.
+ static void SkipPickerAndAlwaysSelectPath(FilePath* path);
+ static void SkipPickerAndAlwaysCancel();
+ static void StopSkippingPicker();
+
protected:
class FilePicker;

Powered by Google App Engine
This is Rietveld 408576698