Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_apitest.cc

Issue 706153002: [fsp] Promote file system provider to stable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compile bugs. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/common/extensions/api/_permission_features.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/api/_permission_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698