| /system/ulib/fit/include/lib/fit/ |
| A D | function_internal.h | 18 template <typename Result, typename... Args> 21 Result (*invoke)(void* bits, Args... args); 29 template <typename Result, typename... Args> 31 static Result invoke(void* bits, Args... args) { 35 static const target_ops<Result, Args...> ops; 44 template <typename Result, typename... Args> 45 constexpr target_ops<Result, Args...> target<decltype(nullptr), true, Result, Args...>::ops = { 70 static const target_ops<Result, Args...> ops; 78 constexpr target_ops<Result, Args...> target<Callable, true, Result, Args...>::ops = { 104 static const target_ops<Result, Args...> ops; [all …]
|
| A D | function.h | 17 typename Result, typename... Args> 72 typename Result, typename... Args> 73 class function_impl<inline_target_size, require_inline, Result(Args...)> final { 74 using ops_type = const ::fit::internal::target_ops<Result, Args...>*; 83 Result, Args...>; 88 using result_type = Result; 102 function_impl(Result (*target)(Args...)) { in function_impl() 139 Result operator()(Args... args) const { in operator() 220 Result operator()(Args... args) { in share() 279 void swap(function_impl<inline_target_size, require_inline, Result, Args...>& a, in swap() argument [all …]
|
| A D | promise_internal.h | 34 template <typename Result>
|
| /system/ulib/runtests-utils/ |
| A D | posix-run-test.cpp | 39 fbl::unique_ptr<Result> PosixRunTest(const char* argv[], in PosixRunTest() 52 return fbl::make_unique<Result>(path, FAILED_TO_LAUNCH, 0); in PosixRunTest() 82 return fbl::make_unique<Result>(path, FAILED_DURING_IO, 0); in PosixRunTest() 89 return fbl::make_unique<Result>(path, FAILED_TO_LAUNCH, 0); in PosixRunTest() 95 return fbl::make_unique<Result>(path, FAILED_TO_LAUNCH, 0); in PosixRunTest() 105 return fbl::make_unique<Result>(path, FAILED_TO_LAUNCH, 0); in PosixRunTest() 110 return fbl::make_unique<Result>(path, FAILED_TO_WAIT, 0); in PosixRunTest() 116 return fbl::make_unique<Result>(path, launch_status, return_code); in PosixRunTest() 120 return fbl::make_unique<Result>(path, FAILED_NONZERO_RETURN_CODE, 1); in PosixRunTest() 124 return fbl::make_unique<Result>(path, FAILED_NONZERO_RETURN_CODE, 1); in PosixRunTest() [all …]
|
| A D | fuchsia-run-test.cpp | 164 fbl::unique_ptr<Result> FuchsiaRunTest(const char* argv[], in FuchsiaRunTest() 225 return fbl::make_unique<Result>(path, FAILED_UNKNOWN, 0); in FuchsiaRunTest() 240 return fbl::make_unique<Result>(path, FAILED_UNKNOWN, 0); in FuchsiaRunTest() 245 return fbl::make_unique<Result>(path, FAILED_UNKNOWN, 0); in FuchsiaRunTest() 278 return fbl::make_unique<Result>(path, FAILED_TO_LAUNCH, 0); in FuchsiaRunTest() 286 return fbl::make_unique<Result>(path, FAILED_TO_LAUNCH, 0); in FuchsiaRunTest() 299 return fbl::make_unique<Result>(path, FAILED_TO_LAUNCH, 0); in FuchsiaRunTest() 326 return fbl::make_unique<Result>(path, FAILED_TO_WAIT, 0); in FuchsiaRunTest() 340 fbl::unique_ptr<Result> result; in FuchsiaRunTest() 343 result = fbl::make_unique<Result>(path, SUCCESS, 0); in FuchsiaRunTest() [all …]
|
| A D | runtests-utils.cpp | 103 int WriteSummaryJSON(const fbl::Vector<fbl::unique_ptr<Result>>& results, in WriteSummaryJSON() 109 for (const fbl::unique_ptr<Result>& result : results) { in WriteSummaryJSON() 298 fbl::Vector<fbl::unique_ptr<Result>>* results) { in RunTests() 341 fbl::unique_ptr<Result> result = RunTest(argv.get(), output_dir_for_test, in RunTests()
|
| A D | discover-and-run-tests.cpp | 293 fbl::Vector<fbl::unique_ptr<Result>> results; in DiscoverAndRunTests() 329 for (const fbl::unique_ptr<Result>& result : results) { in DiscoverAndRunTests()
|
| /system/ulib/fbl/include/fbl/ |
| A D | function.h | 51 template <typename Result, typename... Args> 61 virtual Result operator()(Args... args) const = 0; 66 template <typename Result, typename... Args> 76 Result operator()(Args... args) const final { 85 template <typename Callable, typename Result, typename... Args> 100 Result operator()(Args... args) const final { 112 template <typename Callable, typename Result, typename... Args> 127 Result operator()(Args... args) const final { 142 template <size_t target_size, typename Result, typename... Args> 207 using result_type = Result; [all …]
|
| /system/ulib/runtests-utils/include/runtests-utils/ |
| A D | runtests-utils.h | 56 struct Result { struct 66 Result(const char* name_arg, LaunchStatus launch_status_arg, int64_t return_code_arg) in Result() argument 79 typedef fbl::unique_ptr<Result> (*RunTestFn)(const char* argv[], 121 int WriteSummaryJSON(const fbl::Vector<fbl::unique_ptr<Result>>& results, 158 fbl::Vector<fbl::unique_ptr<Result>>* results);
|
| A D | posix-run-test.h | 20 fbl::unique_ptr<Result> PosixRunTest(const char* argv[],
|
| A D | fuchsia-run-test.h | 45 fbl::unique_ptr<Result> FuchsiaRunTest(const char* argv[],
|
| /system/utest/fbl/ |
| A D | ref_ptr_tests.cpp | 276 enum class Result { enum in __anoned50383b0111::upcasting::OverloadTestHelper 283 void PassByCopy(fbl::RefPtr<A>) { result_ = Result::ClassA; } in PassByCopy() 284 void PassByCopy(fbl::RefPtr<D>) { result_ = Result::ClassD; } in PassByCopy() 290 void PassByCopy(fbl::RefPtr<B>) { result_ = Result::ClassB; } in PassByCopy() 293 void PassByMove(fbl::RefPtr<A>&&) { result_ = Result::ClassA; } in PassByMove() 294 void PassByMove(fbl::RefPtr<D>&&) { result_ = Result::ClassD; } in PassByMove() 300 void PassByMove(fbl::RefPtr<B>&&) { result_ = Result::ClassB; } in PassByMove() 303 Result result() const { return result_; } in result() 306 Result result_ = Result::None; 543 EXPECT_EQ(OverloadTestHelper::Result::ClassA, helper.result()); in ref_ptr_upcast_test() [all …]
|
| A D | unique_ptr_tests.cpp | 392 enum class Result { enum in upcasting::OverloadTestHelper 399 void PassByMove(fbl::unique_ptr<A>&&) { result_ = Result::ClassA; } in PassByMove() 400 void PassByMove(fbl::unique_ptr<D>&&) { result_ = Result::ClassD; } in PassByMove() 406 void PassByMove(fbl::unique_ptr<B>&&) { result_ = Result::ClassB; } in PassByMove() 409 Result result() const { return result_; } in result() 412 Result result_ = Result::None; 562 EXPECT_EQ(OverloadTestHelper::Result::ClassA, helper.result()); in uptr_upcasting()
|
| /system/utest/runtests-utils/ |
| A D | runtests-utils-test.cpp | 178 fbl::Vector<fbl::unique_ptr<Result>> results; in WriteSummaryJSONSucceeds() 179 results.push_back(fbl::make_unique<Result>("/a", SUCCESS, 0)); in WriteSummaryJSONSucceeds() 180 results.push_back(fbl::make_unique<Result>("b", FAILED_TO_LAUNCH, 0)); in WriteSummaryJSONSucceeds() 215 fbl::Vector<fbl::unique_ptr<Result>> results; in WriteSummaryJSONSucceedsWithoutSyslogPath() 216 results.push_back(fbl::make_unique<Result>("/a", SUCCESS, 0)); in WriteSummaryJSONSucceedsWithoutSyslogPath() 252 fbl::Vector<fbl::unique_ptr<Result>> results; in WriteSummaryJSONBadTestName() 253 results.push_back(fbl::make_unique<Result>("///", SUCCESS, 0)); in WriteSummaryJSONBadTestName() 327 fbl::unique_ptr<Result> result = in RunTestSuccessWithStdout() 356 fbl::unique_ptr<Result> result = in RunTestFailureWithStderr() 479 fbl::Vector<fbl::unique_ptr<Result>> results; in RunTestsWithVerbosity() [all …]
|
| A D | fuchsia-run-test.cpp | 155 fbl::unique_ptr<Result> result = PlatformRunTest(argv, nullptr, nullptr); in RunTestDontPublishData() 171 fbl::Vector<fbl::unique_ptr<Result>> results; in RunTestsPublishData()
|
| /system/fidl/fuchsia-hardware-tee/ |
| A D | tee.fidl | 85 // The Result of an operation will include a return code, the origin of the result, and the return 89 struct Result { 102 -> (uint32 session_id, Result result); 107 -> (Result result);
|