Home
last modified time | relevance | path

Searched refs:last_writer (Results 1 – 4 of 4) sorted by relevance

/external/pigweed/pw_rpc/raw/
Draw_method_test.cc92 RawServerWriter last_writer; variable
130 last_writer = std::move(writer); in StartStream()
182 EXPECT_TRUE(last_writer.open()); in TEST()
183 EXPECT_EQ(OkStatus(), last_writer.Finish()); in TEST()
192 auto buffer = last_writer.PayloadBuffer(); in TEST()
197 EXPECT_EQ(last_writer.Write(buffer.first(data.size())), OkStatus()); in TEST()
215 EXPECT_EQ(last_writer.Write(data), OkStatus()); in TEST()
232 EXPECT_EQ(OkStatus(), last_writer.Finish()); in TEST()
234 EXPECT_EQ(last_writer.Write(data), Status::FailedPrecondition()); in TEST()
245 EXPECT_EQ(last_writer.Write(data), Status::OutOfRange()); in TEST()
[all …]
Draw_method_union_test.cc48 RawServerWriter last_writer; variable
77 last_writer = std::move(writer); in StartStream()
141 EXPECT_TRUE(last_writer.open()); in TEST()
142 EXPECT_EQ(OkStatus(), last_writer.Finish()); in TEST()
/external/pigweed/pw_rpc/nanopb/
Dnanopb_method_test.cc129 ServerWriter<pw_rpc_test_TestResponse> last_writer; variable
147 last_writer = std::move(writer); in StartStream()
246 EXPECT_EQ(OkStatus(), last_writer.Write({.value = 100})); in TEST()
267 EXPECT_EQ(OkStatus(), last_writer.Finish()); in TEST()
268 EXPECT_TRUE(last_writer.Write({.value = 100}).IsFailedPrecondition()); in TEST()
277 ServerWriter<pw_rpc_test_TestResponse> new_writer = std::move(last_writer); in TEST()
281 EXPECT_EQ(Status::FailedPrecondition(), last_writer.Write({.value = 100})); in TEST()
282 EXPECT_EQ(Status::FailedPrecondition(), last_writer.Finish()); in TEST()
307 EXPECT_EQ(OkStatus(), last_writer.Write({})); // Barely fits in TEST()
308 EXPECT_EQ(Status::Internal(), last_writer.Write({.value = 1})); // Too big in TEST()
Dnanopb_method_union_test.cc59 ServerWriter<pw_rpc_test_TestResponse> last_writer; variable
87 last_writer = std::move(writer); in StartStream()
152 EXPECT_TRUE(last_writer.open()); in TEST()
154 EXPECT_EQ(OkStatus(), last_writer.Finish()); in TEST()