Lines Matching refs:policy
39 CarPowerPolicyPtr policy = std::make_shared<CarPowerPolicy>(); in createPolicy() local
40 policy->policyId = policyId; in createPolicy()
41 policy->enabledComponents = enabledComponents; in createPolicy()
42 policy->disabledComponents = disabledComponents; in createPolicy()
43 return policy; in createPolicy()
62 CarPowerPolicyPtr policy = handler.getAccumulatedPolicy(); in TEST_F() local
68 EXPECT_THAT(allComponents, UnorderedElementsAreArray(policy->disabledComponents)); in TEST_F()
72 CarPowerPolicyPtr policy = in TEST_F() local
75 handler.applyPowerPolicy(policy); in TEST_F()
107 CarPowerPolicyPtr policy = createPolicy(policyId, enabledComponents, disabledComponents); in TEST_F() local
108 handler.applyPowerPolicy(policy); in TEST_F()