Lines Matching refs:TestMessage
35 Deferred<TestMessage> deferred; in TEST()
37 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST()
46 AsyncResult<TestMessage> res = AsyncResult<TestMessage>::Create(); in TEST()
62 Deferred<TestMessage> deferred; in TEST()
64 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST()
72 AsyncResult<TestMessage> res = AsyncResult<TestMessage>::Create(); in TEST()
84 Deferred<TestMessage> deferred; in TEST()
85 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST()
98 Deferred<TestMessage> deferred; in TEST()
100 [num_callbacks](AsyncResult<TestMessage>) { (*num_callbacks)++; }); in TEST() argument
108 deferred.Bind([](AsyncResult<TestMessage>) {}); in TEST() argument
113 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST()
118 AsyncResult<TestMessage> res = AsyncResult<TestMessage>::Create(); in TEST()
126 Deferred<TestMessage> deferred; in TEST()
128 std::function<void(AsyncResult<TestMessage>)> callback = in TEST()
129 [num_callbacks](AsyncResult<TestMessage> msg) { in TEST()
140 AsyncResult<TestMessage> res = AsyncResult<TestMessage>::Create(); in TEST()
143 AsyncResult<TestMessage> res_moved(std::move(res)); in TEST()
148 Deferred<TestMessage> deferred_moved(std::move(deferred)); in TEST()
160 res = AsyncResult<TestMessage>::Create(); in TEST()
169 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST()
173 { Deferred<TestMessage> scoped_deferred(std::move(deferred)); } in TEST()
182 Deferred<TestMessage> deferred; in TEST()
184 std::function<void(AsyncResult<TestMessage>)> callback = in TEST()
185 [num_callbacks](AsyncResult<TestMessage> msg) { in TEST()
196 AsyncResult<TestMessage> res = AsyncResult<TestMessage>::Create(); in TEST()
201 AsyncResult<TestMessage> res_moved(std::move(res)); in TEST()
205 Deferred<TestMessage> deferred_moved(std::move(deferred)); in TEST()
206 AsyncResult<TestMessage> res = AsyncResult<TestMessage>::Create(); in TEST()
225 Deferred<TestMessage> deferred; in TEST()
226 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST()
233 AsyncResult<TestMessage> res = AsyncResult<TestMessage>::Create(); in TEST()
239 { Deferred<TestMessage> deferred_moved = std::move(deferred); } in TEST()
251 Deferred<TestMessage> deferred; in TEST()
253 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST()
265 std::unique_ptr<TestMessage> msg(new TestMessage()); in TEST()