Home
last modified time | relevance | path

Searched refs:MOJO_HANDLE_INVALID (Results 1 – 20 of 20) sorted by relevance

/external/libchrome/mojo/public/c/system/tests/
Dcore_api_unittest.cc43 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT, MojoClose(MOJO_HANDLE_INVALID)); in TEST()
46 h0 = MOJO_HANDLE_INVALID; in TEST()
69 h1 = MOJO_HANDLE_INVALID; in TEST()
80 h0 = MOJO_HANDLE_INVALID; in TEST()
81 h1 = MOJO_HANDLE_INVALID; in TEST()
83 EXPECT_NE(h0, MOJO_HANDLE_INVALID); in TEST()
84 EXPECT_NE(h1, MOJO_HANDLE_INVALID); in TEST()
157 hp = MOJO_HANDLE_INVALID; in TEST()
158 hc = MOJO_HANDLE_INVALID; in TEST()
160 EXPECT_NE(hp, MOJO_HANDLE_INVALID); in TEST()
[all …]
Dcore_unittest_pure_c.c49 handle0 = MOJO_HANDLE_INVALID; in MinimalCTest()
55 handle1 = MOJO_HANDLE_INVALID; in MinimalCTest()
/external/libchrome/mojo/core/
Dembedder_unittest.cc109 client_mp2 = MOJO_HANDLE_INVALID; in TEST_F()
113 EXPECT_NE(MOJO_HANDLE_INVALID, client_mp2); in TEST_F()
128 EXPECT_NE(server_mp, MOJO_HANDLE_INVALID); in TEST_F()
129 EXPECT_NE(client_mp, MOJO_HANDLE_INVALID); in TEST_F()
141 h1 = MOJO_HANDLE_INVALID; in TEST_F()
149 EXPECT_NE(h1, MOJO_HANDLE_INVALID); in TEST_F()
204 mp1 = MOJO_HANDLE_INVALID; in TEST_F()
207 MojoHandle mp2 = MOJO_HANDLE_INVALID; in TEST_F()
256 mp2 = MOJO_HANDLE_INVALID; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
290 MojoHandle sb2 = MOJO_HANDLE_INVALID; in TEST_F()
[all …]
Dhandle_table.cc53 if (next_available_handle_ == MOJO_HANDLE_INVALID) in AddDispatcher()
54 return MOJO_HANDLE_INVALID; in AddDispatcher()
68 if (next_available_handle_ == MOJO_HANDLE_INVALID) in AddDispatchersFromTransit()
77 MojoHandle handle = MOJO_HANDLE_INVALID; in AddDispatchersFromTransit()
Dinvitation_unittest.cc123 MojoAttachMessagePipeToInvitation(MOJO_HANDLE_INVALID, "x", 1, in TEST_F()
135 MojoExtractMessagePipeFromInvitation(MOJO_HANDLE_INVALID, "x", 1, in TEST_F()
160 MojoSendInvitation(MOJO_HANDLE_INVALID, nullptr, &valid_endpoint, in TEST_F()
218 MojoHandle pipe0 = MOJO_HANDLE_INVALID; in TEST_F()
221 EXPECT_NE(MOJO_HANDLE_INVALID, pipe0); in TEST_F()
223 MojoHandle pipe1 = MOJO_HANDLE_INVALID; in TEST_F()
226 EXPECT_NE(MOJO_HANDLE_INVALID, pipe1); in TEST_F()
243 MojoHandle pipe = MOJO_HANDLE_INVALID; in TEST_F()
246 EXPECT_NE(MOJO_HANDLE_INVALID, pipe); in TEST_F()
260 MojoHandle pipe0 = MOJO_HANDLE_INVALID; in TEST_F()
[all …]
Dcore_unittest.cc51 ASSERT_NE(h, MOJO_HANDLE_INVALID); in TEST_F()
103 ASSERT_EQ(MOJO_RESULT_INVALID_ARGUMENT, core()->Close(MOJO_HANDLE_INVALID)); in TEST_F()
123 core()->WriteMessage(MOJO_HANDLE_INVALID, 0, nullptr)); in TEST_F()
130 core()->ReadMessage(MOJO_HANDLE_INVALID, nullptr, nullptr)); in TEST_F()
148 ASSERT_NE(h[0], MOJO_HANDLE_INVALID); in TEST_F()
149 ASSERT_NE(h[1], MOJO_HANDLE_INVALID); in TEST_F()
284 ASSERT_NE(ph, MOJO_HANDLE_INVALID); in TEST_F()
285 ASSERT_NE(ch, MOJO_HANDLE_INVALID); in TEST_F()
Dcore.cc325 if (*trap_handle == MOJO_HANDLE_INVALID) in CreateTrap()
540 if (*message_pipe_handle0 == MOJO_HANDLE_INVALID) in CreateMessagePipe()
545 if (*message_pipe_handle1 == MOJO_HANDLE_INVALID) { in CreateMessagePipe()
724 if (*data_pipe_producer_handle == MOJO_HANDLE_INVALID || in CreateDataPipe()
725 *data_pipe_consumer_handle == MOJO_HANDLE_INVALID) { in CreateDataPipe()
726 if (*data_pipe_producer_handle != MOJO_HANDLE_INVALID) { in CreateDataPipe()
884 if (*shared_buffer_handle == MOJO_HANDLE_INVALID) { in CreateSharedBuffer()
910 if (*new_buffer_handle == MOJO_HANDLE_INVALID) { in DuplicateBufferHandle()
1000 if (h == MOJO_HANDLE_INVALID) in WrapPlatformHandle()
1103 if (h == MOJO_HANDLE_INVALID) { in WrapPlatformSharedMemoryRegion()
[all …]
Dmultiprocess_message_pipe_unittest.cc942 CHECK_NE(p, MOJO_HANDLE_INVALID); in DEFINE_TEST_CLIENT_WITH_PIPE()
948 CHECK_EQ(p, MOJO_HANDLE_INVALID); in DEFINE_TEST_CLIENT_WITH_PIPE()
950 CHECK_NE(p, MOJO_HANDLE_INVALID); in DEFINE_TEST_CLIENT_WITH_PIPE()
956 CHECK_EQ(p, MOJO_HANDLE_INVALID); in DEFINE_TEST_CLIENT_WITH_PIPE()
958 CHECK_NE(p, MOJO_HANDLE_INVALID); in DEFINE_TEST_CLIENT_WITH_PIPE()
965 CHECK_EQ(p, MOJO_HANDLE_INVALID); in DEFINE_TEST_CLIENT_WITH_PIPE()
967 CHECK_NE(p, MOJO_HANDLE_INVALID); in DEFINE_TEST_CLIENT_WITH_PIPE()
974 CHECK_EQ(p, MOJO_HANDLE_INVALID); in DEFINE_TEST_CLIENT_WITH_PIPE()
977 CHECK_NE(p, MOJO_HANDLE_INVALID); in DEFINE_TEST_CLIENT_WITH_PIPE()
978 CHECK_NE(carrier, MOJO_HANDLE_INVALID); in DEFINE_TEST_CLIENT_WITH_PIPE()
[all …]
Dmessage_pipe_unittest.cc40 if (pipe0_ != MOJO_HANDLE_INVALID) in ~MessagePipeTest()
42 if (pipe1_ != MOJO_HANDLE_INVALID) in ~MessagePipeTest()
191 pipe0_ = MOJO_HANDLE_INVALID; in TEST_F()
240 pipe0_ = pipe1_ = MOJO_HANDLE_INVALID; in TEST_F()
277 pipe0_ = MOJO_HANDLE_INVALID; in TEST_F()
Ddata_pipe_unittest.cc51 : producer_(MOJO_HANDLE_INVALID), consumer_(MOJO_HANDLE_INVALID) {} in DataPipeTest()
54 if (producer_ != MOJO_HANDLE_INVALID) in ~DataPipeTest()
56 if (consumer_ != MOJO_HANDLE_INVALID) in ~DataPipeTest()
141 producer_ = MOJO_HANDLE_INVALID; in CloseProducer()
147 consumer_ = MOJO_HANDLE_INVALID; in CloseConsumer()
1568 producer_ = MOJO_HANDLE_INVALID; in TEST_F()
1638 consumer_ = MOJO_HANDLE_INVALID; in TEST_F()
1777 producer_ = MOJO_HANDLE_INVALID; in TEST_F()
1802 MojoHandle consumer = MOJO_HANDLE_INVALID; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
1834 MojoHandle producer = MOJO_HANDLE_INVALID; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
Dinvitation_dispatcher.cc59 if (*message_pipe_handle == MOJO_HANDLE_INVALID) in ExtractMessagePipe()
Dsignals_unittest.cc23 MojoQueryHandleSignalsState(MOJO_HANDLE_INVALID, &state)); in TEST_F()
Dquota_unittest.cc24 MojoSetQuota(MOJO_HANDLE_INVALID, in TEST_F()
Duser_message_impl.cc323 if (handle != MOJO_HANDLE_INVALID) in ~UserMessageImpl()
Dmessage_unittest.cc52 MojoMessageHandle handle = MOJO_HANDLE_INVALID; in UnwrapMessageHandle()
Dtrap_unittest.cc141 MojoArmTrap(MOJO_HANDLE_INVALID, nullptr, nullptr, nullptr)); in TEST_F()
/external/libchrome/mojo/core/test/
Dmojo_test_base.cc103 CHECK_NE(*p0, MOJO_HANDLE_INVALID); in CreateMessagePipe()
104 CHECK_NE(*p1, MOJO_HANDLE_INVALID); in CreateMessagePipe()
158 *handle = MOJO_HANDLE_INVALID; in ReadMessageWithOptionalHandle()
250 CHECK_NE(*p0, MOJO_HANDLE_INVALID); in CreateDataPipe()
251 CHECK_NE(*p1, MOJO_HANDLE_INVALID); in CreateDataPipe()
/external/libchrome/mojo/public/c/system/
Dtypes.h28 const MojoHandle MOJO_HANDLE_INVALID = 0; variable
30 #define MOJO_HANDLE_INVALID ((MojoHandle)0) macro
/external/libchrome/mojo/public/cpp/system/
Dhandle.h152 const MojoHandle kInvalidHandleValue = MOJO_HANDLE_INVALID;
/external/libchrome/mojo/public/cpp/system/tests/
Dcore_unittest.cc39 EXPECT_EQ(MOJO_HANDLE_INVALID, kInvalidHandleValue); in TEST()