Lines Matching refs:res

149   auto& res = *resources;  in TEST()  local
150 ASSERT_EQ(res.GetTargetToOverlayMap().size(), 4U); in TEST()
152 MappingExists(res, R::target::integer::int1, R::overlay::integer::int1, false /* rewrite */)); in TEST()
154 MappingExists(res, R::target::string::str1, R::overlay::string::str1, false /* rewrite */)); in TEST()
156 MappingExists(res, R::target::string::str3, R::overlay::string::str3, false /* rewrite */)); in TEST()
158 MappingExists(res, R::target::string::str4, R::overlay::string::str4, false /* rewrite */)); in TEST()
167 auto& res = *resources; in TEST() local
168 ASSERT_EQ(res.GetTargetToOverlayMap().size(), 3U); in TEST()
170 MappingExists(res, R::target::string::str1, R::overlay::string::str4, true /* rewrite */)); in TEST()
172 MappingExists(res, R::target::string::str3, R::overlay::string::str1, true /* rewrite */)); in TEST()
174 MappingExists(res, R::target::string::str4, R::overlay::string::str3, true /* rewrite */)); in TEST()
183 auto& res = *resources; in TEST() local
184 ASSERT_EQ(res.GetTargetToOverlayMap().size(), 2U); in TEST()
185 ASSERT_EQ(res.GetOverlayToTargetMap().size(), 1U); in TEST()
186 ASSERT_RESULT(MappingExists(res, R::target::string::str1, 0x0104000a, in TEST()
189 MappingExists(res, R::target::string::str3, R::overlay::string::str3, true /* rewrite */)); in TEST()
198 auto& res = *resources; in TEST() local
199 ASSERT_EQ(res.GetTargetToOverlayMap().size(), 2U); in TEST()
200 ASSERT_EQ(res.GetOverlayToTargetMap().size(), 0U); in TEST()
201 ASSERT_RESULT(MappingExists(res, R::target::string::str1, Res_value::TYPE_STRING, in TEST()
203 ASSERT_RESULT(MappingExists(res, R::target::integer::int1, Res_value::TYPE_INT_DEC, 73U)); in TEST()
229 auto& res = *resources; in TEST() local
230 auto string_pool_data = res.GetStringPoolData(); in TEST()
237 ASSERT_EQ(res.GetTargetToOverlayMap().size(), 4U); in TEST()
238 ASSERT_EQ(res.GetOverlayToTargetMap().size(), 0U); in TEST()
239 ASSERT_RESULT(MappingExists(res, R::target::string::str1, Res_value::TYPE_REFERENCE, 0x7f010000)); in TEST()
240 ASSERT_RESULT(MappingExists(res, R::target::string::str2, Res_value::TYPE_STRING, in TEST()
242 ASSERT_RESULT(MappingExists(res, R::target::drawable::dr1, Res_value::TYPE_STRING, uri_index)); in TEST()
243 ASSERT_RESULT(MappingExists(res, R::target::integer::int1, Res_value::TYPE_INT_DEC, 2U)); in TEST()
253 auto& res = *resources; in TEST() local
254 ASSERT_EQ(res.GetTargetToOverlayMap().size(), 3U); in TEST()
255 ASSERT_RESULT(MappingExists(res, R::target::string::policy_public, in TEST()
257 ASSERT_RESULT(MappingExists(res, R::target::string::policy_system, in TEST()
259 ASSERT_RESULT(MappingExists(res, R::target::string::policy_system_vendor, in TEST()
272 auto& res = *resources; in TEST() local
273 ASSERT_EQ(res.GetTargetToOverlayMap().size(), 3U); in TEST()
274 ASSERT_RESULT(MappingExists(res, R::target::string::policy_public, in TEST()
276 ASSERT_RESULT(MappingExists(res, R::target::string::policy_system, in TEST()
278 ASSERT_RESULT(MappingExists(res, R::target::string::policy_system_vendor, in TEST()
292 auto& res = *resources; in TEST() local
293 ASSERT_EQ(res.GetTargetToOverlayMap().size(), 11U); in TEST()
294 ASSERT_RESULT(MappingExists(res, R::target::string::not_overlayable, in TEST()
297 MappingExists(res, R::target::string::other, R::overlay::string::other, true /* rewrite */)); in TEST()
298 ASSERT_RESULT(MappingExists(res, R::target::string::policy_actor, in TEST()
300 ASSERT_RESULT(MappingExists(res, R::target::string::policy_odm, R::overlay::string::policy_odm, in TEST()
302 ASSERT_RESULT(MappingExists(res, R::target::string::policy_oem, R::overlay::string::policy_oem, in TEST()
304 ASSERT_RESULT(MappingExists(res, R::target::string::policy_product, in TEST()
306 ASSERT_RESULT(MappingExists(res, R::target::string::policy_public, in TEST()
308 ASSERT_RESULT(MappingExists(res, R::target::string::policy_config_signature, in TEST()
310 ASSERT_RESULT(MappingExists(res, R::target::string::policy_signature, in TEST()
312 ASSERT_RESULT(MappingExists(res, R::target::string::policy_system, in TEST()
314 ASSERT_RESULT(MappingExists(res, R::target::string::policy_system_vendor, in TEST()
326 auto& res = *resources; in TEST() local
327 ASSERT_EQ(res.GetTargetToOverlayMap().size(), 4U); in TEST()
329 MappingExists(res, R::target::integer::int1, R::overlay::integer::int1, false /* rewrite */)); in TEST()
331 MappingExists(res, R::target::string::str1, R::overlay::string::str1, false /* rewrite */)); in TEST()
333 MappingExists(res, R::target::string::str3, R::overlay::string::str3, false /* rewrite */)); in TEST()
335 MappingExists(res, R::target::string::str4, R::overlay::string::str4, false /* rewrite */)); in TEST()
360 auto& res = *resources; in TEST() local
362 ASSERT_RESULT(MappingExists(res, R::target::string::not_overlayable, in TEST()
364 ASSERT_RESULT(MappingExists(res, R::target::string::other, R::overlay::string::other, in TEST()
366 ASSERT_RESULT(MappingExists(res, R::target::string::policy_actor, in TEST()
368 ASSERT_RESULT(MappingExists(res, R::target::string::policy_odm, R::overlay::string::policy_odm, in TEST()
370 ASSERT_RESULT(MappingExists(res, R::target::string::policy_oem, R::overlay::string::policy_oem, in TEST()
372 ASSERT_RESULT(MappingExists(res, R::target::string::policy_product, in TEST()
374 ASSERT_RESULT(MappingExists(res, R::target::string::policy_public, in TEST()
376 ASSERT_RESULT(MappingExists(res, R::target::string::policy_config_signature, in TEST()
378 ASSERT_RESULT(MappingExists(res, R::target::string::policy_signature, in TEST()
380 ASSERT_RESULT(MappingExists(res, R::target::string::policy_system, in TEST()
382 ASSERT_RESULT(MappingExists(res, R::target::string::policy_system_vendor, in TEST()