17 #ifndef __TESTS_MOCKCSIPLUGIN_HPP__ 18 #define __TESTS_MOCKCSIPLUGIN_HPP__ 25 #include <gmock/gmock.h> 27 #include <grpcpp/grpcpp.h> 40 #define CSI_METHOD_FOREACH(macro) \ 41 macro(GetPluginInfo) \ 42 macro(GetPluginCapabilities) \ 46 macro(ControllerPublishVolume) \ 47 macro(ControllerUnpublishVolume) \ 48 macro(ValidateVolumeCapabilities) \ 51 macro(ControllerGetCapabilities) \ 52 macro(NodeStageVolume) \ 53 macro(NodeUnstageVolume) \ 54 macro(NodePublishVolume) \ 55 macro(NodeUnpublishVolume) \ 57 macro(NodeGetCapabilities) 59 #define DECLARE_MOCK_CSI_METHOD(name) \ 60 MOCK_METHOD3(name, grpc::Status( \ 61 grpc::ServerContext* context, \ 62 const csi::v0::name##Request* request, \ 63 csi::v0::name##Response* response)); 67 public csi::v0::Controller::Service,
68 public csi::v0::Node::Service
80 std::unique_ptr<grpc::Server> server;
87 #endif // __TESTS_MOCKCSIPLUGIN_HPP__
#define CSI_METHOD_FOREACH(macro)
Definition: mock_csi_plugin.hpp:40
Try< Address > address(int_fd s)
Returns the Address with the assigned ip and assigned port.
Definition: network.hpp:79
Try< Nothing > shutdown()
Try< process::grpc::Channel > startup(const Option< std::string > &address=None())
Definition: attributes.hpp:24
Definition: mock_csi_plugin.hpp:66
#define DECLARE_MOCK_CSI_METHOD(name)
Definition: mock_csi_plugin.hpp:59