Lines Matching refs:observer1
108 BaseVariableObserver observer1; in TEST_F() local
109 var.AddObserver(&observer1); in TEST_F()
112 ASSERT_EQ(0U, observer1.calls_.size()); in TEST_F()
115 ASSERT_EQ(1U, observer1.calls_.size()); in TEST_F()
117 EXPECT_EQ(&var, observer1.calls_[0]); in TEST_F()
125 EXPECT_EQ(2U, observer1.calls_.size()); in TEST_F()
128 var.RemoveObserver(&observer1); in TEST_F()
158 BaseVariableObserverRemover observer1; in TEST_F() local
161 var.AddObserver(&observer1); in TEST_F()
165 observer1.OnCallRemoveObserver(&observer1); in TEST_F()
166 observer1.OnCallRemoveObserver(&observer2); in TEST_F()
167 observer2.OnCallRemoveObserver(&observer1); in TEST_F()
173 EXPECT_EQ(1, observer1.get_calls() + observer2.get_calls()); in TEST_F()