Home
last modified time | relevance | path

Searched refs:testFd (Results 1 - 5 of 5) sorted by relevance

/foundation/resourceschedule/ffrt/test/ut/testcase/
H A Dut_ffrt_io.cpp78 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); in HWTEST_F() local
80 ffrt::sync_io(testFd); in HWTEST_F()
82 ssize_t n = read(testFd, &value, sizeof(uint64_t)); in HWTEST_F()
85 close(testFd); in HWTEST_F()
88 ssize_t n = write(testFd, &expected, sizeof(uint64_t)); in HWTEST_F()
98 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); in HWTEST_F() local
100 ssize_t n = write(testFd, &expected, sizeof(uint64_t)); in HWTEST_F()
107 ffrt::sync_io(testFd); in HWTEST_F()
109 ssize_t n = read(testFd, &value, sizeof(uint64_t)); in HWTEST_F()
112 close(testFd); in HWTEST_F()
124 int testFd[count]; HWTEST_F() local
184 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
229 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
257 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
284 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
318 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
348 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
377 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
406 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
435 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
464 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
489 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
514 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
539 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
595 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
622 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
650 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
679 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
709 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
721 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
734 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
749 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); HWTEST_F() local
[all...]
H A Dut_coroutine.cpp140 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); in HWTEST_F() local
143 ssize_t n = write(testFd, &expected, sizeof(uint64_t)); in HWTEST_F()
147 struct TestData testData {.fd = testFd, .expected = expected}; in HWTEST_F()
149 ffrt_epoll_ctl(ffrt_qos_default, EPOLL_CTL_ADD, testFd, EPOLLIN, reinterpret_cast<void*>(&testData), testCallBack); in HWTEST_F()
154 ffrt_epoll_ctl(ffrt_qos_default, EPOLL_CTL_DEL, testFd, 0, nullptr, nullptr); in HWTEST_F()
155 close(testFd); in HWTEST_F()
H A Dut_loop.cpp246 int testFd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); in HWTEST_F() local
248 struct TestData testData {.fd = testFd, .expected = expected}; in HWTEST_F()
249 ret = ffrt_loop_epoll_ctl(loop, EPOLL_CTL_ADD, testFd, EPOLLIN, (void*)(&testData), TestCallBack); in HWTEST_F()
251 ssize_t n = write(testFd, &expected, sizeof(uint64_t)); in HWTEST_F()
255 ret = ffrt_loop_epoll_ctl(loop, EPOLL_CTL_DEL, testFd, 0, nullptr, nullptr); in HWTEST_F()
/foundation/communication/netmanager_base/test/netstatsmanager/unittest/net_stats_manager_test/
H A Dnet_stats_service_exception_test.cpp64 int32_t testFd = 1001; in HWTEST_F() local
71 auto result = instance_->Dump(testFd, mockArgs); in HWTEST_F()
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/
H A Dnetsys_native_service_test.cpp68 int32_t testFd = 11; in HWTEST_F() local
69 int32_t ret = instance_->Dump(testFd, {}); in HWTEST_F()

Completed in 5 milliseconds