3 * Copyright 2019 gRPC authors.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 #ifndef TEST_CPP_MICROBENCHMARKS_CALLBACK_TEST_SERVICE_H
20 #define TEST_CPP_MICROBENCHMARKS_CALLBACK_TEST_SERVICE_H
22 #include <condition_variable>
27 #include <benchmark/benchmark.h>
29 #include "src/proto/grpc/testing/echo.grpc.pb.h"
30 #include "test/cpp/util/string_ref_helper.h"
35 const char* const kServerMessageSize = "server_message_size";
37 class CallbackStreamingTestService : public EchoTestService::CallbackService {
39 CallbackStreamingTestService() {}
41 ServerUnaryReactor* Echo(CallbackServerContext* context,
42 const EchoRequest* request,
43 EchoResponse* response) override;
45 ServerBidiReactor<EchoRequest, EchoResponse>* BidiStream(
46 CallbackServerContext* context) override;
48 } // namespace testing
50 #endif // TEST_CPP_MICROBENCHMARKS_CALLBACK_TEST_SERVICE_H