| 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 : current_channel_(chrome::VersionInfo::CHANNEL_DEV) {} |
| 13 : current_channel_(chrome::VersionInfo::CHANNEL_UNKNOWN) { | |
| 14 } | |
| 15 | 13 |
| 16 // Loads a helper testing extension. | 14 // Loads a helper testing extension. |
| 17 virtual void SetUpOnMainThread() OVERRIDE { | 15 virtual void SetUpOnMainThread() OVERRIDE { |
| 18 ExtensionApiTest::SetUpOnMainThread(); | 16 ExtensionApiTest::SetUpOnMainThread(); |
| 19 const extensions::Extension* extension = LoadExtensionWithFlags( | 17 const extensions::Extension* extension = LoadExtensionWithFlags( |
| 20 test_data_dir_.AppendASCII("file_system_provider/test_util"), | 18 test_data_dir_.AppendASCII("file_system_provider/test_util"), |
| 21 kFlagEnableIncognito); | 19 kFlagEnableIncognito); |
| 22 ASSERT_TRUE(extension); | 20 ASSERT_TRUE(extension); |
| 23 } | 21 } |
| 24 | 22 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 << message_; | 114 << message_; |
| 117 } | 115 } |
| 118 | 116 |
| 119 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, WriteFile) { | 117 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, WriteFile) { |
| 120 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/write_file", | 118 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/write_file", |
| 121 kFlagLoadAsComponent)) | 119 kFlagLoadAsComponent)) |
| 122 << message_; | 120 << message_; |
| 123 } | 121 } |
| 124 | 122 |
| 125 } // namespace extensions | 123 } // namespace extensions |
| OLD | NEW |