diff options
author | Tom Hughes <tomhughes@google.com> | 2023-01-24 11:09:35 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-01-24 11:10:09 -0800 |
commit | 2491710524094dc3b77cfa4e8eda2ba8edb0d91c (patch) | |
tree | 2c9bdfb14ae930e22a89dcbee3ae97f93a26451a /googlemock/test | |
parent | 408471e20cfaa7ccd585fe5e1c6e7b6fba8ce06e (diff) | |
download | googletest-2491710524094dc3b77cfa4e8eda2ba8edb0d91c.zip googletest-2491710524094dc3b77cfa4e8eda2ba8edb0d91c.tar.gz googletest-2491710524094dc3b77cfa4e8eda2ba8edb0d91c.tar.bz2 |
Fix formatting of C++ files
PiperOrigin-RevId: 504325204
Change-Id: Iaa1d6d0ab1dccaaeef26f9cb109d530835499240
Diffstat (limited to 'googlemock/test')
-rw-r--r-- | googlemock/test/gmock-actions_test.cc | 4 | ||||
-rw-r--r-- | googlemock/test/gmock-matchers-misc_test.cc | 4 | ||||
-rw-r--r-- | googlemock/test/gmock-matchers_test.h | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/googlemock/test/gmock-actions_test.cc b/googlemock/test/gmock-actions_test.cc index 510d15c..295470e 100644 --- a/googlemock/test/gmock-actions_test.cc +++ b/googlemock/test/gmock-actions_test.cc @@ -1410,7 +1410,7 @@ TEST(DoAll, ProvidesLvalueReferencesToInitialActions) { void operator()(Obj&&) const { FAIL() << "Unexpected call"; } }; - MockFunction<void(Obj &&)> mock; + MockFunction<void(Obj&&)> mock; EXPECT_CALL(mock, Call) .WillOnce(DoAll(InitialAction{}, InitialAction{}, [](Obj&&) {})) .WillRepeatedly(DoAll(InitialAction{}, InitialAction{}, [](Obj&&) {})); @@ -1438,7 +1438,7 @@ TEST(DoAll, ProvidesLvalueReferencesToInitialActions) { void operator()(Obj&) && {} }; - MockFunction<void(Obj &&)> mock; + MockFunction<void(Obj&&)> mock; EXPECT_CALL(mock, Call) .WillOnce(DoAll(InitialAction{}, InitialAction{}, [](Obj&&) {})); diff --git a/googlemock/test/gmock-matchers-misc_test.cc b/googlemock/test/gmock-matchers-misc_test.cc index 42a0e44..f99bbf4 100644 --- a/googlemock/test/gmock-matchers-misc_test.cc +++ b/googlemock/test/gmock-matchers-misc_test.cc @@ -1792,8 +1792,8 @@ TEST(ThrowsPredicateCompilesTest, ExceptionMatcherAcceptsBroadType) { { Matcher<uint64_t> inner = Eq(10); Matcher<std::function<void()>> matcher = Throws<uint32_t>(inner); - EXPECT_TRUE(matcher.Matches([]() { throw(uint32_t) 10; })); - EXPECT_FALSE(matcher.Matches([]() { throw(uint32_t) 11; })); + EXPECT_TRUE(matcher.Matches([]() { throw (uint32_t)10; })); + EXPECT_FALSE(matcher.Matches([]() { throw (uint32_t)11; })); } } diff --git a/googlemock/test/gmock-matchers_test.h b/googlemock/test/gmock-matchers_test.h index 6c986e9..5695607 100644 --- a/googlemock/test/gmock-matchers_test.h +++ b/googlemock/test/gmock-matchers_test.h @@ -148,9 +148,9 @@ class GreaterThanMatcher : public MatcherInterface<T> { }; // Names and instantiates a new instance of GTestMatcherTestP. -#define INSTANTIATE_GTEST_MATCHER_TEST_P(TestSuite) \ - using TestSuite##P = GTestMatcherTestP; \ - INSTANTIATE_TEST_SUITE_P(MatcherInterface, TestSuite##P, Values(false)); \ +#define INSTANTIATE_GTEST_MATCHER_TEST_P(TestSuite) \ + using TestSuite##P = GTestMatcherTestP; \ + INSTANTIATE_TEST_SUITE_P(MatcherInterface, TestSuite##P, Values(false)); \ INSTANTIATE_TEST_SUITE_P(GtestMatcher, TestSuite##P, Values(true)) class GTestMatcherTestP : public testing::TestWithParam<bool> { |