LCOV - code coverage report
Current view: top level - gens/test/cpp/util - echo_duplicate.grpc.pb.h (source / functions) Hit Total Coverage
Test: tmp.zDYK9MVh93 Lines: 4 4 100.0 %
Date: 2015-10-10 Functions: 5 6 83.3 %

          Line data    Source code
       1             : // Generated by the gRPC protobuf plugin.
       2             : // If you make any local change, they will be lost.
       3             : // source: test/cpp/util/echo_duplicate.proto
       4             : #ifndef GRPC_test_2fcpp_2futil_2fecho_5fduplicate_2eproto__INCLUDED
       5             : #define GRPC_test_2fcpp_2futil_2fecho_5fduplicate_2eproto__INCLUDED
       6             : 
       7             : #include "test/cpp/util/echo_duplicate.pb.h"
       8             : 
       9             : #include <grpc++/support/async_stream.h>
      10             : #include <grpc++/impl/rpc_method.h>
      11             : #include <grpc++/impl/proto_utils.h>
      12             : #include <grpc++/impl/service_type.h>
      13             : #include <grpc++/support/async_unary_call.h>
      14             : #include <grpc++/support/status.h>
      15             : #include <grpc++/support/stub_options.h>
      16             : #include <grpc++/support/sync_stream.h>
      17             : 
      18             : namespace grpc {
      19             : class CompletionQueue;
      20             : class Channel;
      21             : class RpcService;
      22             : class ServerCompletionQueue;
      23             : class ServerContext;
      24             : }  // namespace grpc
      25             : 
      26             : namespace grpc {
      27             : namespace cpp {
      28             : namespace test {
      29             : namespace util {
      30             : namespace duplicate {
      31             : 
      32             : class TestService GRPC_FINAL {
      33             :  public:
      34           2 :   class StubInterface {
      35             :    public:
      36           2 :     virtual ~StubInterface() {}
      37             :     virtual ::grpc::Status Echo(::grpc::ClientContext* context, const ::grpc::cpp::test::util::EchoRequest& request, ::grpc::cpp::test::util::EchoResponse* response) = 0;
      38             :     std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::grpc::cpp::test::util::EchoResponse>> AsyncEcho(::grpc::ClientContext* context, const ::grpc::cpp::test::util::EchoRequest& request, ::grpc::CompletionQueue* cq) {
      39             :       return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::grpc::cpp::test::util::EchoResponse>>(AsyncEchoRaw(context, request, cq));
      40             :     }
      41             :   private:
      42             :     virtual ::grpc::ClientAsyncResponseReaderInterface< ::grpc::cpp::test::util::EchoResponse>* AsyncEchoRaw(::grpc::ClientContext* context, const ::grpc::cpp::test::util::EchoRequest& request, ::grpc::CompletionQueue* cq) = 0;
      43             :   };
      44           4 :   class Stub GRPC_FINAL : public StubInterface {
      45             :    public:
      46             :     Stub(const std::shared_ptr< ::grpc::Channel>& channel);
      47             :     ::grpc::Status Echo(::grpc::ClientContext* context, const ::grpc::cpp::test::util::EchoRequest& request, ::grpc::cpp::test::util::EchoResponse* response) GRPC_OVERRIDE;
      48             :     std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::grpc::cpp::test::util::EchoResponse>> AsyncEcho(::grpc::ClientContext* context, const ::grpc::cpp::test::util::EchoRequest& request, ::grpc::CompletionQueue* cq) {
      49             :       return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::grpc::cpp::test::util::EchoResponse>>(AsyncEchoRaw(context, request, cq));
      50             :     }
      51             : 
      52             :    private:
      53             :     std::shared_ptr< ::grpc::Channel> channel_;
      54             :     ::grpc::ClientAsyncResponseReader< ::grpc::cpp::test::util::EchoResponse>* AsyncEchoRaw(::grpc::ClientContext* context, const ::grpc::cpp::test::util::EchoRequest& request, ::grpc::CompletionQueue* cq) GRPC_OVERRIDE;
      55             :     const ::grpc::RpcMethod rpcmethod_Echo_;
      56             :   };
      57             :   static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::Channel>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
      58             : 
      59             :   class Service : public ::grpc::SynchronousService {
      60             :    public:
      61          85 :     Service() : service_(nullptr) {}
      62             :     virtual ~Service();
      63             :     virtual ::grpc::Status Echo(::grpc::ServerContext* context, const ::grpc::cpp::test::util::EchoRequest* request, ::grpc::cpp::test::util::EchoResponse* response);
      64             :     ::grpc::RpcService* service() GRPC_OVERRIDE GRPC_FINAL;
      65             :    private:
      66             :     ::grpc::RpcService* service_;
      67             :   };
      68             :   class AsyncService GRPC_FINAL : public ::grpc::AsynchronousService {
      69             :    public:
      70             :     explicit AsyncService();
      71             :     ~AsyncService() {};
      72             :     void RequestEcho(::grpc::ServerContext* context, ::grpc::cpp::test::util::EchoRequest* request, ::grpc::ServerAsyncResponseWriter< ::grpc::cpp::test::util::EchoResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag);
      73             :   };
      74             : };
      75             : 
      76             : }  // namespace duplicate
      77             : }  // namespace util
      78             : }  // namespace test
      79             : }  // namespace cpp
      80             : }  // namespace grpc
      81             : 
      82             : 
      83             : #endif  // GRPC_test_2fcpp_2futil_2fecho_5fduplicate_2eproto__INCLUDED

Generated by: LCOV version 1.10