aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock
diff options
context:
space:
mode:
authorAlyssa Wilk <alyssar@chromium.org>2017-08-28 16:13:41 -0400
committerAlyssa Wilk <alyssar@chromium.org>2017-08-28 16:13:41 -0400
commitfa5d3b3845aa4cc38eef41c2e7ba0e98bfe15b39 (patch)
treea12946eed86e7d331292fe4ff4f2242a50a14133 /googlemock
parentc00373320db8cfbd1524e73e7b2793a22ecb2672 (diff)
downloadgoogletest-fa5d3b3845aa4cc38eef41c2e7ba0e98bfe15b39.tar.gz
googletest-fa5d3b3845aa4cc38eef41c2e7ba0e98bfe15b39.tar.bz2
googletest-fa5d3b3845aa4cc38eef41c2e7ba0e98bfe15b39.zip
Applying lint checks from upstream google3
Diffstat (limited to 'googlemock')
-rw-r--r--googlemock/test/gmock-spec-builders_test.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/googlemock/test/gmock-spec-builders_test.cc b/googlemock/test/gmock-spec-builders_test.cc
index 34088de1..c649bfd9 100644
--- a/googlemock/test/gmock-spec-builders_test.cc
+++ b/googlemock/test/gmock-spec-builders_test.cc
@@ -714,13 +714,14 @@ TEST(ExpectCallSyntaxTest, WarningIsErrorWithFlag) {
}
std::string warning_output = GetCapturedStdout();
EXPECT_PRED_FORMAT2(IsSubstring, "GMOCK WARNING", warning_output);
- EXPECT_PRED_FORMAT2(IsSubstring, "Uninteresting mock function call", warning_output);
+ EXPECT_PRED_FORMAT2(IsSubstring, "Uninteresting mock function call",
+ warning_output);
testing::GMOCK_FLAG(default_mock_behavior) = kFail;
EXPECT_NONFATAL_FAILURE({
MockA a;
a.DoA(0);
- },"Uninteresting mock function call");
+ }, "Uninteresting mock function call");
// Out of bounds values are converted to kWarn
testing::GMOCK_FLAG(default_mock_behavior) = -1;
@@ -731,7 +732,8 @@ TEST(ExpectCallSyntaxTest, WarningIsErrorWithFlag) {
}
warning_output = GetCapturedStdout();
EXPECT_PRED_FORMAT2(IsSubstring, "GMOCK WARNING", warning_output);
- EXPECT_PRED_FORMAT2(IsSubstring, "Uninteresting mock function call", warning_output);
+ EXPECT_PRED_FORMAT2(IsSubstring, "Uninteresting mock function call",
+ warning_output);
testing::GMOCK_FLAG(default_mock_behavior) = 3;
CaptureStdout();
{
@@ -740,7 +742,8 @@ TEST(ExpectCallSyntaxTest, WarningIsErrorWithFlag) {
}
warning_output = GetCapturedStdout();
EXPECT_PRED_FORMAT2(IsSubstring, "GMOCK WARNING", warning_output);
- EXPECT_PRED_FORMAT2(IsSubstring, "Uninteresting mock function call", warning_output);
+ EXPECT_PRED_FORMAT2(IsSubstring, "Uninteresting mock function call",
+ warning_output);
testing::GMOCK_FLAG(default_mock_behavior) = original_behavior;
}