• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #include "chrome/browser/extensions/extension_apitest.h"
6 
7 namespace extensions {
8 
9 class FileSystemProviderApiTest : public ExtensionApiTest {
10  public:
FileSystemProviderApiTest()11   FileSystemProviderApiTest()
12       // Set the channel to "trunk" since this API is restricted to trunk.
13       : current_channel_(chrome::VersionInfo::CHANNEL_UNKNOWN) {
14   }
15 
16  private:
17   extensions::ScopedCurrentChannel current_channel_;
18 };
19 
IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest,Mount)20 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Mount) {
21   ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/mount",
22                                           kFlagLoadAsComponent))
23       << message_;
24 }
25 
IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest,Unmount)26 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Unmount) {
27   ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/unmount",
28                                           kFlagLoadAsComponent))
29       << message_;
30 }
31 
IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest,GetMetadata)32 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, GetMetadata) {
33   ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/get_metadata",
34                                           kFlagLoadAsComponent))
35       << message_;
36 }
37 
IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest,ReadDirectory)38 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, ReadDirectory) {
39   ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/read_directory",
40                                           kFlagLoadAsComponent))
41       << message_;
42 }
43 
IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest,ReadFile)44 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, ReadFile) {
45   ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/read_file",
46                                           kFlagLoadAsComponent))
47       << message_;
48 }
49 
IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest,BigFile)50 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, BigFile) {
51   ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/big_file",
52                                           kFlagLoadAsComponent))
53       << message_;
54 }
55 
56 }  // namespace extensions
57