aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/unit_testing.md
diff options
context:
space:
mode:
authorGravatar MakMukhi <mmukhi@google.com>2017-05-10 16:55:30 -0700
committerGravatar GitHub <noreply@github.com>2017-05-10 16:55:30 -0700
commit2f8cfbde3e47a3c63ce70fd1abd47c6cd98f7d8b (patch)
tree46d8292eb1e5a8d640dbcf40032efc836142113a /doc/unit_testing.md
parent49ccfda581c57e54cc6ac1706d218ab2c693e9a4 (diff)
Post-review updates
Diffstat (limited to 'doc/unit_testing.md')
-rw-r--r--doc/unit_testing.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/unit_testing.md b/doc/unit_testing.md
index 3307d11587..380517fea5 100644
--- a/doc/unit_testing.md
+++ b/doc/unit_testing.md
@@ -2,7 +2,7 @@
tl;dr: [Example code](https://github.com/grpc/grpc/blob/master/test/cpp/end2end/mock_test.cc).
-To unit-test client-side logic via the synchronous API, gRPC provides a mocked Stub that can be programmed upon and easily incorporated in the test code.
+To unit-test client-side logic via the synchronous API, gRPC provides a mocked Stub based on googletest(googlemock) that can be programmed upon and easily incorporated in the test code.
For instance, consider an EchoService like this:
@@ -14,7 +14,7 @@ service EchoTestService {
}
```
-The code generate would look something like this:
+The code generated would look something like this:
```c++
class EchoTestService final {
@@ -75,7 +75,7 @@ grpc_proto_library(
```
-By adding such a flag now a header file `echo_mock.h` containing the mocked stub will also be generated.
+By adding such a flag now a header file `echo_mock.grpc.pb.h` containing the mocked stub will also be generated.
This header file can then be included in test files along with a gmock dependency.