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

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

Issue 23744004: Move the rest of extension_manifest_constants to top-level extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 7 years, 3 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
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_builder.h" 6 #include "chrome/common/extensions/extension_builder.h"
7 #include "chrome/common/extensions/extension_constants.h" 7 #include "chrome/common/extensions/extension_constants.h"
8 #include "chrome/common/extensions/extension_icon_set.h" 8 #include "chrome/common/extensions/extension_icon_set.h"
9 #include "chrome/common/extensions/extension_manifest_constants.h"
10 #include "chrome/common/extensions/feature_switch.h" 9 #include "chrome/common/extensions/feature_switch.h"
11 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" 10 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
12 #include "extensions/common/install_warning.h" 11 #include "extensions/common/install_warning.h"
13 #include "extensions/common/manifest_constants.h" 12 #include "extensions/common/manifest_constants.h"
13 #include "extensions/common/manifest_constants.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace errors = extension_manifest_errors; 17 namespace extensions {
18 18
19 namespace extensions { 19 namespace errors = manifest_errors;
20 20
21 namespace { 21 namespace {
22 22
23 std::vector<InstallWarning> StripMissingFlagWarning( 23 std::vector<InstallWarning> StripMissingFlagWarning(
24 const std::vector<InstallWarning>& install_warnings) { 24 const std::vector<InstallWarning>& install_warnings) {
25 std::vector<InstallWarning> result; 25 std::vector<InstallWarning> result;
26 for (size_t i = 0; i < install_warnings.size(); ++i) { 26 for (size_t i = 0; i < install_warnings.size(); ++i) {
27 if (install_warnings[i].message != errors::kScriptBadgeRequiresFlag) 27 if (install_warnings[i].message != errors::kScriptBadgeRequiresFlag)
28 result.push_back(install_warnings[i]); 28 result.push_back(install_warnings[i]);
29 } 29 }
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 EXPECT_EQ(2u, default_icon.map().size()); 141 EXPECT_EQ(2u, default_icon.map().size());
142 EXPECT_EQ("icon128.png", 142 EXPECT_EQ("icon128.png",
143 default_icon.Get(extension_misc::EXTENSION_ICON_BITTY, 143 default_icon.Get(extension_misc::EXTENSION_ICON_BITTY,
144 ExtensionIconSet::MATCH_EXACTLY)); 144 ExtensionIconSet::MATCH_EXACTLY));
145 EXPECT_EQ("icon128.png", 145 EXPECT_EQ("icon128.png",
146 default_icon.Get(2 * extension_misc::EXTENSION_ICON_BITTY, 146 default_icon.Get(2 * extension_misc::EXTENSION_ICON_BITTY,
147 ExtensionIconSet::MATCH_EXACTLY)); 147 ExtensionIconSet::MATCH_EXACTLY));
148 } 148 }
149 149
150 } // namespace extensions 150 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698