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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "chrome/common/extensions/api/extension_action/action_info.h" | 8 #include "chrome/common/extensions/api/extension_action/action_info.h" |
9 #include "chrome/common/extensions/api/page_launcher/page_launcher_handler.h" | 9 #include "chrome/common/extensions/api/page_launcher/page_launcher_handler.h" |
10 #include "chrome/common/extensions/background_info.h" | 10 #include "chrome/common/extensions/background_info.h" |
11 #include "chrome/common/extensions/extension_icon_set.h" | 11 #include "chrome/common/extensions/extension_icon_set.h" |
12 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" | 12 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" |
13 | 13 |
14 namespace extensions { | 14 namespace extensions { |
15 | 15 |
16 class PageLauncherManifestTest : public ExtensionManifestTest { | 16 class PageLauncherManifestTest : public ExtensionManifestTest { |
17 void SetUp() OVERRIDE { | 17 virtual void SetUp() OVERRIDE { |
18 ExtensionManifestTest::SetUp(); | 18 ExtensionManifestTest::SetUp(); |
19 (new PageLauncherHandler)->Register(); | 19 (new PageLauncherHandler)->Register(); |
20 // Required to be recognized as a platform app. | 20 // Required to be recognized as a platform app. |
21 (new BackgroundManifestHandler)->Register(); | 21 (new BackgroundManifestHandler)->Register(); |
22 } | 22 } |
23 | 23 |
24 virtual char const* test_data_dir() OVERRIDE { | 24 virtual char const* test_data_dir() OVERRIDE { |
25 return "page_launcher"; | 25 return "page_launcher"; |
26 } | 26 } |
27 }; | 27 }; |
(...skipping 18 matching lines...) Expand all Loading... |
46 | 46 |
47 TEST_F(PageLauncherManifestTest, ExtensionWithPageLauncher) { | 47 TEST_F(PageLauncherManifestTest, ExtensionWithPageLauncher) { |
48 scoped_refptr<Extension> extension = | 48 scoped_refptr<Extension> extension = |
49 LoadAndExpectSuccess("extension_page_launcher_present.json"); | 49 LoadAndExpectSuccess("extension_page_launcher_present.json"); |
50 const ActionInfo* page_launcher_info = | 50 const ActionInfo* page_launcher_info = |
51 ActionInfo::GetPageLauncherInfo(extension.get()); | 51 ActionInfo::GetPageLauncherInfo(extension.get()); |
52 ASSERT_EQ(NULL, page_launcher_info); | 52 ASSERT_EQ(NULL, page_launcher_info); |
53 } | 53 } |
54 | 54 |
55 } // namespace extensions | 55 } // namespace extensions |
OLD | NEW |