Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: chrome/common/extensions/api/extension_action/page_action_manifest_unittest.cc

Issue 22794012: Rename extension_manifest_keys namespace to extensions::manifest_keys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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" 7 #include "chrome/common/extensions/extension_manifest_constants.h"
8 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" 8 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
9 #include "extensions/common/error_utils.h" 9 #include "extensions/common/error_utils.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 errors = extension_manifest_errors;
13 namespace keys = extension_manifest_keys; 13 namespace keys = extensions::manifest_keys;
14 14
15 namespace extensions { 15 namespace extensions {
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);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698