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

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

Issue 1029803004: Add chrome.fileSystem.GetVolumeList(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed chrome_extensions.js. Created 5 years, 8 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_chromeos.cc
diff --git a/chrome/browser/extensions/api/file_system/file_system_apitest_chromeos.cc b/chrome/browser/extensions/api/file_system/file_system_apitest_chromeos.cc
index f221c56d31847bb2f5965ee0f498af19cdcfe127..40c199128766bdffd01e0ea2c252b2c153b83596 100644
--- a/chrome/browser/extensions/api/file_system/file_system_apitest_chromeos.cc
+++ b/chrome/browser/extensions/api/file_system/file_system_apitest_chromeos.cc
@@ -44,10 +44,11 @@ const char kChildDirectory[] = "child-dir";
class ScopedSkipRequestFileSystemDialog {
public:
explicit ScopedSkipRequestFileSystemDialog(ui::DialogButton button) {
- FileSystemRequestFileSystemFunction::SetAutoDialogButtonForTest(button);
+ file_system_api::ConsentProviderDelegate::SetAutoDialogButtonForTest(
+ button);
}
~ScopedSkipRequestFileSystemDialog() {
- FileSystemRequestFileSystemFunction::SetAutoDialogButtonForTest(
+ file_system_api::ConsentProviderDelegate::SetAutoDialogButtonForTest(
ui::DIALOG_BUTTON_NONE);
}
@@ -413,4 +414,17 @@ IN_PROC_BROWSER_TEST_F(FileSystemApiTestForRequestFileSystem,
<< message_;
}
+IN_PROC_BROWSER_TEST_F(FileSystemApiTestForRequestFileSystem, GetVolumeList) {
+ EnterKioskSession();
+ ASSERT_TRUE(RunPlatformAppTest("api_test/file_system/get_volume_list"))
+ << message_;
+}
+
+IN_PROC_BROWSER_TEST_F(FileSystemApiTestForRequestFileSystem,
+ GetVolumeList_NotKioskSession) {
+ ASSERT_TRUE(RunPlatformAppTest(
+ "api_test/file_system/get_volume_list_not_kiosk_session"))
+ << message_;
+}
+
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/api/file_system/file_system_api.cc ('k') | chrome/common/extensions/api/file_system.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698