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 "chrome/common/extensions/api/extension_action/action_info.h" | 5 #include "chrome/common/extensions/api/extension_action/action_info.h" |
6 #include "chrome/common/extensions/extension.h" | 6 #include "chrome/common/extensions/extension.h" |
7 #include "chrome/common/extensions/extension_manifest_constants.h" | |
8 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" | 7 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" |
9 #include "extensions/common/error_utils.h" | 8 #include "extensions/common/error_utils.h" |
| 9 #include "extensions/common/manifest_constants.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 namespace errors = extension_manifest_errors; | 12 namespace extensions { |
13 namespace keys = extensions::manifest_keys; | |
14 | 13 |
15 namespace extensions { | 14 namespace errors = manifest_errors; |
| 15 namespace keys = manifest_keys; |
16 | 16 |
17 class PageActionManifestTest : public ExtensionManifestTest { | 17 class PageActionManifestTest : public ExtensionManifestTest { |
18 protected: | 18 protected: |
19 virtual const char* test_data_dir() OVERRIDE { | 19 virtual const char* test_data_dir() OVERRIDE { |
20 return "page_action"; | 20 return "page_action"; |
21 } | 21 } |
22 | 22 |
23 scoped_ptr<ActionInfo> LoadAction(const std::string& manifest_filename); | 23 scoped_ptr<ActionInfo> LoadAction(const std::string& manifest_filename); |
24 }; | 24 }; |
25 | 25 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 action = LoadAction("page_action_empty_popup.json"); | 157 action = LoadAction("page_action_empty_popup.json"); |
158 | 158 |
159 ASSERT_TRUE(action); | 159 ASSERT_TRUE(action); |
160 EXPECT_TRUE(action->default_popup_url.is_empty()); | 160 EXPECT_TRUE(action->default_popup_url.is_empty()); |
161 ASSERT_STREQ( | 161 ASSERT_STREQ( |
162 "", | 162 "", |
163 action->default_popup_url.spec().c_str()); | 163 action->default_popup_url.spec().c_str()); |
164 } | 164 } |
165 | 165 |
166 } // namespace extensions | 166 } // namespace extensions |
OLD | NEW |