Commit 153909f0 authored by Abseil Team's avatar Abseil Team Committed by Andy Soffer
Browse files

Googletest export

Fix typo in example.

PiperOrigin-RevId: 287212448
parent fbe34cec
...@@ -2202,7 +2202,7 @@ class Helper { ...@@ -2202,7 +2202,7 @@ class Helper {
.WillOnce(&CalculateSum) .WillOnce(&CalculateSum)
.WillRepeatedly(Invoke(NewPermanentCallback(Sum3, 1))); .WillRepeatedly(Invoke(NewPermanentCallback(Sum3, 1)));
EXPECT_CALL(foo, ComplexJob(_)) EXPECT_CALL(foo, ComplexJob(_))
.WillOnce(Invoke(&helper, &Helper::ComplexJob)); .WillOnce(Invoke(&helper, &Helper::ComplexJob))
.WillRepeatedly([](int x) { return x > 0; }); .WillRepeatedly([](int x) { return x > 0; });
foo.Sum(5, 6); // Invokes CalculateSum(5, 6). foo.Sum(5, 6); // Invokes CalculateSum(5, 6).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment