Home
last modified time | relevance | path

Searched refs:handle0 (Results 1 – 25 of 33) sorted by relevance

12

/external/libmojo/mojo/message_pump/
Dhandle_watcher_unittest.cc163 ASSERT_TRUE(test_pipe.handle0.is_valid()); in TEST_P()
166 callback_helper.Start(&watcher, test_pipe.handle0.get()); in TEST_P()
184 ASSERT_TRUE(test_pipe1.handle0.is_valid()); in TEST_P()
185 ASSERT_TRUE(test_pipe2.handle0.is_valid()); in TEST_P()
186 ASSERT_TRUE(test_pipe3.handle0.is_valid()); in TEST_P()
189 callback_helper1.Start(&watcher1, test_pipe1.handle0.get()); in TEST_P()
196 callback_helper2.Start(&watcher2, test_pipe2.handle0.get()); in TEST_P()
203 callback_helper3.Start(&watcher3, test_pipe3.handle0.get()); in TEST_P()
247 ASSERT_TRUE(test_pipe1.handle0.is_valid()); in TEST_P()
248 ASSERT_TRUE(test_pipe2.handle0.is_valid()); in TEST_P()
[all …]
Dmessage_pump_mojo_unittest.cc92 handles.handle0.get(), in TEST()
101 MojoWait(handles.handle0.get().value(), MOJO_HANDLE_SIGNAL_READABLE, in TEST()
118 handles.handle0.get(), in TEST()
126 MojoWait(handles.handle0.get().value(), MOJO_HANDLE_SIGNAL_READABLE, in TEST()
139 MojoWait(handles.handle0.get().value(), MOJO_HANDLE_SIGNAL_READABLE, in TEST()
155 handles.handle0.get(), in TEST()
166 Handle closed_handle = handles.handle0.get(); in TEST()
167 handles.handle0.reset(); in TEST()
181 MessagePumpMojo::current()->AddHandler(&handler, handles.handle0.get(), in TEST()
184 handles.handle0.reset(); in TEST()
Dhandle_watcher_perftest.cc102 watcher.Start(pipe.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE, in TEST_P()
121 ASSERT_TRUE(test_data->pipe.handle0.is_valid()); in TEST_P()
131 test_data->pipe.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE, in TEST_P()
151 watcher.Start(pipe.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE, in TEST_P()
159 mojo::test::ReadTextMessage(pipe.handle0.get(), &received_message)); in TEST_P()
180 ASSERT_TRUE(test_data->pipe.handle0.is_valid()); in TEST_P()
182 test_data->pipe.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE, in TEST_P()
191 watcher.Start(pipe.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE, in TEST_P()
199 mojo::test::ReadTextMessage(pipe.handle0.get(), &received_message)); in TEST_P()
/external/libmojo/mojo/public/c/system/tests/
Dcore_unittest_pure_c.c44 MojoHandle handle0, handle1; in MinimalCTest() local
53 handle0 = MOJO_HANDLE_INVALID; in MinimalCTest()
54 EXPECT_NE(MOJO_RESULT_OK, MojoClose(handle0)); in MinimalCTest()
57 MojoWait(handle0, ~MOJO_HANDLE_SIGNAL_NONE, in MinimalCTest()
61 EXPECT_EQ(MOJO_RESULT_OK, MojoCreateMessagePipe(NULL, &handle0, &handle1)); in MinimalCTest()
67 MojoWaitMany(&handle0, &signals, 1, 1, &result_index, states)); in MinimalCTest()
78 MojoWriteMessage(handle0, kHello, (uint32_t)sizeof(kHello), NULL, in MinimalCTest()
97 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(handle0)); in MinimalCTest()
/external/libmojo/mojo/public/cpp/system/
Dmessage_pipe.h49 MessagePipeHandle handle0; in CreateMessagePipe() local
52 options, handle0.mutable_value(), handle1.mutable_value()); in CreateMessagePipe()
55 message_pipe0->reset(handle0); in CreateMessagePipe()
135 ScopedMessagePipeHandle handle0; variable
140 MojoResult result = CreateMessagePipe(nullptr, &handle0, &handle1); in MessagePipe()
142 DCHECK(handle0.is_valid()); in MessagePipe()
147 MojoResult result = CreateMessagePipe(&options, &handle0, &handle1); in MessagePipe()
149 DCHECK(handle0.is_valid()); in MessagePipe()
/external/libmojo/mojo/edk/js/tests/
Dconnection_tests.js53 var connection0 = new connection.Connection(pipe.handle0, ServiceImpl);
61 foo.source = sourcePipe.handle0;
63 foo, sample_service.Service.BazOptions.REGULAR, anotherPipe.handle0)
90 core.close(pipe.handle0);
96 null, sample_service.Service.BazOptions.REGULAR, anotherPipe.handle0)
130 var connection0 = new connection.Connection(pipe.handle0, ProviderImpl);
Djs_to_cpp_tests.js87 core.close(messagePipe1.handle0);
88 core.close(messagePipe2.handle0);
126 core.close(messagePipe.handle0);
166 core.close(messagePipe.handle0);
191 var result = core.writeMessage(pipe.handle0, arrayBuffer, [], 0);
Dsample_service_tests.js87 var connection0 = new connection.Connection(sampleServicePipe.handle0,
94 foo, sample.Service.BazOptions.EXTRA, pipe.handle0)
141 foo.source = core.createMessagePipe().handle0;
/external/libmojo/mojo/public/js/
Dcore_unittests.js36 expect(core.close(pipe.handle0)).toBe(core.RESULT_OK);
48 expect(core.close(pipe.handle0)).toBe(core.RESULT_OK);
85 wait = core.wait(pipe.handle0, core.HANDLE_SIGNAL_READABLE, 0);
92 [pipe.handle0, pipe.handle1],
104 wait = core.wait(pipe.handle0, core.HANDLE_SIGNAL_WRITABLE, 0);
116 pipe.handle0, senderData, [],
121 wait = core.wait(pipe.handle0, core.HANDLE_SIGNAL_WRITABLE, 0);
188 expect(core.isHandle(pipe.handle0)).toBeTruthy();
Dconnection.js92 var router = new Router(messagePipe.handle0);
114 var router = new Router(messagePipe.handle0);
160 var router = new Router(pipe.handle0);
Dvalidation_unittests.js295 testMessagePipe.handle0,
311 expect(core.close(testMessagePipe.handle0)).toBe(core.RESULT_OK);
/external/libmojo/mojo/edk/js/
Dhandle_unittest.cc66 TestHandleWrapper wrapper(pipe.handle0.release().value()); in TEST_F()
83 TestHandleWrapper wrapper(pipe.handle0.release().value()); in TEST_F()
Dcore.cc101 MojoHandle handle0 = MOJO_HANDLE_INVALID; in CreateMessagePipe() local
108 result = MojoCreateMessagePipe(NULL, &handle0, &handle1); in CreateMessagePipe()
121 result = MojoCreateMessagePipe(&options, &handle0, &handle1); in CreateMessagePipe()
129 dictionary.Set("handle0", mojo::Handle(handle0)); in CreateMessagePipe()
/external/libmojo/mojo/public/cpp/bindings/tests/
Darray_common_test.h65 handles[0] = std::move(pipe.handle0); in Handle()
68 EXPECT_FALSE(pipe.handle0.is_valid()); in Handle()
83 MojoHandle pipe0_value = pipe.handle0.get().value(); in HandlesAreClosed()
84 MojoHandle pipe1_value = pipe.handle0.get().value(); in HandlesAreClosed()
88 handles[0] = std::move(pipe.handle0); in HandlesAreClosed()
89 handles[1].reset(pipe.handle0.release()); in HandlesAreClosed()
Dhandle_passing_unittest.cc218 request->pipe = std::move(pipe1.handle0); in TEST_F()
223 factory->DoStuff(std::move(request), std::move(pipe0.handle0), in TEST_F()
303 MojoHandle handle0_value = extra_pipe.handle0.get().value(); in TEST_F()
308 pipes[0] = std::move(extra_pipe.handle0); in TEST_F()
Dinterface_ptr_unittest.cc287 Handle handle = pipe.handle0.get(); in TEST_F()
290 InterfacePtrInfo<math::Calculator>(std::move(pipe.handle0), 0u)); in TEST_F()
524 new StrongMathCalculatorImpl(std::move(pipe.handle0), &error_received, in TEST()
597 WeakMathCalculatorImpl impl(std::move(pipe.handle0), &error_received, in TEST()
Dassociated_interface_unittest.cc167 true, std::move(pipe.handle0), base::ThreadTaskRunnerHandle::Get())); in TEST_F()
362 true, std::move(pipe.handle0), base::ThreadTaskRunnerHandle::Get())); in TEST_F()
451 true, std::move(pipe.handle0), base::ThreadTaskRunnerHandle::Get())); in TEST_F()
Drequest_response_unittest.cc137 ReadTextMessage(pipe2.handle0.get(), &value); in TEST_F()
/external/libmojo/mojo/edk/embedder/
Dentrypoints.cc143 MojoResult MojoFuseMessagePipesImpl(MojoHandle handle0, MojoHandle handle1) { in MojoFuseMessagePipesImpl() argument
144 return g_core->FuseMessagePipes(handle0, handle1); in MojoFuseMessagePipesImpl()
/external/libmojo/mojo/public/cpp/bindings/
Dinterface_request.h132 ptr->Bind(InterfacePtrInfo<Interface>(std::move(pipe.handle0), 0u),
Dbinding.h140 ptr->Bind(InterfacePtrInfo<Interface>(std::move(pipe.handle0),
/external/libmojo/mojo/public/c/system/
Dthunks.cc201 MojoResult MojoFuseMessagePipes(MojoHandle handle0, MojoHandle handle1) { in MojoFuseMessagePipes() argument
203 return g_thunks.FuseMessagePipes(handle0, handle1); in MojoFuseMessagePipes()
Dmessage_pipe.h257 MojoFuseMessagePipes(MojoHandle handle0, MojoHandle handle1);
Dthunks.h123 MojoResult (*FuseMessagePipes)(MojoHandle handle0, MojoHandle handle1);
/external/libmojo/mojo/public/cpp/bindings/lib/
Dconnector.cc331 message_pipe_ = std::move(dummy_pipe.handle0); in HandleError()

12