| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/extensions/extension_apitest.h" | 5 #include "chrome/browser/extensions/extension_apitest.h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 | 8 |
| 9 class FileSystemProviderApiTest : public ExtensionApiTest { | 9 class FileSystemProviderApiTest : public ExtensionApiTest { |
| 10 public: | 10 public: |
| 11 FileSystemProviderApiTest() | 11 FileSystemProviderApiTest() {} |
| 12 : current_channel_(chrome::VersionInfo::CHANNEL_DEV) {} | |
| 13 | 12 |
| 14 // Loads a helper testing extension. | 13 // Loads a helper testing extension. |
| 15 virtual void SetUpOnMainThread() override { | 14 virtual void SetUpOnMainThread() override { |
| 16 ExtensionApiTest::SetUpOnMainThread(); | 15 ExtensionApiTest::SetUpOnMainThread(); |
| 17 const extensions::Extension* extension = LoadExtensionWithFlags( | 16 const extensions::Extension* extension = LoadExtensionWithFlags( |
| 18 test_data_dir_.AppendASCII("file_system_provider/test_util"), | 17 test_data_dir_.AppendASCII("file_system_provider/test_util"), |
| 19 kFlagEnableIncognito); | 18 kFlagEnableIncognito); |
| 20 ASSERT_TRUE(extension); | 19 ASSERT_TRUE(extension); |
| 21 } | 20 } |
| 22 | |
| 23 private: | |
| 24 extensions::ScopedCurrentChannel current_channel_; | |
| 25 }; | 21 }; |
| 26 | 22 |
| 27 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Mount) { | 23 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Mount) { |
| 28 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/mount", | 24 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/mount", |
| 29 kFlagLoadAsComponent)) | 25 kFlagLoadAsComponent)) |
| 30 << message_; | 26 << message_; |
| 31 } | 27 } |
| 32 | 28 |
| 33 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Unmount) { | 29 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Unmount) { |
| 34 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/unmount", | 30 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/unmount", |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Notify) { | 142 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Notify) { |
| 147 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/notify", | 143 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/notify", |
| 148 kFlagLoadAsComponent)) | 144 kFlagLoadAsComponent)) |
| 149 << message_; | 145 << message_; |
| 150 } | 146 } |
| 151 | 147 |
| 152 // TODO(mtomasz): Add a test for Notify() once it's wired to | 148 // TODO(mtomasz): Add a test for Notify() once it's wired to |
| 153 // chrome.fileManagerPrivate. | 149 // chrome.fileManagerPrivate. |
| 154 | 150 |
| 155 } // namespace extensions | 151 } // namespace extensions |
| OLD | NEW |