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

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

Issue 13460012: Move IconsHandler from c/c/e/api/ to c/c/e (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for CQ Created 7 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
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 "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
6
7 #include "base/memory/linked_ptr.h" 5 #include "base/memory/linked_ptr.h"
8 #include "chrome/common/extensions/api/icons/icons_handler.h"
9 #include "chrome/common/extensions/extension.h" 6 #include "chrome/common/extensions/extension.h"
10 #include "chrome/common/extensions/extension_constants.h" 7 #include "chrome/common/extensions/extension_constants.h"
11 #include "chrome/common/extensions/extension_icon_set.h" 8 #include "chrome/common/extensions/extension_icon_set.h"
9 #include "chrome/common/extensions/manifest_handlers/icons_handler.h"
10 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 12
14 namespace extensions { 13 namespace extensions {
15 14
16 class IconsManifestTest : public ExtensionManifestTest { 15 class IconsManifestTest : public ExtensionManifestTest {
17 protected: 16 protected:
18 virtual void SetUp() OVERRIDE { 17 virtual void SetUp() OVERRIDE {
19 ExtensionManifestTest::SetUp(); 18 ExtensionManifestTest::SetUp();
20 (new IconsHandler)->Register(); 19 (new IconsHandler)->Register();
21 } 20 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 ExtensionIconSet::MATCH_EXACTLY)); 53 ExtensionIconSet::MATCH_EXACTLY));
55 EXPECT_EQ("128.png", icons.Get(extension_misc::EXTENSION_ICON_LARGE, 54 EXPECT_EQ("128.png", icons.Get(extension_misc::EXTENSION_ICON_LARGE,
56 ExtensionIconSet::MATCH_EXACTLY)); 55 ExtensionIconSet::MATCH_EXACTLY));
57 EXPECT_EQ("256.png", icons.Get(extension_misc::EXTENSION_ICON_EXTRA_LARGE, 56 EXPECT_EQ("256.png", icons.Get(extension_misc::EXTENSION_ICON_EXTRA_LARGE,
58 ExtensionIconSet::MATCH_EXACTLY)); 57 ExtensionIconSet::MATCH_EXACTLY));
59 EXPECT_EQ("512.png", icons.Get(extension_misc::EXTENSION_ICON_GIGANTOR, 58 EXPECT_EQ("512.png", icons.Get(extension_misc::EXTENSION_ICON_GIGANTOR,
60 ExtensionIconSet::MATCH_EXACTLY)); 59 ExtensionIconSet::MATCH_EXACTLY));
61 } 60 }
62 61
63 } // namespace extensions 62 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698