| 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" | 5 #include "base/memory/linked_ptr.h" |
| 6 #include "chrome/common/extensions/extension.h" | |
| 7 #include "chrome/common/extensions/extension_constants.h" | 6 #include "chrome/common/extensions/extension_constants.h" |
| 8 #include "chrome/common/extensions/extension_icon_set.h" | 7 #include "chrome/common/extensions/extension_icon_set.h" |
| 9 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" | 8 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" |
| 10 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" | 9 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" |
| 10 #include "extensions/common/extension.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 Loading... |
| 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 |
| OLD | NEW |