Lines Matching refs:hp
140 MojoHandle hp, hc;
147 hp = MOJO_HANDLE_INVALID;
149 EXPECT_EQ(MOJO_RESULT_OK, MojoCreateDataPipe(NULL, &hp, &hc));
150 EXPECT_NE(hp, MOJO_HANDLE_INVALID);
157 // The producer |hp| should be writable.
158 EXPECT_EQ(MOJO_RESULT_OK, MojoWait(hp, MOJO_HANDLE_SIGNAL_WRITABLE, 0));
171 // Write to |hp|.
176 MojoWriteData(hp, kHello, &buffer_size,
184 // Do a two-phase write to |hp|.
186 MojoBeginWriteData(hp, &write_pointer, &buffer_size,
193 MojoEndWriteData(hp, static_cast<uint32_t>(sizeof(kWorld))));
201 // Close |hp|.
202 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(hp));