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

Side by Side Diff: chrome/common/extensions/extension_icon_set_unittest.cc

Issue 225043002: Move extension_icon_set.{h,cc} to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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) 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
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
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_icon_set.cc ('k') | chrome/common/extensions/manifest_handler_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698