Lines Matching defs:icons

13   ExtensionIconSet icons;
14 EXPECT_EQ("", icons.Get(extension_misc::EXTENSION_ICON_LARGE,
16 EXPECT_EQ("", icons.Get(extension_misc::EXTENSION_ICON_LARGE,
18 EXPECT_EQ("", icons.Get(extension_misc::EXTENSION_ICON_LARGE,
20 EXPECT_TRUE(icons.map().empty());
22 icons.Add(extension_misc::EXTENSION_ICON_LARGE, "large.png");
23 EXPECT_EQ("large.png", icons.Get(extension_misc::EXTENSION_ICON_LARGE,
25 EXPECT_EQ("large.png", icons.Get(extension_misc::EXTENSION_ICON_LARGE,
27 EXPECT_EQ("large.png", icons.Get(extension_misc::EXTENSION_ICON_LARGE,
29 EXPECT_EQ("large.png", icons.Get(extension_misc::EXTENSION_ICON_MEDIUM,
31 EXPECT_EQ("large.png", icons.Get(extension_misc::EXTENSION_ICON_EXTRA_LARGE,
33 EXPECT_EQ("large.png", icons.Get(0, ExtensionIconSet::MATCH_BIGGER));
34 EXPECT_EQ("", icons.Get(extension_misc::EXTENSION_ICON_MEDIUM,
36 EXPECT_EQ("", icons.Get(extension_misc::EXTENSION_ICON_EXTRA_LARGE,
39 icons.Add(extension_misc::EXTENSION_ICON_SMALLISH, "smallish.png");
40 icons.Add(extension_misc::EXTENSION_ICON_SMALL, "small.png");
41 icons.Add(extension_misc::EXTENSION_ICON_EXTRA_LARGE, "extra_large.png");
43 EXPECT_EQ("", icons.Get(extension_misc::EXTENSION_ICON_MEDIUM,
45 EXPECT_EQ("small.png", icons.Get(extension_misc::EXTENSION_ICON_MEDIUM,
47 EXPECT_EQ("large.png", icons.Get(extension_misc::EXTENSION_ICON_MEDIUM,
49 EXPECT_EQ("", icons.Get(extension_misc::EXTENSION_ICON_BITTY,
51 EXPECT_EQ("", icons.Get(extension_misc::EXTENSION_ICON_GIGANTOR,
56 ExtensionIconSet icons;
57 EXPECT_FALSE(icons.ContainsPath("foo"));
59 icons.Add(extension_misc::EXTENSION_ICON_BITTY, "foo");
60 icons.Add(extension_misc::EXTENSION_ICON_GIGANTOR, "bar");
62 EXPECT_TRUE(icons.ContainsPath("foo"));
63 EXPECT_TRUE(icons.ContainsPath("bar"));
64 EXPECT_FALSE(icons.ContainsPath("baz"));
65 EXPECT_FALSE(icons.ContainsPath(std::string()));
67 icons.Clear();
68 EXPECT_FALSE(icons.ContainsPath("foo"));
72 ExtensionIconSet icons;
74 icons.GetIconSizeFromPath("foo"));
76 icons.Add(extension_misc::EXTENSION_ICON_BITTY, "foo");
77 icons.Add(extension_misc::EXTENSION_ICON_GIGANTOR, "bar");
80 icons.GetIconSizeFromPath("foo"));
82 icons.GetIconSizeFromPath("bar"));
84 icons.GetIconSizeFromPath("baz"));
86 icons.GetIconSizeFromPath(std::string()));
88 icons.Clear();
90 icons.GetIconSizeFromPath("foo"));