| /system/utest/fuzz-utils/ |
| A D | fuzzer-fixture.cpp | 21 ASSERT_TRUE(Fixture::Create()); in CreateZircon() 24 ASSERT_TRUE(CreateFile("boot/test/fuzz/target1")); in CreateZircon() 25 ASSERT_TRUE(CreateFile("boot/test/fuzz/target2")); in CreateZircon() 28 ASSERT_TRUE(CreateData("zircon_fuzzers", "target2")); in CreateZircon() 35 ASSERT_TRUE(Fixture::Create()); in CreateFuchsia() 38 ASSERT_TRUE(CreateFile("boot/test/fuzz/target1")); in CreateFuchsia() 41 ASSERT_TRUE(CreatePackage("zircon_fuzzers", 0, "target2")); in CreateFuchsia() 42 ASSERT_TRUE(CreatePackage("fuchsia1_fuzzers", 1, "target1")); in CreateFuchsia() 43 ASSERT_TRUE(CreatePackage("fuchsia1_fuzzers", 2, "target1")); in CreateFuchsia() 52 ASSERT_TRUE(CreateData("zircon_fuzzers", "target2")); in CreateFuchsia() [all …]
|
| A D | fuzzer.cpp | 21 ASSERT_TRUE(test.InitZircon()); in TestSetOption() 94 ASSERT_TRUE(test.InitZircon()); in TestRebasePath() 113 ASSERT_TRUE(test.InitFuchsia()); in TestGetPackagePath() 148 ASSERT_TRUE(test.InitZircon()); in TestFindZirconFuzzers() 188 ASSERT_TRUE(test.InitFuchsia()); in TestFindFuchsiaFuzzers() 269 ASSERT_TRUE(test.InitZircon()); in TestFindFuzzers() 407 ASSERT_TRUE(test.InitZircon()); in TestCheckProcess() 423 ASSERT_TRUE(test.InitZircon()); in TestInvalid() 425 ASSERT_TRUE(test.Eval("")); in TestInvalid() 427 ASSERT_TRUE(test.Eval("bad")); in TestInvalid() [all …]
|
| /system/utest/fs/ |
| A D | test-link.c | 49 ASSERT_TRUE(check_link_count(oldpath, 1), ""); in test_link_basic() 52 ASSERT_TRUE(check_link_count(oldpath, 2), ""); in test_link_basic() 53 ASSERT_TRUE(check_link_count(newpath, 2), ""); in test_link_basic() 65 ASSERT_TRUE(check_link_count(newpath, 1), ""); in test_link_basic() 90 ASSERT_TRUE(check_link_count("::dira", 2), ""); in test_link_count_dirs() 96 ASSERT_TRUE(check_link_count("::dira", 2), ""); in test_link_count_dirs() 101 ASSERT_TRUE(check_link_count("::dira", 3), ""); in test_link_count_dirs() 106 ASSERT_TRUE(check_link_count("::dira", 3), ""); in test_link_count_dirs() 112 ASSERT_TRUE(check_link_count("::dira", 3), ""); in test_link_count_dirs() 116 ASSERT_TRUE(check_link_count("::dira", 2), ""); in test_link_count_dirs() [all …]
|
| A D | test-watcher.cpp | 102 ASSERT_TRUE(check_for_empty(&wb, client)); in TestWatcherAdd() 123 ASSERT_TRUE(check_for_empty(&wb, client)); in TestWatcherAdd() 170 ASSERT_TRUE(check_for_empty(&wb, client)); in TestWatcherExisting() 178 ASSERT_TRUE(check_for_empty(&wb, client)); in TestWatcherExisting() 194 ASSERT_TRUE(check_for_empty(&wb2, client2)); in TestWatcherExisting() 195 ASSERT_TRUE(check_for_empty(&wb, client)); in TestWatcherExisting() 203 ASSERT_TRUE(check_for_empty(&wb, client)); in TestWatcherExisting() 237 ASSERT_TRUE(check_for_empty(&wb, client)); in TestWatcherRemoved() 244 ASSERT_TRUE(check_for_empty(&wb, client)); in TestWatcherRemoved() 250 ASSERT_TRUE(check_for_empty(&wb, client)); in TestWatcherRemoved() [all …]
|
| A D | test-minfs.cpp | 36 ASSERT_TRUE(fd); in QueryInfo() 123 ASSERT_TRUE(fd); in ToggleMetrics() 134 ASSERT_TRUE(fd); in GetMetricsUnavailable() 147 ASSERT_TRUE(fd); in GetMetrics() 172 ASSERT_TRUE(fd); in TestMetrics() 242 ASSERT_TRUE(fd); in FillDirectory() 267 ASSERT_TRUE(mnt_fd); in TestFullOperations() 270 ASSERT_TRUE(big_fd); in TestFullOperations() 273 ASSERT_TRUE(med_fd); in TestFullOperations() 276 ASSERT_TRUE(sml_fd); in TestFullOperations() [all …]
|
| /system/utest/fbl/ |
| A D | vector_tests.cpp | 163 ASSERT_TRUE(ac.check()); in VectorTestAccessRelease() 220 ASSERT_TRUE(ac.check()); in VectorTestPushBackInCapacity() 258 ASSERT_TRUE(ac.check()); in VectorTestPushBackByConstRefInCapacity() 415 ASSERT_TRUE(ac.check()); in VectorTestAllocationFailure() 435 ASSERT_TRUE(ac.check()); in VectorTestAllocationFailure() 437 ASSERT_TRUE(ac.check()); in VectorTestAllocationFailure() 439 ASSERT_TRUE(ac.check()); in VectorTestAllocationFailure() 648 ASSERT_TRUE(ac.check()); in VectorTestInsertDelete() 651 ASSERT_TRUE(ac.check()); in VectorTestInsertDelete() 813 ASSERT_TRUE(ac.check()); in VectorTestImplicitConversion() [all …]
|
| A D | atomic_tests.cpp | 1148 ASSERT_TRUE(math_test<char>()); in atomic_math_test() 1151 ASSERT_TRUE(math_test<short>()); in atomic_math_test() 1153 ASSERT_TRUE(math_test<int>()); in atomic_math_test() 1155 ASSERT_TRUE(math_test<long>()); in atomic_math_test() 1157 ASSERT_TRUE(math_test<long long>()); in atomic_math_test() 1222 ASSERT_TRUE(exchange_test<char>()); in atomic_exchange_test() 1227 ASSERT_TRUE(exchange_test<int>()); in atomic_exchange_test() 1229 ASSERT_TRUE(exchange_test<long>()); in atomic_exchange_test() 1233 ASSERT_TRUE(exchange_test<bool>()); in atomic_exchange_test() 1239 ASSERT_TRUE(exchange_test<int*>()); in atomic_exchange_test() [all …]
|
| /system/ulib/trace-vthread/ |
| A D | event_vthread_tests.cpp | 70 ASSERT_TRUE(fixture.StartTracing()); in TestVthreadDurationBegin() 76 ASSERT_TRUE(fixture.StopTracing()); in TestVthreadDurationBegin() 78 ASSERT_TRUE(fixture.CompareBuffer("\ in TestVthreadDurationBegin() 101 ASSERT_TRUE(fixture.StartTracing()); in TestVthreadDurationEnd() 107 ASSERT_TRUE(fixture.StopTracing()); in TestVthreadDurationEnd() 109 ASSERT_TRUE(fixture.CompareBuffer("\ in TestVthreadDurationEnd() 132 ASSERT_TRUE(fixture.StartTracing()); in TestVthreadFlowBegin() 138 ASSERT_TRUE(fixture.StopTracing()); in TestVthreadFlowBegin() 140 ASSERT_TRUE(fixture.CompareBuffer("\ in TestVthreadFlowBegin() 169 ASSERT_TRUE(fixture.StopTracing()); in TestVthreadFlowStep() [all …]
|
| /system/utest/libfzl/ |
| A D | vmo-pool-tests.cpp | 145 ASSERT_TRUE(CheckEmptyPool(0)); in CheckAccounting() 183 ASSERT_TRUE(ac.check()); in vmo_pool_init_vector_test() 197 ASSERT_TRUE(tester.Init()); in vmo_pool_fill_and_empty_pool_test() 205 ASSERT_TRUE(tester.Init()); in vmo_pool_double_get_buffer_test() 218 ASSERT_TRUE(tester.Init()); in vmo_pool_release_before_complete_test() 235 ASSERT_TRUE(tester.Init()); in vmo_pool_release_wrong_buffer_test() 259 ASSERT_TRUE(tester.Init()); in vmo_pool_out_of_order_test() 260 ASSERT_TRUE(tester.ShufflePool()); in vmo_pool_out_of_order_test() 269 ASSERT_TRUE(tester.Init()); in vmo_pool_reset_test() 290 ASSERT_TRUE(tester.Init()); in vmo_pool_reinit() [all …]
|
| A D | fzl-test.cpp | 25 ASSERT_TRUE(fbl::min(t0, t1) + e >= fbl::max(t0, t1), buf); in AlmostEqual() 80 ASSERT_TRUE(TickConverter(zx::ticks(0), zx::ticks(0))); in TimeTest() 81 ASSERT_TRUE(TickConverter(zx::ticks(50), tick_loss)); in TimeTest() 82 ASSERT_TRUE(TickConverter(zx::ticks(100), tick_loss)); in TimeTest() 83 ASSERT_TRUE(TickConverter(zx::ticks(100000), tick_loss)); in TimeTest() 84 ASSERT_TRUE(TickConverter(zx::ticks(1000000000), tick_loss)); in TimeTest() 87 ASSERT_TRUE(NsConverter(zx::duration(0), zx::duration(0))); in TimeTest() 88 ASSERT_TRUE(NsConverter(zx::duration(50), duration_loss)); in TimeTest() 89 ASSERT_TRUE(NsConverter(zx::duration(100), duration_loss)); in TimeTest() 90 ASSERT_TRUE(NsConverter(zx::duration(100000), duration_loss)); in TimeTest() [all …]
|
| A D | vmo-vmar-tests.cpp | 53 ASSERT_TRUE(contained_in(*managers[i], *managers[i - 1]), in vmar_vmo_core_test() 134 ASSERT_TRUE(vmo_handles[i].is_valid()); in vmar_vmo_core_test() 141 ASSERT_TRUE(vmo_handles[i].is_valid()); in vmar_vmo_core_test() 183 ASSERT_TRUE(contained_in(mappers[i], *target_vmar)); in vmar_vmo_core_test() 258 ASSERT_TRUE(vmar_vmo_core_test(0, true)); in vmo_create_and_map_root_test() 264 ASSERT_TRUE(vmar_vmo_core_test(1, true)); in vmo_create_and_map_sub_vmar_test() 270 ASSERT_TRUE(vmar_vmo_core_test(2, true)); in vmo_create_and_map_sub_sub_vmar_test() 276 ASSERT_TRUE(vmar_vmo_core_test(0, false)); in vmo_map_root_test() 282 ASSERT_TRUE(vmar_vmo_core_test(1, false)); in vmo_map_sub_vmar_test() 288 ASSERT_TRUE(vmar_vmo_core_test(2, false)); in vmo_map_sub_sub_vmar_test() [all …]
|
| /system/utest/core/process/ |
| A D | process.cpp | 403 ASSERT_TRUE(test_process.CreateThread()); in suspend() 413 ASSERT_TRUE(test_process.StopProcess()); in suspend() 448 ASSERT_TRUE(test_process.StopProcess()); in suspend_multiple_threads() 469 ASSERT_TRUE(test_process.StopProcess()); in suspend_before_creating_threads() 490 ASSERT_TRUE(test_process.StopProcess()); in suspend_before_starting_threads() 518 ASSERT_TRUE(test_process.StopProcess()); in suspend_process_then_thread() 544 ASSERT_TRUE(test_process.StopProcess()); in suspend_thread_then_process() 573 ASSERT_TRUE(test_process.StopProcess()); in suspend_thread_and_process_before_starting_process() 597 ASSERT_TRUE(test_process.StopProcess()); in suspend_twice() 622 ASSERT_TRUE(test_process.StopProcess()); in suspend_twice_before_creating_threads() [all …]
|
| /system/utest/logger/ |
| A D | test.cpp | 73 ASSERT_TRUE(logger_handle_); in ConnectToLogger() 88 ASSERT_TRUE(socket_); in InitSyslog() 100 ASSERT_TRUE(CreateLogger()); in FullSetup() 101 ASSERT_TRUE(ConnectToLogger()); in FullSetup() 131 ASSERT_TRUE(fixture.FullSetup()); in TestLogSimple() 142 ASSERT_TRUE(fixture.FullSetup()); in TestLogMultipleMsgs() 157 ASSERT_TRUE(fixture.FullSetup()); in TestLogWithTag() 168 ASSERT_TRUE(fixture.CreateLogger()); in TestLogWithMultipleTags() 182 ASSERT_TRUE(fixture.FullSetup()); in TestLogSeverity() 204 ASSERT_TRUE(fixture.FullSetup()); in TestLogWhenLoggerHandleDies() [all …]
|
| /system/utest/hypervisor/ |
| A D | guest.cpp | 240 ASSERT_TRUE(teardown(&test)); in vcpu_resume() 270 ASSERT_TRUE(teardown(&test)); in vcpu_interrupt() 301 ASSERT_TRUE(teardown(&test)); in vcpu_interrupt_priority() 328 ASSERT_TRUE(teardown(&test)); in vcpu_nmi() 359 ASSERT_TRUE(teardown(&test)); in vcpu_nmi_priority() 386 ASSERT_TRUE(teardown(&test)); in vcpu_exception() 402 ASSERT_TRUE(teardown(&test)); in vcpu_hlt() 418 ASSERT_TRUE(teardown(&test)); in vcpu_pause() 442 ASSERT_TRUE(teardown(&test)); in vcpu_write_cr0() 458 ASSERT_TRUE(teardown(&test)); in vcpu_wfi() [all …]
|
| /system/utest/fvm-host/ |
| A D | main.cpp | 284 ASSERT_TRUE(ac.check()); in GenerateData() 383 ASSERT_TRUE(false); in PopulatePartitions() 442 ASSERT_TRUE(false); in CreatePartitions() 470 ASSERT_TRUE(false); in GetSparseInfo() 493 ASSERT_TRUE(ReportFvm()); in CreateReportDestroy() 514 ASSERT_TRUE(false); in CreateReportDestroy() 555 ASSERT_TRUE(DestroyFvm()); in TestDiskSizeCalculation() 560 ASSERT_TRUE(DestroyFvm()); in TestDiskSizeCalculation() 668 ASSERT_TRUE(fd); in CreatePaveFile() 698 ASSERT_TRUE(DestroyFvm()); in TestPave() [all …]
|
| /system/utest/blobfs/ |
| A D | blobfs.cpp | 323 ASSERT_TRUE(Mount()); in ForceRemount() 456 ASSERT_TRUE(false); in GetRamdiskCount() 465 ASSERT_TRUE(fd); in CheckInfo() 673 ASSERT_TRUE(fd); in QueryInfo() 747 ASSERT_TRUE(fd); in TestUnallocatedBlob() 760 ASSERT_TRUE(fd); in TestNullBlob() 772 ASSERT_TRUE(fd); in TestNullBlob() 2187 ASSERT_TRUE(fd); in TestFragmentation() 2219 ASSERT_TRUE(fd); in TestFragmentation() 2413 ASSERT_TRUE(fd); in reopen_thread() [all …]
|
| /system/utest/digest/ |
| A D | digest.cpp | 50 ASSERT_TRUE(actual == expected, __FUNCTION__); in DigestZero() 66 ASSERT_TRUE(actual == expected, __FUNCTION__); in DigestSelf() 96 ASSERT_TRUE(expected == buf, __FUNCTION__); in DigestCWrappers() 104 ASSERT_TRUE(expected == buf, __FUNCTION__); in DigestCWrappers() 116 ASSERT_TRUE(actual == actual, "Equals self"); in DigestEquality() 155 ASSERT_TRUE(digest1 == uninitialized_digest); in DigestMove() 156 ASSERT_TRUE(digest1.is_valid()); in DigestMove() 162 ASSERT_TRUE(digest1.is_valid()); in DigestMove() 170 ASSERT_TRUE(digest2.is_valid()); in DigestMove() 180 ASSERT_TRUE(digest2 == zero_digest); in DigestMove() [all …]
|
| /system/utest/chromeos-disk-setup/ |
| A D | chromeos-disk-setup.cpp | 119 ASSERT_TRUE(fd_); in PrepareGpt() 314 ASSERT_TRUE(create_misc_parts(test)); in create_test_layout() 350 ASSERT_TRUE(create_test_layout(test)); in create_test_layout_with_fvm() 383 ASSERT_TRUE(test.PrepareGpt()); in TestDefaultConfig() 403 ASSERT_TRUE(test.PrepareGpt()); in TestAlreadyConfigured() 430 ASSERT_TRUE(test.PrepareGpt()); in TestNoCParts() 454 ASSERT_TRUE(test.PrepareGpt()); in TestNoRootc() 483 ASSERT_TRUE(test.PrepareGpt()); in TestNoKernc() 516 ASSERT_TRUE(test.PrepareGpt()); in TestDiskTooSmall() 539 ASSERT_TRUE(test.PrepareGpt()); in TestDiskTooSmall() [all …]
|
| /system/dev/nand/broker/test/ |
| A D | broker-test.cpp | 193 ASSERT_TRUE(Erase(request)); in EraseBlock() 240 ASSERT_TRUE(device.IsValid()); in TrivialLifetimeTest() 247 ASSERT_TRUE(device.IsValid()); in QueryTest() 267 ASSERT_TRUE(device.IsValid()); in ReadWriteLimitsTest() 326 ASSERT_TRUE(device.IsValid()); in EraseLimitsTest() 357 ASSERT_TRUE(device.IsValid()); in ReadWriteTest() 358 ASSERT_TRUE(device.EraseBlock(0)); in ReadWriteTest() 384 ASSERT_TRUE(device.IsValid()); in ReadWriteOobTest() 385 ASSERT_TRUE(device.EraseBlock(0)); in ReadWriteOobTest() 418 ASSERT_TRUE(device.IsValid()); in ReadWriteDataAndOobTest() [all …]
|
| /system/dev/block/ftl/test/ |
| A D | ftl-test.cpp | 24 ASSERT_TRUE(ftl.Init(kDefaultOptions)); in TrivialLifetimeTest() 65 ASSERT_TRUE(IsEmptyPage(&ftl, 10)); in MountTest() 107 ASSERT_TRUE(ftl.ReAttach()); in ReAttachTest() 114 ASSERT_TRUE(ftl.ReAttach()); in ReAttachTest() 130 ASSERT_TRUE(WritePage(&ftl, 10)); in FormatTest() 133 ASSERT_TRUE(IsEmptyPage(&ftl, 10)); in FormatTest() 142 ASSERT_TRUE(WritePage(&ftl, 10)); in TrimTest() 267 ASSERT_TRUE(ftl_.ReAttach()); in SingleLoop() 315 ASSERT_TRUE(test.Init()); in SinglePassTest() 317 ASSERT_TRUE(test.SingleLoop(5)); in SinglePassTest() [all …]
|
| /system/utest/fidl-compiler/ |
| A D | using_tests.cpp | 28 ASSERT_TRUE(dependency.Compile()); in valid_using_without_alias_test() 40 ASSERT_TRUE(library.AddDependentLibrary(dependency)); in valid_using_without_alias_test() 60 ASSERT_TRUE(dependency.Compile()); in valid_using_with_alias_test() 73 ASSERT_TRUE(library.AddDependentLibrary(dependency)); in valid_using_with_alias_test() 74 ASSERT_TRUE(library.Compile()); in valid_using_with_alias_test() 111 ASSERT_TRUE(dependency.Compile()); in invalid_duplicate_using() 120 ASSERT_TRUE(library.AddDependentLibrary(dependency)); in invalid_duplicate_using()
|
| /system/utest/banjo-compiler/ |
| A D | using_tests.cpp | 28 ASSERT_TRUE(dependency.Compile()); in valid_using_without_alias_test() 40 ASSERT_TRUE(library.AddDependentLibrary(dependency)); in valid_using_without_alias_test() 60 ASSERT_TRUE(dependency.Compile()); in valid_using_with_alias_test() 73 ASSERT_TRUE(library.AddDependentLibrary(dependency)); in valid_using_with_alias_test() 74 ASSERT_TRUE(library.Compile()); in valid_using_with_alias_test() 111 ASSERT_TRUE(dependency.Compile()); in invalid_duplicate_using() 120 ASSERT_TRUE(library.AddDependentLibrary(dependency)); in invalid_duplicate_using()
|
| /system/dev/nand/ram-nand/test/ |
| A D | ram-nand.cpp | 233 ASSERT_TRUE(device); in UnlinkTest() 407 ASSERT_TRUE(device); in QueueOneTest() 413 ASSERT_TRUE(op); in QueueOneTest() 474 ASSERT_TRUE(device); in ReadWriteTest() 509 ASSERT_TRUE(device); in NewChipTest() 545 ASSERT_TRUE(device); in QueueMultipleTest() 604 ASSERT_TRUE(device); in OobLimitsTest() 646 ASSERT_TRUE(device); in ReadWriteOobTest() 686 ASSERT_TRUE(device); in ReadWriteDataAndOobTest() 730 ASSERT_TRUE(device); in EraseLimitsTest() [all …]
|
| /system/utest/fvm/ |
| A D | fvm.cpp | 213 ASSERT_TRUE(fd); in ValidateFVM() 356 ASSERT_TRUE(ac.check()); in Create() 396 ASSERT_TRUE(ac.check()); in CheckRead() 433 ASSERT_TRUE(ac.check()); in CheckRead() 445 ASSERT_TRUE(ac.check()); in CheckWriteColor() 456 ASSERT_TRUE(ac.check()); in CheckReadColor() 473 ASSERT_TRUE(ac.check()); in CheckWriteReadBlock() 2269 ASSERT_TRUE(rootfd); in TestMounting() 2353 ASSERT_TRUE(rootfd); in TestMkfs() 2937 ASSERT_TRUE(fd, 0); in TestCheckBadArguments() [all …]
|
| /system/utest/core/threads/ |
| A D | threads.cpp | 206 ASSERT_TRUE(get_thread_info(thread, &info)); in wait_thread_blocked() 251 ASSERT_TRUE(zxr_thread_detached(&thread)); in TestDetach() 469 ASSERT_TRUE(get_thread_info(thread_h, &info)); in TestResumeSuspended() 714 ASSERT_TRUE(get_thread_info(thread_h, &info)); in TestSuspendMultiple() 729 ASSERT_TRUE(get_thread_info(thread_h, &info)); in TestSuspendMultiple() 1064 ASSERT_TRUE(Suspend()); in Init() 1227 ASSERT_TRUE(setup.Init()); in TestWritingGeneralRegisterState() 1252 ASSERT_TRUE(setup.Init()); in TestWritingFpRegisterState() 1273 ASSERT_TRUE(setup.Init()); in TestWritingVectorRegisterState() 1469 ASSERT_TRUE(setup.Resume()); in TestWriteReadDebugRegisterState() [all …]
|