Lines Matching refs:theme

67   std::unique_ptr<Theme> theme = assetmanager.NewTheme();  in TEST_F()  local
68 EXPECT_EQ(0u, theme->GetChangingConfigurations()); in TEST_F()
69 EXPECT_EQ(&assetmanager, theme->GetAssetManager()); in TEST_F()
70 EXPECT_FALSE(theme->GetAttribute(app::R::attr::attr_one).has_value()); in TEST_F()
77 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() local
78 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleOne).has_value()); in TEST_F()
80 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
86 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
97 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() local
98 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo).has_value()); in TEST_F()
100 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
106 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
115 value = theme->GetAttribute(app::R::attr::attr_three); in TEST_F()
126 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() local
127 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo).has_value()); in TEST_F()
128 ASSERT_FALSE(theme->GetAttribute(0x7f000001)); in TEST_F()
135 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() local
136 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo).has_value()); in TEST_F()
137 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleThree).has_value()); in TEST_F()
140 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
147 value = theme->GetAttribute(app::R::attr::attr_six); in TEST_F()
154 value = theme->GetAttribute(app::R::attr::attr_five); in TEST_F()
165 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() local
166 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo).has_value()); in TEST_F()
167 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleThree, true /* force */).has_value()); in TEST_F()
170 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
177 value = theme->GetAttribute(app::R::attr::attr_six); in TEST_F()
184 value = theme->GetAttribute(app::R::attr::attr_five); in TEST_F()
195 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() local
196 ASSERT_TRUE(theme->ApplyStyle(libclient::R::style::Theme, false /*force*/).has_value()); in TEST_F()
199 auto value = theme->GetAttribute(libclient::R::attr::foo); in TEST_F()
206 value = theme->GetAttribute(libclient::R::attr::bar); in TEST_F()
265 auto theme = am.NewTheme(); in TEST_F() local
269 theme->Rebase(&am, styles, force, arraysize(styles)); in TEST_F()
273 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
280 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
289 theme->Rebase(&am, styles, force, arraysize(styles)); in TEST_F()
293 value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
299 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
308 theme->Rebase(&am_night, styles, force, arraysize(styles)); in TEST_F()
312 value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
320 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()