Searched refs:UpdateRestrictions (Results 1 – 8 of 8) sorted by relevance
33 const UpdateRestrictions* update_restrictions_p = in UpdateCanBeApplied()36 if (*update_restrictions_p & UpdateRestrictions::kRestrictDownloading) { in UpdateCanBeApplied()
410 : public UpdaterVariableBase<UpdateRestrictions> {413 : UpdaterVariableBase<UpdateRestrictions>(name, kVariableModePoll) {} in UpdateRestrictionsVariable()416 const UpdateRestrictions* GetValue(TimeDelta /* timeout */, in GetValue()420 UpdateRestrictions restriction_flags = UpdateRestrictions::kNone; in GetValue()424 restriction_flags = static_cast<UpdateRestrictions>( in GetValue()425 restriction_flags | UpdateRestrictions::kRestrictDownloading); in GetValue()428 return new UpdateRestrictions(restriction_flags); in GetValue()
49 enum UpdateRestrictions : int { enum117 virtual Variable<UpdateRestrictions>* var_update_restrictions() = 0;
205 string BoxedValue::ValuePrinter<UpdateRestrictions>(const void* value) { in ValuePrinter()206 const UpdateRestrictions* val = in ValuePrinter()207 reinterpret_cast<const UpdateRestrictions*>(value); in ValuePrinter()209 if (*val == UpdateRestrictions::kNone) { in ValuePrinter()
82 FakeVariable<UpdateRestrictions>* var_update_restrictions() override { in var_update_restrictions()113 FakeVariable<UpdateRestrictions> var_update_restrictions_{
255 BoxedValue(new UpdateRestrictions(UpdateRestrictions::kNone)).ToString()); in TEST()257 BoxedValue(new UpdateRestrictions( in TEST()258 UpdateRestrictions::kRestrictDownloading)) in TEST()
91 Variable<UpdateRestrictions>* var_update_restrictions() override { in var_update_restrictions()115 std::unique_ptr<Variable<UpdateRestrictions>> var_update_restrictions_;
437 UmTestUtils::ExpectVariableHasValue(UpdateRestrictions::kRestrictDownloading, in TEST_F()445 UmTestUtils::ExpectVariableHasValue(UpdateRestrictions::kNone, in TEST_F()