Lines Matching defs:obs
63 PrefObserverMock obs;
66 registrar.Add(pref_name, &obs);
70 obs.Expect(&prefs, pref_name, &expected_value);
72 Mock::VerifyAndClearExpectations(&obs);
76 EXPECT_CALL(obs, Observe(_, _, _)).Times(0);
78 Mock::VerifyAndClearExpectations(&obs);
82 obs.Expect(&prefs, pref_name, &expected_default_value);
84 Mock::VerifyAndClearExpectations(&obs);
87 EXPECT_CALL(obs, Observe(_, _, _)).Times(0);
89 Mock::VerifyAndClearExpectations(&obs);
119 PrefObserverMock obs;
122 registrar.Add(pref_name, &obs);
125 obs.Expect(&prefs, pref_name, &expected_new_pref_value);
127 Mock::VerifyAndClearExpectations(&obs);
133 obs.Expect(&prefs, pref_name, &expected_new_pref_value2);
136 // This should fire the checks in obs and obs2.
138 Mock::VerifyAndClearExpectations(&obs);
141 // Make sure obs2 still works after removing obs.
142 registrar.Remove(pref_name, &obs);
143 EXPECT_CALL(obs, Observe(_, _, _)).Times(0);
147 Mock::VerifyAndClearExpectations(&obs);