Lines Matching refs:unexpected

26 using android::base::unexpected;
164 exp_int::unexpected_type unexp = unexpected(10); in TEST()
167 exp_double::unexpected_type unexp2 = unexpected(10.5f); in TEST()
170 exp_string::unexpected_type unexp3 = unexpected(std::string("error")); in TEST()
173 exp_void::unexpected_type unexp4 = unexpected(10); in TEST()
187 exp_int e = unexpected(10); in TEST()
188 exp_double e2 = unexpected(10.5f); in TEST()
189 exp_string e3 = unexpected(std::string("error")); in TEST()
190 exp_void e4 = unexpected(10); in TEST()
248 exp_void e5 = unexpected(10); in TEST()
270 exp_void e4 = unexpected(10); in TEST()
278 e = unexpected(30); in TEST()
283 e2 = unexpected(10.5f); in TEST()
288 e3 = unexpected("world"); in TEST()
293 e4 = unexpected(10); in TEST()
311 e = unexpected(std::move(world)); in TEST()
334 exp_void e = unexpected(10); in TEST()
359 exp_int e = unexpected(10); in TEST()
360 exp_int e2 = unexpected(20); in TEST()
367 exp_void e3 = unexpected(10); in TEST()
368 exp_void e4 = unexpected(20); in TEST()
378 exp_int e2 = unexpected(30); in TEST()
386 exp_void e4 = unexpected(10); in TEST()
414 exp_int e2 = unexpected(10); in TEST()
424 exp_int e2 = unexpected(10); in TEST()
456 exp_int e2 = unexpected(10); in TEST()
463 exp_void e4 = unexpected(10); in TEST()
471 exp_int e = unexpected(10); in TEST()
472 exp_int e2 = unexpected(10); in TEST()
478 exp_void e3 = unexpected(10); in TEST()
479 exp_void e4 = unexpected(10); in TEST()
487 exp_int e = unexpected(10); in TEST()
488 exp_int e2 = unexpected(20); in TEST()
494 exp_void e3 = unexpected(10); in TEST()
495 exp_void e4 = unexpected(20); in TEST()
503 exp_int e = unexpected(10); in TEST()
510 exp_void e2 = unexpected(10); in TEST()
519 exp_int e = unexpected(10); in TEST()
526 exp_void e2 = unexpected(10); in TEST()
568 return unexpected(E("divide by zero", -1)); in TEST()
587 return unexpected(42); in TEST()
601 return unexpected(10); in TEST()
795 expected<exp_string, std::string> e2 = unexpected("world"); in TEST()
800 expected<exp_string, std::string> e3 = exp_string(unexpected("world")); in TEST()
832 static_assert(exp_int(unexpected(3)).error() == 3); in TEST()
857 expected<AssertNotConstructed, int> e(unexpected(42)); in TEST()
865 exp_ptr e2(unexpected(std::make_unique<int>(4))); in TEST()