Lines Matching refs:std

40 const std::chrono::duration kConnectionDeadline = std::chrono::seconds(1);
42 std::unique_ptr<frontend::FrontendService::Stub> NewFrontendStub( in NewFrontendStub()
43 std::string server) { in NewFrontendStub()
47 std::shared_ptr<grpc::Channel> channel = in NewFrontendStub()
50 auto deadline = std::chrono::system_clock::now() + kConnectionDeadline; in NewFrontendStub()
62 FrontendClientImpl(std::unique_ptr<frontend::FrontendService::Stub> stub) in FrontendClientImpl()
63 : stub_(std::move(stub)) {} in FrontendClientImpl()
65 std::unique_ptr<ClientResult> make_result( in make_result()
68 std::vector<unsigned char> message_vec(message.ByteSizeLong()); in make_result()
71 return std::make_unique<ClientResult>(false, status.error_message(), in make_result()
74 return std::make_unique<ClientResult>(true, "", message_vec); in make_result()
78 std::unique_ptr<ClientResult> GetVersion() const override { in GetVersion()
86 std::unique_ptr<ClientResult> ListDevice() const override { in ListDevice()
93 std::unique_ptr<ClientResult> Reset() const override { in Reset()
100 std::unique_ptr<ClientResult> CreateDevice( in CreateDevice()
111 std::to_string(request_byte_vec.size())), in CreateDevice()
119 std::unique_ptr<ClientResult> PatchDevice( in PatchDevice()
130 std::to_string(request_byte_vec.size())), in PatchDevice()
137 std::unique_ptr<ClientResult> DeleteChip( in DeleteChip()
148 std::to_string(request_byte_vec.size())), in DeleteChip()
156 std::unique_ptr<ClientResult> ListCapture() const override { in ListCapture()
164 std::unique_ptr<ClientResult> PatchCapture( in PatchCapture()
175 std::to_string(request_byte_vec.size())), in PatchCapture()
184 std::unique_ptr<ClientResult> GetCapture( in GetCapture()
195 std::to_string(request_byte_vec.size())), in GetCapture()
206 std::vector<uint8_t>(std::make_move_iterator(mut_stream->begin()), in GetCapture()
207 std::make_move_iterator(mut_stream->end())); in GetCapture()
216 std::unique_ptr<ClientResult> SendGrpc( in SendGrpc()
244 std::unique_ptr<frontend::FrontendService::Stub> stub_;
247 const std::string &message) { in CheckStatus()
262 std::unique_ptr<FrontendClient> NewFrontendClient(const std::string &server) { in NewFrontendClient()
266 : std::make_unique<FrontendClientImpl>(std::move(stub))); in NewFrontendClient()