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 // Set the channel to "trunk" since this API is restricted to trunk. | 12 // Set the channel to "trunk" since this API is restricted to trunk. |
13 : current_channel_(chrome::VersionInfo::CHANNEL_UNKNOWN) { | 13 : current_channel_(chrome::VersionInfo::CHANNEL_UNKNOWN) { |
14 } | 14 } |
15 | 15 |
16 private: | 16 private: |
17 extensions::ScopedCurrentChannel current_channel_; | 17 extensions::ScopedCurrentChannel current_channel_; |
18 }; | 18 }; |
19 | 19 |
20 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Mount) { | 20 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Mount) { |
21 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/mount", | 21 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/mount", |
22 kFlagLoadAsComponent)) | 22 kFlagLoadAsComponent)) |
23 << message_; | 23 << message_; |
24 } | 24 } |
25 | 25 |
| 26 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Unmount) { |
| 27 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/unmount", |
| 28 kFlagLoadAsComponent)) |
| 29 << message_; |
| 30 } |
| 31 |
26 } // namespace extensions | 32 } // namespace extensions |
OLD | NEW |