OLD | NEW |
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" | |
6 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" | 5 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" |
7 #include "extensions/common/constants.h" | 6 #include "extensions/common/constants.h" |
8 #include "extensions/common/extension.h" | 7 #include "extensions/common/extension.h" |
9 #include "extensions/common/extension_icon_set.h" | 8 #include "extensions/common/extension_icon_set.h" |
10 #include "extensions/common/manifest_handlers/icons_handler.h" | 9 #include "extensions/common/manifest_handlers/icons_handler.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
12 | 11 |
13 namespace extensions { | 12 namespace extensions { |
14 | 13 |
15 class IconsManifestTest : public ChromeManifestTest { | 14 class IconsManifestTest : public ChromeManifestTest { |
(...skipping 29 matching lines...) Expand all Loading... |
45 ExtensionIconSet::MATCH_EXACTLY)); | 44 ExtensionIconSet::MATCH_EXACTLY)); |
46 EXPECT_EQ("512.png", icons.Get(extension_misc::EXTENSION_ICON_GIGANTOR, | 45 EXPECT_EQ("512.png", icons.Get(extension_misc::EXTENSION_ICON_GIGANTOR, |
47 ExtensionIconSet::MATCH_EXACTLY)); | 46 ExtensionIconSet::MATCH_EXACTLY)); |
48 | 47 |
49 // Any old size will be accepted. | 48 // Any old size will be accepted. |
50 EXPECT_EQ("300.png", IconsInfo::GetIcons(extension.get()) | 49 EXPECT_EQ("300.png", IconsInfo::GetIcons(extension.get()) |
51 .Get(300, ExtensionIconSet::MATCH_EXACTLY)); | 50 .Get(300, ExtensionIconSet::MATCH_EXACTLY)); |
52 } | 51 } |
53 | 52 |
54 } // namespace extensions | 53 } // namespace extensions |
OLD | NEW |