Lines Matching defs:theme
60 std::unique_ptr<Theme> theme = assetmanager.NewTheme();
61 EXPECT_EQ(0u, theme->GetChangingConfigurations());
62 EXPECT_EQ(&assetmanager, theme->GetAssetManager());
66 EXPECT_EQ(kInvalidCookie, theme->GetAttribute(app::R::attr::attr_one, &value, &flags));
73 std::unique_ptr<Theme> theme = assetmanager.NewTheme();
74 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleOne));
80 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags);
86 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags);
97 std::unique_ptr<Theme> theme = assetmanager.NewTheme();
98 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo));
104 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags);
110 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags);
119 cookie = theme->GetAttribute(app::R::attr::attr_three, &value, &flags);
130 std::unique_ptr<Theme> theme = assetmanager.NewTheme();
131 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo));
132 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleThree));
139 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags);
146 cookie = theme->GetAttribute(app::R::attr::attr_six, &value, &flags);
153 cookie = theme->GetAttribute(app::R::attr::attr_five, &value, &flags);
164 std::unique_ptr<Theme> theme = assetmanager.NewTheme();
165 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo));
166 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleThree, true /* force */));
173 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags);
180 cookie = theme->GetAttribute(app::R::attr::attr_six, &value, &flags);
187 cookie = theme->GetAttribute(app::R::attr::attr_five, &value, &flags);
199 std::unique_ptr<Theme> theme = assetmanager.NewTheme();
200 ASSERT_TRUE(theme->ApplyStyle(libclient::R::style::Theme, false /*force*/));
207 cookie = theme->GetAttribute(libclient::R::attr::foo, &value, &flags);
214 cookie = theme->GetAttribute(libclient::R::attr::bar, &value, &flags);
228 std::unique_ptr<Theme> theme_one = assetmanager.NewTheme();
245 std::unique_ptr<Theme> theme_two = assetmanager.NewTheme();
248 // Copy the theme to theme_one.