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: |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 kFlagLoadAsComponent)) | 107 kFlagLoadAsComponent)) |
108 << message_; | 108 << message_; |
109 } | 109 } |
110 | 110 |
111 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Truncate) { | 111 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Truncate) { |
112 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/truncate", | 112 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/truncate", |
113 kFlagLoadAsComponent)) | 113 kFlagLoadAsComponent)) |
114 << message_; | 114 << message_; |
115 } | 115 } |
116 | 116 |
117 // http://crbug.com/426549 | 117 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, WriteFile) { |
118 #if defined(OS_CHROMEOS) | |
119 #define MAYBE_WriteFile DISABLED_WriteFile | |
120 #else | |
121 #define MAYBE_WriteFile WriteFile | |
122 #endif | |
123 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, MAYBE_WriteFile) { | |
124 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/write_file", | 118 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/write_file", |
125 kFlagLoadAsComponent)) | 119 kFlagLoadAsComponent)) |
126 << message_; | 120 << message_; |
127 } | 121 } |
128 | 122 |
129 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Extension) { | 123 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Extension) { |
130 ASSERT_TRUE(RunComponentExtensionTest("file_system_provider/extension")) | 124 ASSERT_TRUE(RunComponentExtensionTest("file_system_provider/extension")) |
131 << message_; | 125 << message_; |
132 } | 126 } |
133 | 127 |
134 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Thumbnail) { | 128 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Thumbnail) { |
135 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/thumbnail", | 129 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/thumbnail", |
136 kFlagLoadAsComponent)) | 130 kFlagLoadAsComponent)) |
137 << message_; | 131 << message_; |
138 } | 132 } |
139 | 133 |
140 // TODO(mtomasz): Add a test for Notify() once it's wired to | 134 // TODO(mtomasz): Add a test for Notify() once it's wired to |
141 // chrome.fileManagerPrivate. | 135 // chrome.fileManagerPrivate. |
142 | 136 |
143 } // namespace extensions | 137 } // namespace extensions |
OLD | NEW |