From 54f2dfb070a1d23bee65405ee761e2aea27f9b6a Mon Sep 17 00:00:00 2001 From: Eric Paniagua Date: Fri, 4 Sep 2020 23:16:36 -0700 Subject: [PATCH] Rename matcher `ContainsKey` to `Contains`. Signed-off-by: Eric Paniagua --- testing/common/matchers.h | 2 +- testing/kaleidoscope/test/simulator_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();