Rename matcher `ContainsKey` to `Contains`.

Signed-off-by: Eric Paniagua <epaniagua@google.com>
pull/898/head
Eric Paniagua 4 years ago
parent 5b17881676
commit 54f2dfb070

@ -26,7 +26,7 @@
namespace kaleidoscope { namespace kaleidoscope {
namespace testing { namespace testing {
auto ContainsKey(Key key) { return ::testing::Contains(key.getKeyCode()); } auto Contains(Key key) { return ::testing::Contains(key.getKeyCode()); }
} // namespace testing } // namespace testing
} // namespace kaleidoscope } // namespace kaleidoscope

@ -44,7 +44,7 @@ TEST_F(KeyboardReports, KeysActiveWhenPressed) {
ASSERT_EQ(state->KeyboardReports().size(), 1); ASSERT_EQ(state->KeyboardReports().size(), 1);
EXPECT_THAT( EXPECT_THAT(
state->KeyboardReports(0).ActiveKeycodes(), state->KeyboardReports(0).ActiveKeycodes(),
ContainsKey(Key_A)); Contains(Key_A));
sim_.Release(2, 1); // A sim_.Release(2, 1); // A
state = RunCycle(); state = RunCycle();

Loading…
Cancel
Save