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(); ```