Lines Matching refs:mock_obserser

515   MockPrefsObserver mock_obserser;  in TEST_F()  local
516 prefs_.AddObserver(kKey, &mock_obserser); in TEST_F()
518 EXPECT_CALL(mock_obserser, OnPrefSet(Eq(kKey))); in TEST_F()
519 EXPECT_CALL(mock_obserser, OnPrefDeleted(_)).Times(0); in TEST_F()
521 testing::Mock::VerifyAndClearExpectations(&mock_obserser); in TEST_F()
523 EXPECT_CALL(mock_obserser, OnPrefSet(_)).Times(0); in TEST_F()
524 EXPECT_CALL(mock_obserser, OnPrefDeleted(Eq(kKey))); in TEST_F()
526 testing::Mock::VerifyAndClearExpectations(&mock_obserser); in TEST_F()
529 prefs_.AddObserver(key1, &mock_obserser); in TEST_F()
531 EXPECT_CALL(mock_obserser, OnPrefSet(key1)); in TEST_F()
532 EXPECT_CALL(mock_obserser, OnPrefDeleted(_)).Times(0); in TEST_F()
534 testing::Mock::VerifyAndClearExpectations(&mock_obserser); in TEST_F()
536 EXPECT_CALL(mock_obserser, OnPrefSet(_)).Times(0); in TEST_F()
537 EXPECT_CALL(mock_obserser, OnPrefDeleted(Eq(key1))); in TEST_F()
539 testing::Mock::VerifyAndClearExpectations(&mock_obserser); in TEST_F()
541 prefs_.RemoveObserver(kKey, &mock_obserser); in TEST_F()
545 MockPrefsObserver mock_obserser; in TEST_F() local
547 prefs_.AddObserver(kUnusedKey, &mock_obserser); in TEST_F()
549 EXPECT_CALL(mock_obserser, OnPrefSet(_)).Times(0); in TEST_F()
550 EXPECT_CALL(mock_obserser, OnPrefDeleted(_)).Times(0); in TEST_F()
554 prefs_.RemoveObserver(kUnusedKey, &mock_obserser); in TEST_F()
571 MockPrefsObserver mock_obserser; in TEST_F() local
573 prefs_.AddObserver(kInvalidKey, &mock_obserser); in TEST_F()
575 EXPECT_CALL(mock_obserser, OnPrefSet(_)).Times(0); in TEST_F()
576 EXPECT_CALL(mock_obserser, OnPrefDeleted(_)).Times(0); in TEST_F()
580 prefs_.RemoveObserver(kInvalidKey, &mock_obserser); in TEST_F()