OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/file_util.h" | |
6 #include "base/path_service.h" | |
7 #include "chrome/browser/extensions/extension_apitest.h" | 5 #include "chrome/browser/extensions/extension_apitest.h" |
8 #include "chrome/common/chrome_version_info.h" | 6 #include "chrome/common/chrome_version_info.h" |
9 #include "chrome/common/extensions/features/feature.h" | 7 #include "chrome/common/extensions/features/feature.h" |
10 | 8 |
11 namespace chrome { | 9 namespace chrome { |
12 | 10 |
13 namespace { | 11 namespace { |
14 | 12 |
15 class SyncFileSystemApiTest : public ExtensionApiTest { | 13 class TabCaptureApiTest : public ExtensionApiTest { |
16 public: | 14 public: |
17 // Override the current channel to "trunk" as syncFileSystem is currently | 15 TabCaptureApiTest() : current_channel_(VersionInfo::CHANNEL_UNKNOWN) {} |
18 // available only on trunk channel. | |
19 SyncFileSystemApiTest() | |
20 : current_channel_(VersionInfo::CHANNEL_UNKNOWN) {} | |
21 | 16 |
22 private: | 17 private: |
23 extensions::Feature::ScopedCurrentChannel current_channel_; | 18 extensions::Feature::ScopedCurrentChannel current_channel_; |
24 }; | 19 }; |
25 | 20 |
26 } // namespace | 21 } // namespace |
27 | 22 |
28 IN_PROC_BROWSER_TEST_F(SyncFileSystemApiTest, RequestFileSystem) { | 23 IN_PROC_BROWSER_TEST_F(TabCaptureApiTest, TabCapture) { |
29 ASSERT_TRUE(RunExtensionTest("sync_file_system/request_file_system")) | 24 ASSERT_TRUE(RunExtensionTest("tab_capture/experimental")) << message_; |
30 << message_; | |
31 } | 25 } |
32 | 26 |
33 } // namespace chrome | 27 } // namespace chrome |
OLD | NEW |