Home | History | Annotate | Download | only in tests

Lines Matching refs:theme

65   std::unique_ptr<Theme> theme = assetmanager.NewTheme();
66 EXPECT_EQ(0u, theme->GetChangingConfigurations());
67 EXPECT_EQ(&assetmanager, theme->GetAssetManager());
71 EXPECT_EQ(kInvalidCookie, theme->GetAttribute(app::R::attr::attr_one, &value, &flags));
78 std::unique_ptr<Theme> theme = assetmanager.NewTheme();
79 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleOne));
85 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags);
91 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags);
102 std::unique_ptr<Theme> theme = assetmanager.NewTheme();
103 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo));
109 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags);
115 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags);
124 cookie = theme->GetAttribute(app::R::attr::attr_three, &value, &flags);
135 std::unique_ptr<Theme> theme = assetmanager.NewTheme();
136 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo));
140 ASSERT_EQ(kInvalidCookie, theme->GetAttribute(0x7f000001, &value, &flags));
147 std::unique_ptr<Theme> theme = assetmanager.NewTheme();
148 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo));
149 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleThree));
156 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags);
163 cookie = theme->GetAttribute(app::R::attr::attr_six, &value, &flags);
170 cookie = theme->GetAttribute(app::R::attr::attr_five, &value, &flags);
181 std::unique_ptr<Theme> theme = assetmanager.NewTheme();
182 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo));
183 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleThree, true /* force */));
190 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags);
197 cookie = theme->GetAttribute(app::R::attr::attr_six, &value, &flags);
204 cookie = theme->GetAttribute(app::R::attr::attr_five, &value, &flags);
216 std::unique_ptr<Theme> theme = assetmanager.NewTheme();
217 ASSERT_TRUE(theme->ApplyStyle(libclient::R::style::Theme, false /*force*/));
224 cookie = theme->GetAttribute(libclient::R::attr::foo, &value, &flags);
231 cookie = theme->GetAttribute(libclient::R::attr::bar, &value, &flags);
245 std::unique_ptr<Theme> theme_one = assetmanager.NewTheme();
262 std::unique_ptr<Theme> theme_two = assetmanager.NewTheme();
265 // Copy the theme to theme_one.