| 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 : current_channel_(chrome::VersionInfo::CHANNEL_DEV) {} | 12 : current_channel_(chrome::VersionInfo::CHANNEL_DEV) {} |
| 13 | 13 |
| 14 // Loads a helper testing extension. | 14 // Loads a helper testing extension. |
| 15 virtual void SetUpOnMainThread() OVERRIDE { | 15 virtual void SetUpOnMainThread() override { |
| 16 ExtensionApiTest::SetUpOnMainThread(); | 16 ExtensionApiTest::SetUpOnMainThread(); |
| 17 const extensions::Extension* extension = LoadExtensionWithFlags( | 17 const extensions::Extension* extension = LoadExtensionWithFlags( |
| 18 test_data_dir_.AppendASCII("file_system_provider/test_util"), | 18 test_data_dir_.AppendASCII("file_system_provider/test_util"), |
| 19 kFlagEnableIncognito); | 19 kFlagEnableIncognito); |
| 20 ASSERT_TRUE(extension); | 20 ASSERT_TRUE(extension); |
| 21 } | 21 } |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 extensions::ScopedCurrentChannel current_channel_; | 24 extensions::ScopedCurrentChannel current_channel_; |
| 25 }; | 25 }; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 << message_; | 125 << message_; |
| 126 } | 126 } |
| 127 | 127 |
| 128 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Thumbnail) { | 128 IN_PROC_BROWSER_TEST_F(FileSystemProviderApiTest, Thumbnail) { |
| 129 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/thumbnail", | 129 ASSERT_TRUE(RunPlatformAppTestWithFlags("file_system_provider/thumbnail", |
| 130 kFlagLoadAsComponent)) | 130 kFlagLoadAsComponent)) |
| 131 << message_; | 131 << message_; |
| 132 } | 132 } |
| 133 | 133 |
| 134 } // namespace extensions | 134 } // namespace extensions |
| OLD | NEW |