Lines Matching refs:mock_obserser

433   MockPrefsObserver mock_obserser;  in TEST_F()  local
434 prefs_.AddObserver(kKey, &mock_obserser); in TEST_F()
436 EXPECT_CALL(mock_obserser, OnPrefSet(Eq(kKey))); in TEST_F()
437 EXPECT_CALL(mock_obserser, OnPrefDeleted(_)).Times(0); in TEST_F()
439 testing::Mock::VerifyAndClearExpectations(&mock_obserser); in TEST_F()
441 EXPECT_CALL(mock_obserser, OnPrefSet(_)).Times(0); in TEST_F()
442 EXPECT_CALL(mock_obserser, OnPrefDeleted(Eq(kKey))); in TEST_F()
444 testing::Mock::VerifyAndClearExpectations(&mock_obserser); in TEST_F()
447 prefs_.AddObserver(key1, &mock_obserser); in TEST_F()
449 EXPECT_CALL(mock_obserser, OnPrefSet(key1)); in TEST_F()
450 EXPECT_CALL(mock_obserser, OnPrefDeleted(_)).Times(0); in TEST_F()
452 testing::Mock::VerifyAndClearExpectations(&mock_obserser); in TEST_F()
454 EXPECT_CALL(mock_obserser, OnPrefSet(_)).Times(0); in TEST_F()
455 EXPECT_CALL(mock_obserser, OnPrefDeleted(Eq(key1))); in TEST_F()
457 testing::Mock::VerifyAndClearExpectations(&mock_obserser); in TEST_F()
459 prefs_.RemoveObserver(kKey, &mock_obserser); in TEST_F()
463 MockPrefsObserver mock_obserser; in TEST_F() local
465 prefs_.AddObserver(kUnusedKey, &mock_obserser); in TEST_F()
467 EXPECT_CALL(mock_obserser, OnPrefSet(_)).Times(0); in TEST_F()
468 EXPECT_CALL(mock_obserser, OnPrefDeleted(_)).Times(0); in TEST_F()
472 prefs_.RemoveObserver(kUnusedKey, &mock_obserser); in TEST_F()
489 MockPrefsObserver mock_obserser; in TEST_F() local
491 prefs_.AddObserver(kInvalidKey, &mock_obserser); in TEST_F()
493 EXPECT_CALL(mock_obserser, OnPrefSet(_)).Times(0); in TEST_F()
494 EXPECT_CALL(mock_obserser, OnPrefDeleted(_)).Times(0); in TEST_F()
498 prefs_.RemoveObserver(kInvalidKey, &mock_obserser); in TEST_F()