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()
90 if (std::find(observer_list_.begin(), observer_list_.end(), observer) == in AddObserver()
91 observer_list_.end()) { in AddObserver()
92 observer_list_.push_back(observer); in AddObserver()
97 observer_list_.remove(observer); in RemoveObserver()
123 if (!observer_list_.empty()) { in NotifyValueChanged()
151 observer_list_); in OnValueChangedNotification()
154 if (std::find(observer_list_.begin(), observer_list_.end(), observer) != in OnValueChangedNotification()
[all …]
Dvariable_unittest.cc97 EXPECT_EQ(1U, var.observer_list_.size()); in TEST_F()
99 EXPECT_EQ(1U, var.observer_list_.size()); in TEST_F()
101 EXPECT_EQ(0U, var.observer_list_.size()); in TEST_F()
103 EXPECT_EQ(0U, var.observer_list_.size()); in TEST_F()
Devaluation_context_unittest.cc117 EXPECT_TRUE(fake_int_var_.observer_list_.empty()); in TearDown()
118 EXPECT_TRUE(fake_async_var_.observer_list_.empty()); in TearDown()
119 EXPECT_TRUE(fake_const_var_.observer_list_.empty()); in TearDown()
120 EXPECT_TRUE(fake_poll_var_.observer_list_.empty()); in TearDown()