Home
last modified time | relevance | path

Searched refs:MOJO_RESULT_OK (Results 1 – 25 of 85) sorted by relevance

1234

/external/chromium_org/mojo/embedder/
Dembedder_unittest.cc132 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
142 MOJO_RESULT_OK, in TEST_F()
148 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
158 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(server_mp)); in TEST_F()
159 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(client_mp)); in TEST_F()
188 EXPECT_EQ(MOJO_RESULT_OK, MojoCreateMessagePipe(nullptr, &h0, &h1)); in TEST_F()
192 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
202 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
213 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
223 MOJO_RESULT_OK, in TEST_F()
[all …]
/external/chromium_org/mojo/system/
Dlocal_data_pipe_unittest.cc29 MOJO_RESULT_OK, in TEST()
45 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
60 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
75 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
91 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
108 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
126 EXPECT_EQ(MOJO_RESULT_OK, dp->ConsumerQueryData(MakeUserPointer(&num_bytes))); in TEST()
145 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
154 EXPECT_EQ(MOJO_RESULT_OK, dp->ConsumerQueryData(MakeUserPointer(&num_bytes))); in TEST()
162 MOJO_RESULT_OK, in TEST()
[all …]
Dshared_buffer_dispatcher_unittest.cc36 EXPECT_EQ(MOJO_RESULT_OK, in RevalidateCreateOptions()
61 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
80 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
118 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
130 MOJO_RESULT_OK, in TEST_F()
140 MOJO_RESULT_OK, in TEST_F()
147 EXPECT_EQ(MOJO_RESULT_OK, dispatcher->Close()); in TEST_F()
157 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
167 MOJO_RESULT_OK, in TEST_F()
175 MOJO_RESULT_OK, in TEST_F()
[all …]
Dcore_unittest.cc44 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
55 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
63 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
186 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h)); in TEST_F()
205 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h)); in TEST_F()
367 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(handles[0])); in TEST_F()
368 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(handles[1])); in TEST_F()
395 EXPECT_NE(MOJO_RESULT_OK, in TEST_F()
494 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h2)); in TEST_F()
496 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h)); in TEST_F()
[all …]
Dremote_message_pipe_unittest.cc202 MOJO_RESULT_OK, in TEST_F()
206 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
214 EXPECT_EQ(MOJO_RESULT_OK, waiter.Wait(MOJO_DEADLINE_INDEFINITE, &context)); in TEST_F()
224 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
238 MOJO_RESULT_OK, in TEST_F()
241 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
248 EXPECT_EQ(MOJO_RESULT_OK, waiter.Wait(MOJO_DEADLINE_INDEFINITE, &context)); in TEST_F()
258 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
278 if (result == MOJO_RESULT_OK) { in TEST_F()
321 MOJO_RESULT_OK, in TEST_F()
[all …]
Dmessage_pipe_dispatcher_unittest.cc67 ASSERT_EQ(MOJO_RESULT_OK, in TEST()
70 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
76 EXPECT_EQ(MOJO_RESULT_OK, w.Wait(MOJO_DEADLINE_INDEFINITE, &context)); in TEST()
100 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
111 ASSERT_EQ(MOJO_RESULT_OK, in TEST()
124 ASSERT_EQ(MOJO_RESULT_OK, in TEST()
138 EXPECT_EQ(MOJO_RESULT_OK, d0->Close()); in TEST()
139 EXPECT_EQ(MOJO_RESULT_OK, d1->Close()); in TEST()
164 EXPECT_EQ(MOJO_RESULT_OK, d0->Close()); in TEST()
165 EXPECT_EQ(MOJO_RESULT_OK, d1->Close()); in TEST()
[all …]
Dsimple_dispatcher_unittest.cc116 ASSERT_EQ(MOJO_RESULT_OK, in TEST()
120 EXPECT_EQ(MOJO_RESULT_OK, w.Wait(MOJO_DEADLINE_INDEFINITE, &context)); in TEST()
132 ASSERT_EQ(MOJO_RESULT_OK, in TEST()
136 EXPECT_EQ(MOJO_RESULT_OK, w.Wait(0, &context)); in TEST()
148 ASSERT_EQ(MOJO_RESULT_OK, in TEST()
152 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
165 ASSERT_EQ(MOJO_RESULT_OK, in TEST()
180 ASSERT_EQ(MOJO_RESULT_OK, in TEST()
194 EXPECT_EQ(MOJO_RESULT_OK, d->Close()); in TEST()
220 ASSERT_EQ(MOJO_RESULT_OK, in TEST()
[all …]
Dmultiprocess_message_pipe_unittest.cc62 if (result != MOJO_RESULT_OK) { in MOJO_MULTIPROCESS_TEST_CHILD_MAIN()
81 MOJO_RESULT_OK); in MOJO_MULTIPROCESS_TEST_CHILD_MAIN()
96 MOJO_RESULT_OK); in MOJO_MULTIPROCESS_TEST_CHILD_MAIN()
112 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
120 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
136 MOJO_RESULT_OK); in TEST_F()
159 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
168 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
177 EXPECT_EQ(MOJO_RESULT_OK, in TEST_F()
193 MOJO_RESULT_OK); in TEST_F()
[all …]
Dmessage_pipe_unittest.cc67 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
78 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
102 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
110 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
149 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
164 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
188 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
212 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
246 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
280 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
[all …]
Dcore.cc112 if (result != MOJO_RESULT_OK) in Close()
190 if (result != MOJO_RESULT_OK) in CreateMessagePipe()
217 return MOJO_RESULT_OK; in CreateMessagePipe()
271 if (result != MOJO_RESULT_OK) in WriteMessage()
285 if (rv == MOJO_RESULT_OK) { in WriteMessage()
318 DCHECK_EQ(rv, MOJO_RESULT_OK); in ReadMessage()
340 if (rv == MOJO_RESULT_OK) in ReadMessage()
358 if (result != MOJO_RESULT_OK) in CreateDataPipe()
387 return MOJO_RESULT_OK; in CreateDataPipe()
465 if (result != MOJO_RESULT_OK) in CreateSharedBuffer()
[all …]
Ddata_pipe.cc37 return MOJO_RESULT_OK; in ValidateCreateOptions()
44 return MOJO_RESULT_OK; in ValidateCreateOptions()
53 return MOJO_RESULT_OK; in ValidateCreateOptions()
68 return MOJO_RESULT_OK; in ValidateCreateOptions()
76 return MOJO_RESULT_OK; in ValidateCreateOptions()
117 return MOJO_RESULT_OK; // Nothing to do. in ProducerWriteData()
153 if (rv != MOJO_RESULT_OK) in ProducerBeginWriteData()
160 return MOJO_RESULT_OK; in ProducerBeginWriteData()
223 return MOJO_RESULT_OK; in ProducerAddWaiter()
275 return MOJO_RESULT_OK; // Nothing to do. in ConsumerReadData()
[all …]
Dshared_buffer_dispatcher.cc45 return MOJO_RESULT_OK; in ValidateCreateOptions()
52 return MOJO_RESULT_OK; in ValidateCreateOptions()
61 return MOJO_RESULT_OK; in ValidateCreateOptions()
81 return MOJO_RESULT_OK; in Create()
160 return MOJO_RESULT_OK; in ValidateDuplicateOptions()
168 return MOJO_RESULT_OK; in ValidateDuplicateOptions()
177 return MOJO_RESULT_OK; in ValidateDuplicateOptions()
202 if (result != MOJO_RESULT_OK) in DuplicateBufferHandleImplNoLock()
206 return MOJO_RESULT_OK; in DuplicateBufferHandleImplNoLock()
232 return MOJO_RESULT_OK; in MapBufferImplNoLock()
Dmessage_pipe_perftest.cc55 MOJO_RESULT_OK); in WriteWaitThenRead()
58 MOJO_RESULT_OK); in WriteWaitThenRead()
66 MOJO_RESULT_OK); in WriteWaitThenRead()
76 MOJO_RESULT_OK); in SendQuitMessage()
124 if (result != MOJO_RESULT_OK) { in MOJO_MULTIPROCESS_TEST_CHILD_MAIN()
136 MOJO_RESULT_OK); in MOJO_MULTIPROCESS_TEST_CHILD_MAIN()
147 MOJO_RESULT_OK); in MOJO_MULTIPROCESS_TEST_CHILD_MAIN()
Ddata_pipe_unittest.cc36 EXPECT_EQ(MOJO_RESULT_OK, in RevalidateCreateOptions()
63 MOJO_RESULT_OK, in TEST()
75 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
97 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
114 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
136 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
157 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
177 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
200 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
221 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
[all …]
Dlocal_data_pipe.cc101 return MOJO_RESULT_OK; in ProducerWriteDataImplNoLock()
142 return MOJO_RESULT_OK; in ProducerBeginWriteDataImplNoLock()
152 return MOJO_RESULT_OK; in ProducerEndWriteDataImplNoLock()
212 return MOJO_RESULT_OK; in ConsumerReadDataImplNoLock()
240 return MOJO_RESULT_OK; in ConsumerDiscardDataImplNoLock()
247 return MOJO_RESULT_OK; in ConsumerQueryDataImplNoLock()
272 return MOJO_RESULT_OK; in ConsumerBeginReadDataImplNoLock()
281 return MOJO_RESULT_OK; in ConsumerEndReadDataImplNoLock()
Dwaiter_unittest.cc106 thread.waiter()->Awake(MOJO_RESULT_OK, 1); in TEST()
108 EXPECT_EQ(MOJO_RESULT_OK, result); in TEST()
167 thread.waiter()->Awake(MOJO_RESULT_OK, 5); in TEST()
169 EXPECT_EQ(MOJO_RESULT_OK, result); in TEST()
254 thread.waiter()->Awake(MOJO_RESULT_OK, 1); in TEST()
257 EXPECT_EQ(MOJO_RESULT_OK, result); in TEST()
266 thread.waiter()->Awake(MOJO_RESULT_OK, 4); in TEST()
291 thread.waiter()->Awake(MOJO_RESULT_OK, 8); in TEST()
/external/chromium_org/mojo/public/c/system/tests/
Dcore_unittest.cc87 EXPECT_EQ(MOJO_RESULT_OK, MojoCreateMessagePipe(NULL, &h0, &h1)); in TEST()
96 EXPECT_EQ(MOJO_RESULT_OK, MojoWait(h0, MOJO_HANDLE_SIGNAL_WRITABLE, 0)); in TEST()
109 MOJO_RESULT_OK, in TEST()
115 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
121 MOJO_RESULT_OK, in TEST()
132 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h0)); in TEST()
140 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h1)); in TEST()
162 EXPECT_EQ(MOJO_RESULT_OK, MojoCreateDataPipe(NULL, &hp, &hc)); in TEST()
171 EXPECT_EQ(MOJO_RESULT_OK, MojoWait(hp, MOJO_HANDLE_SIGNAL_WRITABLE, 0)); in TEST()
189 MOJO_RESULT_OK, in TEST()
[all …]
Dcore_perftest.cc42 if (result == MOJO_RESULT_OK) { in Run()
79 if (result == MOJO_RESULT_OK) { in Run()
87 if (result == MOJO_RESULT_OK) { in Run()
123 assert(result == MOJO_RESULT_OK); in MessagePipe_CreateAndClose()
125 assert(result == MOJO_RESULT_OK); in MessagePipe_CreateAndClose()
127 assert(result == MOJO_RESULT_OK); in MessagePipe_CreateAndClose()
139 assert(result == MOJO_RESULT_OK); in MessagePipe_WriteAndRead()
147 assert(result == MOJO_RESULT_OK); in MessagePipe_WriteAndRead()
170 assert(result == MOJO_RESULT_OK); in DoMessagePipeThreadedTest()
195 assert(result == MOJO_RESULT_OK); in DoMessagePipeThreadedTest()
[all …]
Dcore_unittest_pure_c.c54 EXPECT_NE(MOJO_RESULT_OK, MojoClose(handle0)); in MinimalCTest()
61 EXPECT_EQ(MOJO_RESULT_OK, MojoCreateMessagePipe(NULL, &handle0, &handle1)); in MinimalCTest()
67 EXPECT_EQ(MOJO_RESULT_OK, in MinimalCTest()
76 MOJO_RESULT_OK, in MinimalCTest()
80 EXPECT_EQ(MOJO_RESULT_OK, in MinimalCTest()
90 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(handle0)); in MinimalCTest()
91 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(handle1)); in MinimalCTest()
/external/chromium_org/mojo/public/cpp/system/tests/
Dcore_unittest.cc200 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
205 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
210 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
226 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
238 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
247 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
255 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
269 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
277 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
309 EXPECT_EQ(MOJO_RESULT_OK, in TEST()
[all …]
/external/chromium_org/ipc/mojo/
Dipc_channel_mojo_readers.cc109 if (write_result != MOJO_RESULT_OK) { in OnMessageReceived()
142 if (read_result != MOJO_RESULT_OK) { in Send()
155 if (MOJO_RESULT_OK != write_result) { in Send()
200 if (result != MOJO_RESULT_OK) { in Connect()
216 if (MOJO_RESULT_OK != create_result) { in SendHelloRequest()
230 if (MOJO_RESULT_OK != write_result) { in SendHelloRequest()
237 return MOJO_RESULT_OK; in SendHelloRequest()
253 return MOJO_RESULT_OK; in RespondHelloResponse()
258 if (result != MOJO_RESULT_OK) in OnMessageReceived()
293 if (MOJO_RESULT_OK != write_result) { in RespondHelloRequest()
[all …]
/external/chromium_org/mojo/public/cpp/bindings/lib/
Dconnector.cc57 if (rv != MOJO_RESULT_OK) { in WaitForIncomingMessage()
62 return (rv == MOJO_RESULT_OK); in WaitForIncomingMessage()
85 case MOJO_RESULT_OK: in Accept()
127 if (result != MOJO_RESULT_OK) { in OnHandleReady()
168 if (rv != MOJO_RESULT_OK || in ReadSingleMessage()
/external/chromium_org/mojo/public/cpp/test_support/lib/
Dtest_utils.cc21 return rv == MOJO_RESULT_OK; in WriteTextMessage()
42 if (rv != MOJO_RESULT_OK) in ReadTextMessage()
58 return rv == MOJO_RESULT_OK; in ReadTextMessage()
64 return rv == MOJO_RESULT_OK; in DiscardMessage()
/external/chromium_org/mojo/public/cpp/environment/tests/
Dasync_waiter_unittest.cc20 TestAsyncWaitCallback() : result_count_(0), last_result_(MOJO_RESULT_OK) { in TestAsyncWaitCallback()
79 EXPECT_EQ(MOJO_RESULT_OK, callback.last_result()); in TEST_F()
100 EXPECT_EQ(MOJO_RESULT_OK, callback1.last_result()); in TEST_F()
102 EXPECT_EQ(MOJO_RESULT_OK, callback2.last_result()); in TEST_F()
/external/chromium_org/device/serial/
Ddata_sink_receiver.cc145 if (result != MOJO_RESULT_OK) { in OnDoneWaiting()
153 if (result == MOJO_RESULT_OK) { in OnDoneWaiting()
166 if (result != MOJO_RESULT_OK) { in OnDoneWaiting()
194 if (result != MOJO_RESULT_OK) { in DoneInternal()
299 if (result != MOJO_RESULT_OK) in Flush()
303 return bytes_to_flush_ == 0 ? MOJO_RESULT_OK : MOJO_RESULT_SHOULD_WAIT; in Flush()

1234