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 |