Lines Matching refs:device_policy
745 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in UpdateTestStart() local
746 EXPECT_CALL(*device_policy, LoadPolicy()) in UpdateTestStart()
750 new policy::PolicyProvider(std::move(device_policy))); in UpdateTestStart()
778 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in RollbackTestStart() local
779 EXPECT_CALL(*device_policy, LoadPolicy()).WillRepeatedly(Return(true)); in RollbackTestStart()
780 FakeSystemState::Get()->set_device_policy(device_policy.get()); in RollbackTestStart()
783 EXPECT_CALL(*device_policy, GetOwner(_)) in RollbackTestStart()
787 EXPECT_CALL(*device_policy, GetOwner(_)) in RollbackTestStart()
793 new policy::PolicyProvider(std::move(device_policy))); in RollbackTestStart()
1071 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in ReadScatterFactorFromPolicyTestStart() local
1072 EXPECT_CALL(*device_policy, LoadPolicy()).WillRepeatedly(Return(true)); in ReadScatterFactorFromPolicyTestStart()
1073 FakeSystemState::Get()->set_device_policy(device_policy.get()); in ReadScatterFactorFromPolicyTestStart()
1075 EXPECT_CALL(*device_policy, GetScatterFactorInSeconds(_)) in ReadScatterFactorFromPolicyTestStart()
1080 new policy::PolicyProvider(std::move(device_policy))); in ReadScatterFactorFromPolicyTestStart()
1107 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in DecrementUpdateCheckCountTestStart() local
1108 EXPECT_CALL(*device_policy, LoadPolicy()).WillRepeatedly(Return(true)); in DecrementUpdateCheckCountTestStart()
1109 FakeSystemState::Get()->set_device_policy(device_policy.get()); in DecrementUpdateCheckCountTestStart()
1111 EXPECT_CALL(*device_policy, GetScatterFactorInSeconds(_)) in DecrementUpdateCheckCountTestStart()
1116 new policy::PolicyProvider(std::move(device_policy))); in DecrementUpdateCheckCountTestStart()
1166 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in NoScatteringDoneDuringManualUpdateTestStart() local
1167 EXPECT_CALL(*device_policy, LoadPolicy()).WillRepeatedly(Return(true)); in NoScatteringDoneDuringManualUpdateTestStart()
1168 FakeSystemState::Get()->set_device_policy(device_policy.get()); in NoScatteringDoneDuringManualUpdateTestStart()
1170 EXPECT_CALL(*device_policy, GetScatterFactorInSeconds(_)) in NoScatteringDoneDuringManualUpdateTestStart()
1175 new policy::PolicyProvider(std::move(device_policy))); in NoScatteringDoneDuringManualUpdateTestStart()
1201 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in SetUpStagingTest() local
1202 EXPECT_CALL(*device_policy, LoadPolicy()).WillRepeatedly(Return(true)); in SetUpStagingTest()
1203 FakeSystemState::Get()->set_device_policy(device_policy.get()); in SetUpStagingTest()
1204 EXPECT_CALL(*device_policy, GetDeviceUpdateStagingSchedule(_)) in SetUpStagingTest()
1208 new policy::PolicyProvider(std::move(device_policy))); in SetUpStagingTest()
1790 const policy::MockDevicePolicy device_policy; in ResetRollbackHappenedStart() local
1792 .WillRepeatedly(ReturnRef(device_policy)); in ResetRollbackHappenedStart()
1907 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in TEST_F() local
1908 FakeSystemState::Get()->set_device_policy(device_policy.get()); in TEST_F()
1910 EXPECT_CALL(*device_policy, IsEnterpriseEnrolled()).WillOnce(Return(false)); in TEST_F()
1922 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in TEST_F() local
1923 FakeSystemState::Get()->set_device_policy(device_policy.get()); in TEST_F()
1925 EXPECT_CALL(*device_policy, IsEnterpriseEnrolled()).WillOnce(Return(true)); in TEST_F()
1927 EXPECT_CALL(*device_policy, GetDisallowedTimeIntervals(_)) in TEST_F()
1947 auto device_policy = std::make_unique<policy::MockDevicePolicy>(); in TEST_F() local
1948 FakeSystemState::Get()->set_device_policy(device_policy.get()); in TEST_F()
1950 EXPECT_CALL(*device_policy, IsEnterpriseEnrolled()).WillOnce(Return(true)); in TEST_F()
1952 EXPECT_CALL(*device_policy, GetDisallowedTimeIntervals(_)) in TEST_F()