Lines Matching refs:Policy
98 // class extends the DefaultPolicy class to allow extensions of the Policy
132 // A policy that sleeps for a predetermined amount of time, then checks for a
152 // Check for a time threshold. This can be used to ensure that the policy
180 // Tests that policy requests are completed successfully. It is important that
181 // this tests cover all policy requests as defined in Policy.
185 &Policy::UpdateCheckAllowed, &result));
215 umut_->PolicyRequest(&Policy::UpdateCanStart, &result,
227 &Policy::UpdateCheckAllowed, &result);
235 // The update manager should die (DCHECK) if a policy called synchronously
239 EXPECT_DEATH(umut_->PolicyRequest(&Policy::UpdateCheckAllowed, &result), "");
245 // call on a policy that returns AskMeAgainLater the first time and one that
254 umut_->AsyncPolicyRequest(callback, &Policy::UpdateCheckAllowed);
262 // Set up an async policy call to return immediately, then wait a little and
271 umut_->AsyncPolicyRequest(callback, &Policy::UpdateCheckAllowed);
272 // Run the main loop, ensure that policy was attempted once before deferring
287 // Set up an async policy call to exceed its expiration timeout, make sure
288 // that the default policy was not used (no callback) and that evaluation is
299 umut_->AsyncPolicyRequest(callback, &Policy::UpdateCheckAllowed);
300 // Run the main loop, ensure that policy was attempted once but the callback
307 // default policy was not consulted).