From 280fcdb95fd893b00e401c0ea62a5d94e07b127a Mon Sep 17 00:00:00 2001 From: Kevin Dungs Date: Tue, 26 May 2020 01:06:53 +0200 Subject: [PATCH] Correct gMock syntax in example code. --- doc/unit_testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/unit_testing.md b/doc/unit_testing.md index ca5648130ce..c301e7d4219 100644 --- a/doc/unit_testing.md +++ b/doc/unit_testing.md @@ -144,7 +144,7 @@ Unary RPC: MockEchoTestServiceStub stub; EchoResponse resp; resp.set_message("hello world"); -Expect_CALL(stub, Echo(_,_,_)).Times(Atleast(1)).WillOnce(DoAll(SetArgPointee<2>(resp), Return(Status::OK))); +EXPECT_CALL(stub, Echo(_,_,_)).Times(AtLeast(1)).WillOnce(DoAll(SetArgPointee<2>(resp), Return(Status::OK))); FakeClient client(stub); client.DoEcho(); ```