Home
last modified time | relevance | path

Searched refs:TestUnaryRpc (Results 1 – 25 of 29) sorted by relevance

12

/external/pigweed/pw_rpc/nanopb/
Dclient_server_context_test.cc26 Status TestUnaryRpc(const pw_rpc_test_TestRequest& request, in TestUnaryRpc() function in pw::rpc::__anon5489a3fd0111::TestService
58 auto call = GeneratedService::TestUnaryRpc( in TEST()
64 ctx.request<test::pw_rpc::nanopb::TestService::TestUnaryRpc>(0); in TEST()
66 ctx.response<test::pw_rpc::nanopb::TestService::TestUnaryRpc>(0); in TEST()
89 const auto call1 = GeneratedService::TestUnaryRpc( in TEST()
93 const auto call2 = GeneratedService::TestUnaryRpc( in TEST()
99 ctx.request<test::pw_rpc::nanopb::TestService::TestUnaryRpc>(0); in TEST()
101 ctx.request<test::pw_rpc::nanopb::TestService::TestUnaryRpc>(1); in TEST()
103 ctx.response<test::pw_rpc::nanopb::TestService::TestUnaryRpc>(0); in TEST()
105 ctx.response<test::pw_rpc::nanopb::TestService::TestUnaryRpc>(1); in TEST()
Dclient_server_context_threaded_test.cc28 Status TestUnaryRpc(const pw_rpc_test_TestRequest& request, in TestUnaryRpc() function in pw::rpc::__anon8fdc851d0111::TestService
54 auto call = GeneratedService::TestUnaryRpc( in BlockOnResponse()
81 ctx.request<test::pw_rpc::nanopb::TestService::TestUnaryRpc>(0); in TEST()
83 ctx.response<test::pw_rpc::nanopb::TestService::TestUnaryRpc>(0); in TEST()
102 ctx.request<test::pw_rpc::nanopb::TestService::TestUnaryRpc>(0); in TEST()
104 ctx.request<test::pw_rpc::nanopb::TestService::TestUnaryRpc>(1); in TEST()
106 ctx.response<test::pw_rpc::nanopb::TestService::TestUnaryRpc>(0); in TEST()
108 ctx.response<test::pw_rpc::nanopb::TestService::TestUnaryRpc>(1); in TEST()
Dfake_channel_output_test.cc30 using Info = internal::MethodInfo<TestService::TestUnaryRpc>;
54 ASSERT_TRUE(output.responses<TestService::TestUnaryRpc>().empty()); in TEST()
55 ASSERT_EQ(output.requests<TestService::TestUnaryRpc>().size(), 1u); in TEST()
57 Info::Request sent = output.requests<TestService::TestUnaryRpc>().front(); in TEST()
84 ASSERT_EQ(output.responses<TestService::TestUnaryRpc>().size(), 1u); in TEST()
85 ASSERT_TRUE(output.requests<TestService::TestUnaryRpc>().empty()); in TEST()
87 Info::Response sent = output.responses<TestService::TestUnaryRpc>().front(); in TEST()
Dsynchronous_call_test.cc35 using MethodInfo = internal::MethodInfo<TestService::TestUnaryRpc>;
114 auto result = SynchronousCall<TestService::TestUnaryRpc>( in TEST_F()
126 auto result = SynchronousCall<TestService::TestUnaryRpc>( in TEST_F()
143 auto result = SynchronousCall<TestService::TestUnaryRpc>( in TEST_F()
152 auto result = SynchronousCallFor<TestService::TestUnaryRpc>( in TEST_F()
165 auto result = SynchronousCallUntil<TestService::TestUnaryRpc>( in TEST_F()
179 SynchronousCall<TestService::TestUnaryRpc>(generated_client(), request); in TEST_F()
191 SynchronousCall<TestService::TestUnaryRpc>(generated_client(), request); in TEST_F()
208 SynchronousCall<TestService::TestUnaryRpc>(generated_client(), request); in TEST_F()
216 auto result = SynchronousCallFor<TestService::TestUnaryRpc>( in TEST_F()
[all …]
Dmethod_lookup_test.cc26 void TestUnaryRpc(ConstByteSpan, RawUnaryResponder& responder) { in TestUnaryRpc() function in pw::rpc::__anon24df6a5e0111::MixedService1
60 Status TestUnaryRpc(const pw_rpc_test_TestRequest&, in TestUnaryRpc() function in pw::rpc::__anon24df6a5e0111::MixedService2
89 PW_RAW_TEST_METHOD_CONTEXT(MixedService1, TestUnaryRpc) context; in TEST()
125 PW_NANOPB_TEST_METHOD_CONTEXT(MixedService2, TestUnaryRpc) context; in TEST()
Dclient_call_test.cc37 static NanopbUnaryReceiver<pw_rpc_test_TestResponse> TestUnaryRpc( in TestUnaryRpc() function in pw::rpc::__anonbc3ac4fe0111::FakeGeneratedServiceClient
103 auto call = FakeGeneratedServiceClient::TestUnaryRpc( in TEST()
130 auto call = FakeGeneratedServiceClient::TestUnaryRpc( in TEST_F()
151 auto call = FakeGeneratedServiceClient::TestUnaryRpc( in TEST_F()
166 auto call = FakeGeneratedServiceClient::TestUnaryRpc( in TEST_F()
189 auto call = FakeGeneratedServiceClient::TestUnaryRpc( in TEST_F()
211 auto call = FakeGeneratedServiceClient::TestUnaryRpc( in TEST_F()
231 auto call = FakeGeneratedServiceClient::TestUnaryRpc( in TEST_F()
Dserver_reader_writer_test.cc30 Status TestUnaryRpc(const pw_rpc_test_TestRequest&, in TestUnaryRpc() function in pw::rpc::TestServiceImpl
121 ReaderWriterTestContext<TestService::TestUnaryRpc> ctx; in TEST()
124 TestService::TestUnaryRpc>(ctx.server, ctx.channel.id(), ctx.service); in TEST()
189 ReaderWriterTestContext<TestService::TestUnaryRpc> ctx; in TEST()
192 TestService::TestUnaryRpc>(ctx.server, ctx.channel.id(), ctx.service); in TEST()
197 EXPECT_EQ(ctx.output.last_response<TestService::TestUnaryRpc>().value, 4321); in TEST()
Dcodegen_test.cc32 Status TestUnaryRpc(const pw_rpc_test_TestRequest& request, in TestUnaryRpc() function in pw::rpc::test::TestService
43 responder.Finish(response, TestUnaryRpc(request, response))); in TestAnotherUnaryRpc()
90 PW_NANOPB_TEST_METHOD_CONTEXT(test::TestService, TestUnaryRpc) context; in TEST()
225 auto call = test_client.TestUnaryRpc( in TEST()
311 auto call = test::pw_rpc::nanopb::TestService::TestUnaryRpc( in TEST()
Dclient_reader_writer_test.cc101 TestService::TestUnaryRpc( in TEST()
195 NanopbUnaryReceiver call_1 = TestService::TestUnaryRpc( in TEST()
207 ctx.server().SendResponse<TestService::TestUnaryRpc>({.value = 9000}, in TEST()
Dmethod_info_test.cc28 Status TestUnaryRpc(const pw_rpc_test_TestRequest&, in TestUnaryRpc() function in pw::rpc::internal::__anonb60720d00111::TestService
/external/pigweed/pw_rpc/pwpb/
Dclient_server_context_test.cc34 Status TestUnaryRpc(const TestRequest::Message& request, in TestUnaryRpc() function in pw::rpc::test::TestService
67 auto call = test::GeneratedService::TestUnaryRpc( in TEST()
73 ctx.request<test::pw_rpc::pwpb::TestService::TestUnaryRpc>(0); in TEST()
75 ctx.response<test::pw_rpc::pwpb::TestService::TestUnaryRpc>(0); in TEST()
96 const auto call1 = test::GeneratedService::TestUnaryRpc( in TEST()
100 const auto call2 = test::GeneratedService::TestUnaryRpc( in TEST()
106 ctx.request<test::pw_rpc::pwpb::TestService::TestUnaryRpc>(0); in TEST()
108 ctx.request<test::pw_rpc::pwpb::TestService::TestUnaryRpc>(1); in TEST()
110 ctx.response<test::pw_rpc::pwpb::TestService::TestUnaryRpc>(0); in TEST()
112 ctx.response<test::pw_rpc::pwpb::TestService::TestUnaryRpc>(1); in TEST()
Dclient_server_context_threaded_test.cc36 Status TestUnaryRpc(const TestRequest::Message& request, in TestUnaryRpc() function in pw::rpc::test::TestService
64 auto call = test::GeneratedService::TestUnaryRpc( in BlockOnResponse()
88 ctx.request<test::pw_rpc::pwpb::TestService::TestUnaryRpc>(0); in TEST()
90 ctx.response<test::pw_rpc::pwpb::TestService::TestUnaryRpc>(0); in TEST()
108 ctx.request<test::pw_rpc::pwpb::TestService::TestUnaryRpc>(0); in TEST()
110 ctx.request<test::pw_rpc::pwpb::TestService::TestUnaryRpc>(1); in TEST()
112 ctx.response<test::pw_rpc::pwpb::TestService::TestUnaryRpc>(0); in TEST()
114 ctx.response<test::pw_rpc::pwpb::TestService::TestUnaryRpc>(1); in TEST()
Dfake_channel_output_test.cc34 using Info = ::pw::rpc::internal::MethodInfo<TestService::TestUnaryRpc>;
58 ASSERT_TRUE(output.responses<TestService::TestUnaryRpc>().empty()); in TEST()
59 ASSERT_EQ(output.requests<TestService::TestUnaryRpc>().size(), 1u); in TEST()
61 Info::Request sent = output.requests<TestService::TestUnaryRpc>().front(); in TEST()
88 ASSERT_EQ(output.responses<TestService::TestUnaryRpc>().size(), 1u); in TEST()
89 ASSERT_TRUE(output.requests<TestService::TestUnaryRpc>().empty()); in TEST()
91 Info::Response sent = output.responses<TestService::TestUnaryRpc>().front(); in TEST()
Dsynchronous_call_test.cc35 using MethodInfo = internal::MethodInfo<TestService::TestUnaryRpc>;
117 auto result = SynchronousCall<TestService::TestUnaryRpc>( in TEST_F()
129 auto result = SynchronousCall<TestService::TestUnaryRpc>( in TEST_F()
146 auto result = SynchronousCall<TestService::TestUnaryRpc>( in TEST_F()
155 auto result = SynchronousCallFor<TestService::TestUnaryRpc>( in TEST_F()
168 auto result = SynchronousCallUntil<TestService::TestUnaryRpc>( in TEST_F()
182 SynchronousCall<TestService::TestUnaryRpc>(generated_client(), request); in TEST_F()
194 SynchronousCall<TestService::TestUnaryRpc>(generated_client(), request); in TEST_F()
211 SynchronousCall<TestService::TestUnaryRpc>(generated_client(), request); in TEST_F()
219 auto result = SynchronousCallFor<TestService::TestUnaryRpc>( in TEST_F()
[all …]
Dmethod_lookup_test.cc30 void TestUnaryRpc(ConstByteSpan, RawUnaryResponder& responder) { in TestUnaryRpc() function in pw::rpc::__anon32eadc590111::MixedService1
63 Status TestUnaryRpc(const TestRequest::Message&, TestResponse::Message&) { in TestUnaryRpc() function in pw::rpc::__anon32eadc590111::MixedService2
91 PW_RAW_TEST_METHOD_CONTEXT(MixedService1, TestUnaryRpc) context; in TEST()
127 PW_PWPB_TEST_METHOD_CONTEXT(MixedService2, TestUnaryRpc) context; in TEST()
Dclient_call_test.cc42 static PwpbUnaryReceiver<TestResponse::Message> TestUnaryRpc( in TestUnaryRpc() function in pw::rpc::__anon073b7c390111::FakeGeneratedServiceClient
105 auto call = FakeGeneratedServiceClient::TestUnaryRpc( in TEST()
132 auto call = FakeGeneratedServiceClient::TestUnaryRpc( in TEST_F()
153 auto call = FakeGeneratedServiceClient::TestUnaryRpc( in TEST_F()
168 auto call = FakeGeneratedServiceClient::TestUnaryRpc( in TEST_F()
191 auto call = FakeGeneratedServiceClient::TestUnaryRpc( in TEST_F()
212 auto call = FakeGeneratedServiceClient::TestUnaryRpc( in TEST_F()
232 auto call = FakeGeneratedServiceClient::TestUnaryRpc( in TEST_F()
Dserver_reader_writer_test.cc35 Status TestUnaryRpc(const TestRequest::Message&, TestResponse::Message&) { in TestUnaryRpc() function in pw::rpc::__anon850436840111::TestServiceImpl
121 ReaderWriterTestContext<TestService::TestUnaryRpc> ctx; in TEST()
123 TestService::TestUnaryRpc>(ctx.server, ctx.channel.id(), ctx.service); in TEST()
187 ReaderWriterTestContext<TestService::TestUnaryRpc> ctx; in TEST()
190 TestService::TestUnaryRpc>(ctx.server, ctx.channel.id(), ctx.service); in TEST()
195 EXPECT_EQ(ctx.output.last_response<TestService::TestUnaryRpc>().value, 4321); in TEST()
Dserver_callback_test.cc33 Status TestUnaryRpc(const TestRequest::Message&, in TestUnaryRpc() function in pw::rpc::__anon5b8c3f420111::TestServiceImpl
64 PW_PWPB_TEST_METHOD_CONTEXT(TestServiceImpl, TestUnaryRpc) ctx; in TEST()
Dcodegen_test.cc32 Status TestUnaryRpc(const pwpb::TestRequest::Message& request, in TestUnaryRpc() function in pw::rpc::test::TestService
43 responder.Finish(response, TestUnaryRpc(request, response))); in TestAnotherUnaryRpc()
93 PW_PWPB_TEST_METHOD_CONTEXT(test::TestService, TestUnaryRpc) context; in TEST()
233 auto call = test_client.TestUnaryRpc( in TEST()
320 auto call = test::pw_rpc::pwpb::TestService::TestUnaryRpc( in TEST()
Dclient_reader_writer_test.cc103 TestService::TestUnaryRpc(ctx.client(), in TEST()
195 PwpbUnaryReceiver call_1 = TestService::TestUnaryRpc( in TEST()
207 ctx.server().SendResponse<TestService::TestUnaryRpc>({.value = 9000}, in TEST()
/external/pigweed/pw_rpc/raw/
Dserver_reader_writer_test.cc31 static void TestUnaryRpc(ConstByteSpan, RawUnaryResponder&) {} in TestUnaryRpc() function in pw::rpc::TestServiceImpl
107 RawUnaryResponder call = RawUnaryResponder::Open<TestService::TestUnaryRpc>( in TEST()
170 RawUnaryResponder call = RawUnaryResponder::Open<TestService::TestUnaryRpc>( in TEST()
178 ctx.output.payloads<TestService::TestUnaryRpc>().back().data()), in TEST()
207 RawUnaryResponder one = RawUnaryResponder::Open<TestService::TestUnaryRpc>( in TEST()
215 RawUnaryResponder two = RawUnaryResponder::Open<TestService::TestUnaryRpc>( in TEST()
276 RawUnaryResponder::Open<TestService::TestUnaryRpc>( in TEST()
283 const auto completions = ctx.output.completions<TestService::TestUnaryRpc>(); in TEST()
291 RawUnaryResponder::Open<TestService::TestUnaryRpc>( in TEST()
303 const auto completions = ctx.output.completions<TestService::TestUnaryRpc>(); in TEST()
[all …]
Dcodegen_test.cc63 static void TestUnaryRpc(ConstByteSpan request, in TestUnaryRpc() function in pw::rpc::test::TestService
87 TestUnaryRpc(request, responder); in TestAnotherUnaryRpc()
188 static void TestUnaryRpc(ConstByteSpan, RawUnaryResponder&) {} in TestUnaryRpc() function in pw::rpc::test::NoPackageTestService
211 PW_RAW_TEST_METHOD_CONTEXT(test::TestService, TestUnaryRpc) context; in TEST()
447 RawUnaryReceiver call = test::pw_rpc::raw::TestService::TestUnaryRpc( in TEST_F()
454 context_.server().SendResponse<test::pw_rpc::raw::TestService::TestUnaryRpc>( in TEST_F()
464 RawUnaryReceiver call = service_client_.TestUnaryRpc( in TEST_F()
468 .SendServerError<test::pw_rpc::raw::TestService::TestUnaryRpc>( in TEST_F()
Dclient_reader_writer_test.cc89 RawUnaryReceiver call = TestService::TestUnaryRpc(ctx.client(), in TEST()
178 RawUnaryReceiver call = TestService::TestUnaryRpc(ctx.client(), in TEST()
278 TestService::TestUnaryRpc(ctx.client(), in TEST()
301 TestService::TestUnaryRpc(ctx.client(), ctx.channel().id(), {}); in TEST()
323 RawUnaryReceiver call = TestService::TestUnaryRpc( in TEST()
Dmethod_info_test.cc27 static StatusWithSize TestUnaryRpc(ConstByteSpan, ByteSpan) { in TestUnaryRpc() function in pw::rpc::internal::__anon30d7207c0111::TestService
/external/pigweed/pw_rpc/public/pw_rpc/internal/
Dmethod_info_tester.h45 PW_RPC_TEST_METHOD_INFO_IDS(TestUnaryRpc);
68 PW_RPC_TEST_METHOD_INFO_FUNCTION(TestUnaryRpc);
87 PW_RPC_TEST_PUBLIC_METHOD_INFO_TYPES(TestUnaryRpc);

12