diff --git a/testing/common/matchers.h b/testing/common/matchers.h index afb98528..cfaad182 100644 --- a/testing/common/matchers.h +++ b/testing/common/matchers.h @@ -26,7 +26,7 @@ namespace kaleidoscope { namespace testing { -auto ContainsKey(Key key) { return ::testing::Contains(key.getKeyCode()); } +auto Contains(Key key) { return ::testing::Contains(key.getKeyCode()); } } // namespace testing } // namespace kaleidoscope diff --git a/testing/kaleidoscope/test/simulator_test.cpp b/testing/kaleidoscope/test/simulator_test.cpp index a577382f..b91e009d 100644 --- a/testing/kaleidoscope/test/simulator_test.cpp +++ b/testing/kaleidoscope/test/simulator_test.cpp @@ -44,7 +44,7 @@ TEST_F(KeyboardReports, KeysActiveWhenPressed) { ASSERT_EQ(state->KeyboardReports().size(), 1); EXPECT_THAT( state->KeyboardReports(0).ActiveKeycodes(), - ContainsKey(Key_A)); + Contains(Key_A)); sim_.Release(2, 1); // A state = RunCycle();