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 // Loads a helper testing extension. |
| 17 virtual void SetUpOnMainThread() OVERRIDE { |
| 18 ExtensionApiTest::SetUpOnMainThread(); |
| 19 const extensions::Extension* extension = LoadExtensionWithFlags( |
| 20 test_data_dir_.AppendASCII("file_system_provider/test_util"), |
| 21 kFlagEnableIncognito); |
| 22 ASSERT_TRUE(extension); |
| 23 } |
| 24 |
16 private: | 25 private: |
17 extensions::ScopedCurrentChannel current_channel_; | 26 extensions::ScopedCurrentChannel current_channel_; |
18 }; | 27 }; |
19 | 28 |
20 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Mount) { | 29 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Mount) { |
21 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/mount", | 30 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/mount", |
22 kFlagLoadAsComponent)) | 31 kFlagLoadAsComponent)) |
23 << message_; | 32 << message_; |
24 } | 33 } |
25 | 34 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 << message_; | 68 << message_; |
60 } | 69 } |
61 | 70 |
62 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, MimeType) { | 71 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, MimeType) { |
63 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/mime_type", | 72 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/mime_type", |
64 kFlagLoadAsComponent)) | 73 kFlagLoadAsComponent)) |
65 << message_; | 74 << message_; |
66 } | 75 } |
67 | 76 |
68 } // namespace extensions | 77 } // namespace extensions |
OLD | NEW |