Home
last modified time | relevance | path

Searched refs:observer_list_ (Results 1 – 3 of 3) sorted by relevance

/system/update_engine/update_manager/
Dvariable.h68 if (!observer_list_.empty()) { in ~BaseVariable()
70 << observer_list_.size() << " observers."; in ~BaseVariable()
72 DCHECK(observer_list_.empty()) << "Don't destroy the variable without " in ~BaseVariable()
96 if (std::find(observer_list_.begin(), observer_list_.end(), observer) == in AddObserver()
97 observer_list_.end()) { in AddObserver()
98 observer_list_.push_back(observer); in AddObserver()
103 observer_list_.remove(observer); in RemoveObserver()
122 if (!observer_list_.empty()) { in NotifyValueChanged()
148 observer_list_); in OnValueChangedNotification()
151 if (std::find(observer_list_.begin(), observer_list_.end(), observer) != in OnValueChangedNotification()
[all …]
Dvariable_unittest.cc102 EXPECT_EQ(1U, var.observer_list_.size()); in TEST_F()
104 EXPECT_EQ(1U, var.observer_list_.size()); in TEST_F()
106 EXPECT_EQ(0U, var.observer_list_.size()); in TEST_F()
108 EXPECT_EQ(0U, var.observer_list_.size()); in TEST_F()
Devaluation_context_unittest.cc114 EXPECT_TRUE(fake_int_var_.observer_list_.empty()); in TearDown()
115 EXPECT_TRUE(fake_async_var_.observer_list_.empty()); in TearDown()
116 EXPECT_TRUE(fake_const_var_.observer_list_.empty()); in TearDown()
117 EXPECT_TRUE(fake_poll_var_.observer_list_.empty()); in TearDown()