1414 * limitations under the License.
1515 */
1616
17- #include < thread>
18-
1917#include < grpc++/grpc++.h>
2018
19+ #include < thread>
20+
2121#include " monster_test.grpc.fb.h"
2222#include " monster_test_generated.h"
2323#include " test_assert.h"
2424
2525using namespace MyGame ::Example;
26- using flatbuffers::grpc::MessageBuilder;
2726using flatbuffers::FlatBufferBuilder;
27+ using flatbuffers::grpc::MessageBuilder;
2828
2929void message_builder_tests ();
3030
@@ -97,8 +97,7 @@ void RunServer() {
9797 server_instance->Wait ();
9898}
9999
100- template <class Builder >
101- void StoreRPC (MonsterStorage::Stub *stub) {
100+ template <class Builder > void StoreRPC (MonsterStorage::Stub *stub) {
102101 Builder fbb;
103102 grpc::ClientContext context;
104103 // Build a request with the name set.
@@ -119,8 +118,7 @@ void StoreRPC(MonsterStorage::Stub *stub) {
119118 }
120119}
121120
122- template <class Builder >
123- void RetrieveRPC (MonsterStorage::Stub *stub) {
121+ template <class Builder > void RetrieveRPC (MonsterStorage::Stub *stub) {
124122 Builder fbb;
125123 grpc::ClientContext context;
126124 fbb.Clear ();
@@ -155,7 +153,6 @@ int grpc_server_test() {
155153 RetrieveRPC<MessageBuilder>(stub.get ());
156154 RetrieveRPC<FlatBufferBuilder>(stub.get ());
157155
158-
159156#if !FLATBUFFERS_GRPC_DISABLE_AUTO_VERIFICATION
160157 {
161158 // Test that an invalid request errors out correctly
@@ -181,7 +178,7 @@ int grpc_server_test() {
181178 return 0 ;
182179}
183180
184- int main (int /* argc*/ , const char * /* argv*/ []) {
181+ int main (int /* argc*/ , const char * /* argv*/ []) {
185182 message_builder_tests ();
186183 grpc_server_test ();
187184
@@ -193,4 +190,3 @@ int main(int /*argc*/, const char * /*argv*/ []) {
193190 return 1 ;
194191 }
195192}
196-
0 commit comments