Lines Matching refs:EXPECT_EQ
34 EXPECT_EQ(0u, info.GetCtorCallCount());
36 EXPECT_EQ(1u, info.GetCtorCallCount());
39 EXPECT_EQ(0u, info.GetWriteMessageCallCount());
40 EXPECT_EQ(MOJO_RESULT_OK,
43 EXPECT_EQ(1u, info.GetWriteMessageCallCount());
44 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
47 EXPECT_EQ(2u, info.GetWriteMessageCallCount());
49 EXPECT_EQ(0u, info.GetReadMessageCallCount());
51 EXPECT_EQ(MOJO_RESULT_OK,
54 EXPECT_EQ(1u, info.GetReadMessageCallCount());
56 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
59 EXPECT_EQ(2u, info.GetReadMessageCallCount());
60 EXPECT_EQ(MOJO_RESULT_OK,
63 EXPECT_EQ(3u, info.GetReadMessageCallCount());
65 EXPECT_EQ(0u, info.GetWriteDataCallCount());
66 EXPECT_EQ(MOJO_RESULT_UNIMPLEMENTED,
68 EXPECT_EQ(1u, info.GetWriteDataCallCount());
70 EXPECT_EQ(0u, info.GetBeginWriteDataCallCount());
71 EXPECT_EQ(MOJO_RESULT_UNIMPLEMENTED,
73 EXPECT_EQ(1u, info.GetBeginWriteDataCallCount());
75 EXPECT_EQ(0u, info.GetEndWriteDataCallCount());
76 EXPECT_EQ(MOJO_RESULT_UNIMPLEMENTED,
78 EXPECT_EQ(1u, info.GetEndWriteDataCallCount());
80 EXPECT_EQ(0u, info.GetReadDataCallCount());
81 EXPECT_EQ(MOJO_RESULT_UNIMPLEMENTED,
83 EXPECT_EQ(1u, info.GetReadDataCallCount());
85 EXPECT_EQ(0u, info.GetBeginReadDataCallCount());
86 EXPECT_EQ(MOJO_RESULT_UNIMPLEMENTED,
88 EXPECT_EQ(1u, info.GetBeginReadDataCallCount());
90 EXPECT_EQ(0u, info.GetEndReadDataCallCount());
91 EXPECT_EQ(MOJO_RESULT_UNIMPLEMENTED,
93 EXPECT_EQ(1u, info.GetEndReadDataCallCount());
95 EXPECT_EQ(0u, info.GetAddWaiterCallCount());
96 EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION,
99 EXPECT_EQ(1u, info.GetAddWaiterCallCount());
100 EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION,
102 EXPECT_EQ(2u, info.GetAddWaiterCallCount());
103 EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION,
105 EXPECT_EQ(3u, info.GetAddWaiterCallCount());
107 EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION,
109 EXPECT_EQ(4u, info.GetAddWaiterCallCount());
111 EXPECT_EQ(0u, info.GetDtorCallCount());
112 EXPECT_EQ(0u, info.GetCloseCallCount());
113 EXPECT_EQ(0u, info.GetCancelAllWaitersCallCount());
114 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h));
115 EXPECT_EQ(1u, info.GetCancelAllWaitersCallCount());
116 EXPECT_EQ(1u, info.GetCloseCallCount());
117 EXPECT_EQ(1u, info.GetDtorCallCount());
120 EXPECT_EQ(0u, info.GetRemoveWaiterCallCount());
126 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT, core()->Close(MOJO_HANDLE_INVALID));
127 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT, core()->Close(10));
128 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT, core()->Close(1000000000));
133 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h));
134 EXPECT_EQ(1u, info.GetCloseCallCount());
135 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT, core()->Close(h));
136 EXPECT_EQ(1u, info.GetCloseCallCount());
141 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
144 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
154 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
156 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
158 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
161 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
163 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
165 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
171 EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION,
173 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
176 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
179 EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION,
182 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(handles[0]));
183 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(handles[1]));
189 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
191 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
193 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
201 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
210 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
214 EXPECT_EQ(0u, info.GetWriteMessageCallCount());
225 EXPECT_EQ(0u, info.GetWriteMessageCallCount());
228 EXPECT_EQ(MOJO_RESULT_RESOURCE_EXHAUSTED,
233 EXPECT_EQ(0u, info.GetWriteMessageCallCount());
236 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
239 EXPECT_EQ(0u, info.GetWriteMessageCallCount());
242 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
245 EXPECT_EQ(0u, info.GetWriteMessageCallCount());
249 EXPECT_EQ(MOJO_RESULT_BUSY,
252 EXPECT_EQ(0u, info.GetWriteMessageCallCount());
259 EXPECT_EQ(MOJO_RESULT_UNIMPLEMENTED,
262 EXPECT_EQ(1u, info.GetWriteMessageCallCount());
265 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
268 EXPECT_EQ(1u, info.GetWriteMessageCallCount());
272 EXPECT_EQ(MOJO_RESULT_BUSY,
275 EXPECT_EQ(1u, info.GetWriteMessageCallCount());
279 EXPECT_EQ(MOJO_RESULT_BUSY,
282 EXPECT_EQ(1u, info.GetWriteMessageCallCount());
286 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h2));
288 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h));
295 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
303 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
307 EXPECT_EQ(0u, info.GetReadMessageCallCount());
311 EXPECT_EQ(MOJO_RESULT_OK,
315 EXPECT_EQ(1u, info.GetReadMessageCallCount());
317 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h));
328 EXPECT_EQ(MOJO_RESULT_OK, core()->CreateMessagePipe(NULL, &h[0], &h[1]));
337 EXPECT_EQ(MOJO_RESULT_DEADLINE_EXCEEDED,
343 EXPECT_EQ(MOJO_RESULT_SHOULD_WAIT,
347 EXPECT_EQ('a', buffer[0]);
348 EXPECT_EQ(1u, buffer_size);
351 EXPECT_EQ(MOJO_RESULT_OK,
353 EXPECT_EQ(MOJO_RESULT_OK,
359 EXPECT_EQ(1, core()->WaitMany(h, signals, 2, MOJO_DEADLINE_INDEFINITE));
363 EXPECT_EQ(MOJO_RESULT_OK,
370 EXPECT_EQ(0, core()->WaitMany(h, signals, 2, MOJO_DEADLINE_INDEFINITE));
375 EXPECT_EQ(MOJO_RESULT_RESOURCE_EXHAUSTED,
378 EXPECT_EQ(1u, buffer_size);
382 EXPECT_EQ(MOJO_RESULT_OK,
385 EXPECT_EQ('b', buffer[0]);
386 EXPECT_EQ(1u, buffer_size);
389 EXPECT_EQ(MOJO_RESULT_DEADLINE_EXCEEDED,
394 EXPECT_EQ(MOJO_RESULT_OK,
399 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h[0]));
402 EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION,
406 EXPECT_EQ(MOJO_RESULT_OK,
410 EXPECT_EQ(MOJO_RESULT_RESOURCE_EXHAUSTED,
415 EXPECT_EQ
420 EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION,
424 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h[1]));
441 EXPECT_EQ(MOJO_RESULT_OK,
445 EXPECT_EQ(MOJO_RESULT_OK,
450 EXPECT_EQ(MOJO_RESULT_OK,
455 EXPECT_EQ(MOJO_RESULT_OK,
460 EXPECT_EQ(kHelloSize, num_bytes);
462 EXPECT_EQ(0u, num_handles);
466 EXPECT_EQ(MOJO_RESULT_BUSY,
471 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
478 EXPECT_EQ(MOJO_RESULT_OK,
482 EXPECT_EQ(MOJO_RESULT_OK,
487 EXPECT_EQ(MOJO_RESULT_OK,
491 EXPECT_EQ(MOJO_RESULT_OK,
496 EXPECT_EQ(kHelloSize, num_bytes);
498 EXPECT_EQ(0u, num_handles);
501 EXPECT_EQ(MOJO_RESULT_OK,
506 EXPECT_EQ(MOJO_RESULT_OK,
511 EXPECT_EQ(MOJO_RESULT_OK,
516 EXPECT_EQ(kWorldSize, num_bytes);
518 EXPECT_EQ(1u, num_handles);
530 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT, core()->Close(h_passed[1]));
533 EXPECT_EQ(MOJO_RESULT_OK,
538 EXPECT_EQ(MOJO_RESULT_OK,
542 EXPECT_EQ(MOJO_RESULT_OK,
547 EXPECT_EQ(kHelloSize, num_bytes);
549 EXPECT_EQ(0u, num_handles);
551 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_passing[0]));
552 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_passing[1]));
553 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_passed[0]));
554 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_received));
560 EXPECT_EQ(MOJO_RESULT_OK, core()->CreateDataPipe(NULL, &ph, &ch));
567 EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION,
569 EXPECT_EQ(MOJO_RESULT_OK,
573 EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION,
575 EXPECT_EQ(MOJO_RESULT_DEADLINE_EXCEEDED,
581 EXPECT_EQ(MOJO_RESULT_OK,
584 EXPECT_EQ(2u, num_bytes);
587 EXPECT_EQ(MOJO_RESULT_OK,
594 EXPECT_EQ(MOJO_RESULT_OK,
597 EXPECT_EQ('A', elements[0]);
598 EXPECT_EQ(-1, elements[1]);
612 EXPECT_EQ(MOJO_RESULT_BUSY,
620 EXPECT_EQ(MOJO_RESULT_OK, core()->EndWriteData(ph, 3u));
624 EXPECT_EQ(MOJO_RESULT_OK,
626 EXPECT_EQ(4u, num_bytes);
630 EXPECT_EQ(MOJO_RESULT_OUT_OF_RANGE,
637 EXPECT_EQ(MOJO_RESULT_OK,
653 EXPECT_EQ(MOJO_RESULT_BUSY,
658 EXPECT_EQ('D', static_cast<const char*>(read_ptr)[0]);
659 EXPECT_EQ('E', static_cast<const char*>(read_ptr)[1]);
660 EXPECT_EQ(MOJO_RESULT_OK, core()->EndReadData(ch, 2u));
663 EXPECT_EQ(MOJO_RESULT_DEADLINE_EXCEEDED,
669 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(ph));
672 EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION,
675 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(ch));
691 EXPECT_EQ(MOJO_RESULT_OK,
695 EXPECT_EQ(MOJO_RESULT_OK,
699 EXPECT_EQ(MOJO_RESULT_OK,
704 EXPECT_EQ(MOJO_RESULT_OK,
709 EXPECT_EQ(MOJO_RESULT_OK,
714 EXPECT_EQ(kHelloSize, num_bytes);
716 EXPECT_EQ(1u, num_handles);
728 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT, core()->Close(ch));
732 EXPECT_EQ(MOJO_RESULT_OK,
735 EXPECT_EQ(MOJO_RESULT_OK,
738 EXPECT_EQ(MOJO_RESULT_OK,
741 EXPECT_EQ(kWorldSize, num_bytes);
745 EXPECT_EQ(MOJO_RESULT_OK,
750 EXPECT_EQ(MOJO_RESULT_OK,
755 EXPECT_EQ(MOJO_RESULT_OK,
760 EXPECT_EQ(kWorldSize, num_bytes);
762 EXPECT_EQ(1u, num_handles);
774 EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT, core()->Close(ph));
778 EXPECT_EQ(MOJO_RESULT_OK,
781 EXPECT_EQ(MOJO_RESULT_OK,
784 EXPECT_EQ(MOJO_RESULT_OK,
787 EXPECT_EQ(kHelloSize, num_bytes);
802 EXPECT_EQ(MOJO_RESULT_BUSY,
809 EXPECT_EQ(MOJO_RESULT_OK,
815 EXPECT_EQ(MOJO_RESULT_OK,
820 EXPECT_EQ(MOJO_RESULT_OK,
825 EXPECT_EQ(kHelloSize, num_bytes);
827 EXPECT_EQ(1u, num_handles);
833 EXPECT_EQ(MOJO_RESULT_OK, core()->EndWriteData(ph, 1));
836 EXPECT_EQ(MOJO_RESULT_OK,
845 EXPECT_EQ(MOJO_RESULT_BUSY,
852 EXPECT_EQ(MOJO_RESULT_OK,
858 EXPECT_EQ(MOJO_RESULT_OK,
863 EXPECT_EQ(MOJO_RESULT_OK,
868 EXPECT_EQ(kWorldSize, num_bytes);
870 EXPECT_EQ(1u, num_handles);
875 EXPECT_EQ('x', static_cast<const char*>(read_ptr)[0]);
876 EXPECT_EQ(MOJO_RESULT_OK, core()->EndReadData(ch, 1));
878 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_passing[0]));
879 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h_passing[1]));
880 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(ph));
881 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(ch));