OLD | NEW |
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/extension_icon_set.h" | 5 #include "extensions/common/extension_icon_set.h" |
6 | 6 |
7 #include "extensions/common/constants.h" | 7 #include "extensions/common/constants.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace { | 10 namespace { |
11 | 11 |
12 TEST(ExtensionIconSet, Basic) { | 12 TEST(ExtensionIconSet, Basic) { |
13 ExtensionIconSet icons; | 13 ExtensionIconSet icons; |
14 EXPECT_EQ("", icons.Get(extension_misc::EXTENSION_ICON_LARGE, | 14 EXPECT_EQ("", icons.Get(extension_misc::EXTENSION_ICON_LARGE, |
15 ExtensionIconSet::MATCH_EXACTLY)); | 15 ExtensionIconSet::MATCH_EXACTLY)); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 icons.GetIconSizeFromPath("baz")); | 84 icons.GetIconSizeFromPath("baz")); |
85 EXPECT_EQ(extension_misc::EXTENSION_ICON_INVALID, | 85 EXPECT_EQ(extension_misc::EXTENSION_ICON_INVALID, |
86 icons.GetIconSizeFromPath(std::string())); | 86 icons.GetIconSizeFromPath(std::string())); |
87 | 87 |
88 icons.Clear(); | 88 icons.Clear(); |
89 EXPECT_EQ(extension_misc::EXTENSION_ICON_INVALID, | 89 EXPECT_EQ(extension_misc::EXTENSION_ICON_INVALID, |
90 icons.GetIconSizeFromPath("foo")); | 90 icons.GetIconSizeFromPath("foo")); |
91 } | 91 } |
92 | 92 |
93 } // namespace | 93 } // namespace |
OLD | NEW |