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

Side by Side Diff: chrome/common/extensions/manifest_tests/extension_manifests_icons_unittest.cc

Issue 229813002: Move extensions manifest IconsHandler to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments (icons-handler) Created 6 years, 8 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "base/memory/linked_ptr.h" 5 #include "base/memory/linked_ptr.h"
6 #include "chrome/common/extensions/manifest_handlers/icons_handler.h"
7 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" 6 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
8 #include "extensions/common/constants.h" 7 #include "extensions/common/constants.h"
9 #include "extensions/common/extension.h" 8 #include "extensions/common/extension.h"
10 #include "extensions/common/extension_icon_set.h" 9 #include "extensions/common/extension_icon_set.h"
10 #include "extensions/common/manifest_handlers/icons_handler.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 class IconsManifestTest : public ExtensionManifestTest { 15 class IconsManifestTest : public ExtensionManifestTest {
16 }; 16 };
17 17
18 TEST_F(IconsManifestTest, NormalizeIconPaths) { 18 TEST_F(IconsManifestTest, NormalizeIconPaths) {
19 scoped_refptr<extensions::Extension> extension( 19 scoped_refptr<extensions::Extension> extension(
20 LoadAndExpectSuccess("normalize_icon_paths.json")); 20 LoadAndExpectSuccess("normalize_icon_paths.json"));
(...skipping 28 matching lines...) Expand all
49 ExtensionIconSet::MATCH_EXACTLY)); 49 ExtensionIconSet::MATCH_EXACTLY));
50 EXPECT_EQ("128.png", icons.Get(extension_misc::EXTENSION_ICON_LARGE, 50 EXPECT_EQ("128.png", icons.Get(extension_misc::EXTENSION_ICON_LARGE,
51 ExtensionIconSet::MATCH_EXACTLY)); 51 ExtensionIconSet::MATCH_EXACTLY));
52 EXPECT_EQ("256.png", icons.Get(extension_misc::EXTENSION_ICON_EXTRA_LARGE, 52 EXPECT_EQ("256.png", icons.Get(extension_misc::EXTENSION_ICON_EXTRA_LARGE,
53 ExtensionIconSet::MATCH_EXACTLY)); 53 ExtensionIconSet::MATCH_EXACTLY));
54 EXPECT_EQ("512.png", icons.Get(extension_misc::EXTENSION_ICON_GIGANTOR, 54 EXPECT_EQ("512.png", icons.Get(extension_misc::EXTENSION_ICON_GIGANTOR,
55 ExtensionIconSet::MATCH_EXACTLY)); 55 ExtensionIconSet::MATCH_EXACTLY));
56 } 56 }
57 57
58 } // namespace extensions 58 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/manifest_handlers/icons_handler.cc ('k') | chrome/common/localized_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698