Correct gMock syntax in example code.

pull/23041/head
Kevin Dungs 5 years ago committed by GitHub
parent 9facfe2b68
commit 280fcdb95f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      doc/unit_testing.md

@ -144,7 +144,7 @@ Unary RPC:
MockEchoTestServiceStub stub; MockEchoTestServiceStub stub;
EchoResponse resp; EchoResponse resp;
resp.set_message("hello world"); 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); FakeClient client(stub);
client.DoEcho(); client.DoEcho();
``` ```

Loading…
Cancel
Save