Introduce VERIFY_AND_CLEAR shorthand (#19370)
Which is just a syntactic sugar for testing::Mock::VerifyAndClearExpectations to reduce the visual clutter in unit-tests.
This commit is contained in:
parent
7aa2d791f6
commit
c2b13bd77b
21 changed files with 257 additions and 251 deletions
|
@ -93,7 +93,7 @@ TEST_F(CapsWord, ShiftedUnicodeMapKey) {
|
|||
tap_keys(key_delta, key_spc, key_delta);
|
||||
|
||||
EXPECT_EQ(is_caps_word_on(), false);
|
||||
testing::Mock::VerifyAndClearExpectations(&driver);
|
||||
VERIFY_AND_CLEAR(driver);
|
||||
}
|
||||
|
||||
// Tests typing U_ENDASH while Caps Word is on.
|
||||
|
@ -117,5 +117,5 @@ TEST_F(CapsWord, UnshiftedUnicodeMapKey) {
|
|||
tap_key(key_dash);
|
||||
|
||||
EXPECT_EQ(is_caps_word_on(), true);
|
||||
testing::Mock::VerifyAndClearExpectations(&driver);
|
||||
VERIFY_AND_CLEAR(driver);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue