/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_timer_test.cpp | 80 Utils::Timer timer("test_timer"); 82 EXPECT_EQ(Utils::TIMER_ERR_OK, ret); 99 Utils::Timer timer("test_timer"); in HWTEST_F() 101 EXPECT_EQ(Utils::TIMER_ERR_OK, ret); in HWTEST_F() 116 Utils::Timer timer("test_timer"); in HWTEST_F() 118 EXPECT_EQ(Utils::TIMER_ERR_OK, ret); in HWTEST_F() 127 static void TestTimerEvent(Utils::Timer& timer) in TestTimerEvent() 145 Utils::Timer timer("test_timer"); in HWTEST_F() 147 EXPECT_EQ(Utils::TIMER_ERR_OK, ret); in HWTEST_F() 169 Utils [all...] |
H A D | utils_event_test.cpp | 39 using namespace OHOS::Utils; 940 EXPECT_EQ(Utils::TIMER_ERR_OK, ret); in HWTEST_F() 957 EXPECT_EQ(Utils::TIMER_ERR_OK, ret); in HWTEST_F() 986 EXPECT_EQ(Utils::TIMER_ERR_OK, ret); in HWTEST_F() 1010 return timer_.Setup() == Utils::TIMER_ERR_OK; in Init() 1021 return timerId != Utils::TIMER_ERR_DEAL_FAILED; in StartTimer() 1074 EXPECT_EQ(Utils::TIMER_ERR_OK, ret); in HWTEST_F() 1090 EXPECT_EQ(Utils::TIMER_ERR_OK, ret); in HWTEST_F() 1135 EXPECT_EQ(Utils::TIMER_ERR_OK, ret); in HWTEST_F() 1167 EXPECT_EQ(Utils in HWTEST_F() [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/timer_benchmark_test/ |
H A D | timer_benchmark_test.cpp | 87 Utils::Timer timer("test_timer"); in BENCHMARK_F() 89 AssertEqual(Utils::TIMER_ERR_OK, ret, "Utils::TIMER_ERR_OK did not equal ret as expected.", state); in BENCHMARK_F() 108 Utils::Timer timer("test_timer"); in BENCHMARK_F() 110 AssertEqual(Utils::TIMER_ERR_OK, ret, "Utils::TIMER_ERR_OK did not equal ret as expected.", state); in BENCHMARK_F() 130 Utils::Timer timer("test_timer"); in BENCHMARK_F() 132 AssertEqual(Utils::TIMER_ERR_OK, ret, "Utils::TIMER_ERR_OK did not equal ret as expected.", state); in BENCHMARK_F() 157 Utils [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/rwlock_benchmark_test/ |
H A D | rwlock_benchmark_test.cpp | 84 Utils::RWLock rwLock_; 200 OHOS::Utils::RWLock rwLock_; in BENCHMARK_F() 203 OHOS::Utils::UniqueWriteGuard<OHOS::Utils::RWLock> guard(rwLock_); in BENCHMARK_F() 224 OHOS::Utils::RWLock rwLock_; in BENCHMARK_F() 228 OHOS::Utils::UniqueReadGuard<OHOS::Utils::RWLock> guard(rwLock_); in BENCHMARK_F()
|
/commonlibrary/c_utils/base/test/fuzztest/timer_fuzzer/ |
H A D | timer_fuzzer.cpp | 38 const std::vector<std::function<void(FuzzedDataProvider*, Utils::Timer&, vector<uint32_t>&)>> ops = { 39 [](FuzzedDataProvider* dataProvider, Utils::Timer& timer, vector<uint32_t>& val) { 51 [](FuzzedDataProvider* dataProvider, Utils::Timer& timer, vector<uint32_t>& val) { 70 Utils::Timer timer(teststr, timeoutMs); in TimerTestFunc()
|
/commonlibrary/c_utils/base/include/ |
H A D | common_errors.h | 27 namespace Utils { namespace 56 } // Utils
|
H A D | common_mapped_file_errors.h | 31 namespace Utils { namespace 60 } // Utils
|
H A D | common_timer_errors.h | 31 namespace Utils { namespace 71 } // Utils
|
H A D | common_event_sys_errors.h | 31 namespace Utils { namespace 63 } // Utils
|
H A D | io_event_common.h | 23 namespace Utils { namespace 44 } // namespace Utils
|
H A D | io_event_handler.h | 22 namespace Utils { namespace 101 } // namespace Utils
|
H A D | rwlock.h | 31 namespace Utils { namespace 172 } // namespace Utils
|
H A D | io_event_reactor.h | 31 namespace Utils { namespace 107 } // namespace Utils
|
/commonlibrary/c_utils/base/test/fuzztest/refbase_fuzzer/ |
H A D | refbase_fuzzer.cpp | 41 TestRefBase(bool* deleted, Utils::RWLock& rwLock) : deleted_(deleted), rwLock_(rwLock) in TestRefBase() 61 Utils::RWLock& rwLock_; 84 Utils::RWLock g_deletedLock; 85 Utils::RWLock g_strongLock; 86 Utils::RWLock g_attemptLock;
|
/commonlibrary/ets_utils/js_concurrent_module/utils/ |
H A D | utils.h | 22 class Utils { class
|
H A D | native_utils_module.cpp | 22 .nm_register_func = Commonlibrary::Concurrent::Utils::Init,
|
H A D | utils.cpp | 48 napi_value Utils::Init(napi_env env, napi_value exports) in Init()
|
/commonlibrary/c_utils/base/src/ |
H A D | event_demultiplexer.h | 25 namespace Utils { namespace
|
H A D | event_handler.cpp | 21 namespace Utils { namespace 56 } // Utils
|
H A D | timer_event_handler.h | 24 namespace Utils { namespace 57 } // namespace Utils
|
H A D | event_handler.h | 26 namespace Utils { namespace
|
H A D | io_event_epoll.h | 27 namespace Utils { namespace 61 } // Utils
|
H A D | rwlock.cpp | 20 namespace Utils { namespace 90 } // namespace Utils
|
H A D | event_reactor.h | 26 namespace Utils { namespace 80 } // namespace Utils
|
/commonlibrary/c_utils/base/test/benchmarktest/event_benchmark_test/ |
H A D | event_benchmark_test.cpp | 40 using namespace OHOS::Utils; 1093 AssertEqual(Utils::TIMER_ERR_OK, ret, "Utils::TIMER_ERR_OK did not equal ret as expected.", state); in BENCHMARK_F() 1117 AssertEqual(Utils::TIMER_ERR_OK, ret, "Utils::TIMER_ERR_OK did not equal ret as expected.", state); in BENCHMARK_F() 1143 AssertEqual(Utils::TIMER_ERR_OK, ret, "Utils::TIMER_ERR_OK did not equal ret as expected.", state); in BENCHMARK_F() 1174 return timer_.Setup() == Utils::TIMER_ERR_OK; in Init() 1181 return timerId != Utils::TIMER_ERR_DEAL_FAILED; in StartTimer() 1228 AssertEqual(Utils in BENCHMARK_F() [all...] |