Searched refs:UpdateRestrictions (Results 1 – 9 of 9) sorted by relevance
33 const UpdateRestrictions* update_restrictions_p = in UpdateCanBeApplied()36 if (*update_restrictions_p & UpdateRestrictions::kRestrictDownloading) { in UpdateCanBeApplied()
417 : public UpdaterVariableBase<UpdateRestrictions> {420 : UpdaterVariableBase<UpdateRestrictions>( in UpdateRestrictionsVariable()424 const UpdateRestrictions* GetValue(TimeDelta /* timeout */, in GetValue()428 UpdateRestrictions restriction_flags = UpdateRestrictions::kNone; in GetValue()432 restriction_flags = static_cast<UpdateRestrictions>( in GetValue()433 restriction_flags | UpdateRestrictions::kRestrictDownloading); in GetValue()436 return new UpdateRestrictions(restriction_flags); in GetValue()
224 string BoxedValue::ValuePrinter<UpdateRestrictions>(const void* value) { in ValuePrinter()225 const UpdateRestrictions* val = in ValuePrinter()226 reinterpret_cast<const UpdateRestrictions*>(value); in ValuePrinter()228 if (*val == UpdateRestrictions::kNone) { in ValuePrinter()
48 enum UpdateRestrictions : int { enum116 virtual Variable<UpdateRestrictions>* var_update_restrictions() = 0;
82 FakeVariable<UpdateRestrictions>* var_update_restrictions() override { in var_update_restrictions()109 FakeVariable<UpdateRestrictions> var_update_restrictions_{
265 BoxedValue(new UpdateRestrictions(UpdateRestrictions::kNone)).ToString()); in TEST()267 BoxedValue(new UpdateRestrictions( in TEST()268 UpdateRestrictions::kRestrictDownloading)) in TEST()
93 Variable<UpdateRestrictions>* var_update_restrictions() override { in var_update_restrictions()116 std::unique_ptr<Variable<UpdateRestrictions>> var_update_restrictions_;
178 new UpdateRestrictions(UpdateRestrictions::kRestrictDownloading)); in TEST_F()
437 UmTestUtils::ExpectVariableHasValue(UpdateRestrictions::kRestrictDownloading, in TEST_F()445 UmTestUtils::ExpectVariableHasValue(UpdateRestrictions::kNone, in TEST_F()