/commonlibrary/c_utils/base/test/benchmarktest/parcel_benchmark_test/ |
H A D | parcel_benchmark_test.cpp | 48 void SetUp(const ::benchmark::State& state) override 52 void TearDown(const ::benchmark::State& state) override 126 void WriteTestData(Parcel &parcel, const struct TestData &data, benchmark::State& state) in WriteTestData() argument 131 AssertEqual(result, true, "result did not equal true as expected.", state); in WriteTestData() 134 AssertEqual(result, true, "result did not equal true as expected.", state); in WriteTestData() 137 AssertEqual(result, true, "result did not equal true as expected.", state); in WriteTestData() 140 AssertEqual(result, true, "result did not equal true as expected.", state); in WriteTestData() 143 AssertEqual(result, true, "result did not equal true as expected.", state); in WriteTestData() 146 AssertEqual(result, true, "result did not equal true as expected.", state); in WriteTestData() 149 AssertEqual(result, true, "result did not equal true as expected.", state); in WriteTestData() 152 WriteUnalignedTestData(Parcel &parcel, const struct TestData &data, benchmark::State& state) WriteUnalignedTestData() argument 172 ReadTestData(Parcel &parcel, const struct TestData &data, benchmark::State& state) ReadTestData() argument 197 ReadUnalignedTestData(Parcel &parcel, const struct TestData &data, benchmark::State& state) ReadUnalignedTestData() argument 224 ReadTestDataWithTarget(Parcel &parcel, const struct TestData &data, benchmark::State& state) ReadTestDataWithTarget() argument 287 CopyOldParcelToNewParcel(Parcel &oldParcel, Parcel &newParcel, benchmark::State& state) CopyOldParcelToNewParcel() argument 294 did not equal true as expected.", state); CopyOldParcelToNewParcel() local 388 WriteSignalDataToVector002(T1 &value, benchmark::State& state, const F executeFunc) WriteSignalDataToVector002() argument 466 WriteSignalDataToVector003(T1 &value, benchmark::State& state, const F executeFunc) WriteSignalDataToVector003() argument 543 WriteDataToVector(T1 &value, benchmark::State& state, const F executeFunc) WriteDataToVector() argument 554 WriteDataToVector(std::string &value, benchmark::State& state, const F executeFunc) WriteDataToVector() argument 564 WriteDataToVector(std::u16string &value, benchmark::State& state, const F executeFunc) WriteDataToVector() argument 685 TestParcelWrite001(T1 value, benchmark::State& state, const F executeFunc) TestParcelWrite001() argument 699 "CopyOldParcelToNewParcel(parcel1, parcel2, state) did not equal true as expected.", state); BENCHMARK_F() local 773 "CopyOldParcelToNewParcel(parcel1, parcel2, state) did not equal true as expected.", state); BENCHMARK_F() local 795 "CopyOldParcelToNewParcel(parcel1, parcel2, state) did not equal true as expected.", state); BENCHMARK_F() local 827 "CopyOldParcelToNewParcel(parcel1, parcel2, state) did not equal true as expected.", state); BENCHMARK_F() local 872 "CopyOldParcelToNewParcel(parcel1, parcel2, state) did not equal true as expected.", state); BENCHMARK_F() local 914 "CopyOldParcelToNewParcel(parcel1, parcel2, state) did not equal true as expected.", state); BENCHMARK_F() local 1118 "CopyOldParcelToNewParcel(parcel1, parcel2, state) did not equal true as expected.", state); BENCHMARK_F() local 1171 "CopyOldParcelToNewParcel(parcel1, parcel2, state) did not equal true as expected.", state); BENCHMARK_F() local 1200 ValidatePadded(const struct Padded &left, const struct Padded &right, benchmark::State& state) ValidatePadded() argument 1210 ValidateUnpadded(const struct Unpadded &left, const struct Unpadded &right, benchmark::State& state) ValidateUnpadded() argument 1395 "CopyOldParcelToNewParcel(parcel, recvParcel, state) did not equal true as expected.", state); BENCHMARK_F() local 1414 WriteVectorTestData(Parcel &parcel, const VectorTestData &data, benchmark::State& state) WriteVectorTestData() argument 1446 LoopReadVectorCmpData(const vector<T1> &vec1, const vector<T1> &vec2, const char* printInfo, benchmark::State& state) LoopReadVectorCmpData() argument 1454 LoopReadVectorCmpData(const vector<u16string> &vec1, const vector<u16string> &vec2, const char* printInfo, benchmark::State& state) LoopReadVectorCmpData() argument 1462 ReadVectorTestData(Parcel &parcel, const VectorTestData &data, benchmark::State& state) ReadVectorTestData() argument 1553 "CopyOldParcelToNewParcel(parcel1, parcel2, state) did not equal true as expected.", state); BENCHMARK_F() local 1591 "CopyOldParcelToNewParcel(parcel1, parcel2, state) did not equal true as expected.", state); BENCHMARK_F() local 1720 ParcelWriteVector(const std::vector<T> &vectorTest, benchmark::State& state) ParcelWriteVector() argument 1728 "CopyOldParcelToNewParcel(parcel1, parcel2, state) did not equal true as expected.", state); ParcelWriteVector() local 1949 ParcelWriteData(Parcel& parcel, u16string& str16Write, string& strWrite, benchmark::State& state) ParcelWriteData() argument 2466 "CopyOldParcelToNewParcel(parcel1, parcel2, state) did not equal true as expected.", state); BENCHMARK_F() local [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/mapped_benchmark_test/ |
H A D | mapped_benchmark_test.cpp | 47 void SetUp(const ::benchmark::State& state) override 57 void TearDown(const ::benchmark::State& state) override 127 void CreateFile(std::string& filename, std::string& content, benchmark::State& state) in CreateFile() argument 133 "CreateTestFile(filename, content) did not equal true as expected.", state); in CreateFile() 136 void ReadFromMappedFile(std::string& content, MappedFile& mf, benchmark::State& state) in ReadFromMappedFile() argument 142 AssertEqual(readout, content, "readout did not equal content as expected.", state); in ReadFromMappedFile() 158 BENCHMARK_F(BenchmarkMappedFileTest, testDefaultMapping001)(benchmark::State& state) in BENCHMARK_F() 161 while (state.KeepRunning()) { in BENCHMARK_F() 165 CreateFile(filename, content, state); in BENCHMARK_F() 169 AssertEqual(mf.Map(), MAPPED_FILE_ERR_OK, "mf.Map() did not equal MAPPED_FILE_ERR_OK as expected.", state); in BENCHMARK_F() 257 "The two strings, res.c_str() and toWrite.c_str(), did not have the same content as expected.", state); BENCHMARK_F() local 449 ChangeParamsWhenUnmapped(MappedFile& mf, const int sizeIncrement, std::string& filename, std::string& filename1, benchmark::State& state) ChangeParamsWhenUnmapped() argument 716 did not have the same content as expected.", state); BENCHMARK_F() local 765 KeepAPageAndReachBottom(off_t& endOff, const off_t orig, MappedFile& mf, benchmark::State& state) KeepAPageAndReachBottom() argument 793 Remapping(MappedFile& mf, off_t& endOff, off_t& curSize, benchmark::State& state) Remapping() argument 804 "static_cast<off_t>(mf.RegionEnd() - mf.RegionStart()) + 1LL did not equal mf.PageSize().", state); Remapping() local 823 "stat(filename.c_str(), &stb) did not equal 0 as expected.", state); BENCHMARK_F() local 830 "ftruncate(fd, MappedFile::PageSize() + MappedFile::PageSize() / 100LL) did not equal 0.", state); BENCHMARK_F() local 849 "The two strings, res.c_str() and content.append(\\"N\\").c_str(), did not have the same content.", state); BENCHMARK_F() local 904 "ftruncate(mf.GetFd(), MappedFile::PageSize() + MappedFile::PageSize() / 100LL) did not equal 0.", state); BENCHMARK_F() local 910 "static_cast<off_t>(mf.StartOffset()) did not equal curOff + mf.PageSize() as expected.", state); BENCHMARK_F() local 943 "ftruncate(mf.GetFd(), MappedFile::PageSize() + MappedFile::PageSize() / 100LL) did not equal 0.", state); BENCHMARK_F() local 957 "The two strings, res.c_str() and content.append(\\"N\\").c_str(), did not have the same content.", state); BENCHMARK_F() local 1009 "stat(filename.c_str(), &stb) did not equal 0 as expected.", state); BENCHMARK_F() local 1017 "ftruncate(fd, MappedFile::PageSize() + newSize) did not equal 0 as expected.", state); BENCHMARK_F() local 1045 "static_cast<off_t>(mf.RegionEnd() - mf.RegionStart()) + 1LL did not equal mf.PageSize().", state); BENCHMARK_F() local [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/file_benchmark_test/ |
H A D | file_benchmark_test.cpp | 40 void SetUp(const ::benchmark::State& state) override 44 void TearDown(const ::benchmark::State& state) override 79 void LoadString(string& filename, string& content, benchmark::State& state) in LoadString() argument 81 while (state.KeepRunning()) { in LoadString() 86 "LoadStringFromFd(fd, result) did not equal true as expected.", state); in LoadString() 89 AssertEqual(result, content, "result == content did not equal true as expected.", state); in LoadString() 93 void SaveString(string& filename, string& content, benchmark::State& state) in SaveString() argument 95 while (state.KeepRunning()) { in SaveString() 99 AssertEqual(ret, true, "ret did not equal true as expected.", state); in SaveString() 106 AssertEqual(ret, true, "ret did not equal true as expected.", state); in SaveString() 405 state); BENCHMARK_F() local 431 state); BENCHMARK_F() local 893 "CountStrInFile(filename, str, true) did not equal -1 as expected.", state); BENCHMARK_F() local 912 "CountStrInFile(filename, str, true) did not equal -1 as expected.", state); BENCHMARK_F() local 932 "CountStrInFile(filename, str1, true) did not equal 0 as expected.", state); BENCHMARK_F() local 934 "CountStrInFile(filename, str2, true) did not equal 1 as expected.", state); BENCHMARK_F() local 955 "CountStrInFile(filename, str1, true) did not equal 2 as expected.", state); BENCHMARK_F() local 957 "CountStrInFile(filename, str1, false) did not equal 4 as expected.", state); BENCHMARK_F() local 960 "CountStrInFile(filename, str2, true) did not equal 1 as expected.", state); BENCHMARK_F() local 962 "CountStrInFile(filename, str2, false) did not equal 4 as expected.", state); BENCHMARK_F() local 965 "CountStrInFile(filename, str3, true) did not equal 0 as expected.", state); BENCHMARK_F() local 984 "CountStrInFile(filename, str1, true) did not equal 2 as expected.", state); BENCHMARK_F() local 986 "CountStrInFile(filename, str1, false) did not equal 3 as expected.", state); BENCHMARK_F() local [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/string_benchmark_test/ |
H A D | string_benchmark_test.cpp | 42 void SetUp(const ::benchmark::State& state) override 46 void TearDown(const ::benchmark::State& state) override 72 BENCHMARK_F(BenchmarkStringTest, test_strupper_01)(benchmark::State& state) in BENCHMARK_F() 75 while (state.KeepRunning()) { in BENCHMARK_F() 79 AssertEqual(result, strTemp, "result did not equal strTemp as expected.", state); in BENCHMARK_F() 83 AssertEqual(result, strTemp, "result did not equal strTemp as expected.", state); in BENCHMARK_F() 88 BENCHMARK_F(BenchmarkStringTest, test_strupper_02)(benchmark::State& state) in BENCHMARK_F() 91 while (state.KeepRunning()) { in BENCHMARK_F() 95 AssertEqual(result, strTemp, "result did not equal strTemp as expected.", state); in BENCHMARK_F() 108 BENCHMARK_F(BenchmarkStringTest, test_strlower_01)(benchmark::State& state) in BENCHMARK_F() [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/ashemem_benchmark_test/ |
H A D | ashemem_benchmark_test.cpp | 50 void SetUp(const ::benchmark::State& state) override 54 void TearDown(const ::benchmark::State& state) override 71 BENCHMARK_F(BenchmarkAshmemTest, test_ashmem_WriteAndRead_001)(benchmark::State& state) in BENCHMARK_F() 74 while (state.KeepRunning()) { in BENCHMARK_F() 76 AssertUnequal(ashmem, nullptr, "ashmem != nullptr did not equal true as expected.", state); in BENCHMARK_F() 78 "ashmem->GetAshmemSize() == MEMORY_SIZE did not equal true as expected.", state); in BENCHMARK_F() 81 AssertTrue(ret, "ret did not equal true as expected.", state); in BENCHMARK_F() 94 BENCHMARK_F(BenchmarkAshmemTest, test_ashmem_WriteAndRead_002)(benchmark::State& state) in BENCHMARK_F() 97 while (state.KeepRunning()) { in BENCHMARK_F() 99 AssertUnequal(ashmem, nullptr, "ashmem != nullptr did not equal true as expected.", state); in BENCHMARK_F() 115 "memcmp(MEMORY_CONTENT.c_str(), readContent, sizeof(MEMORY_CONTENT)) did not equal 0 as expected.", state); BENCHMARK_F() local 122 "memcmp(MEMORY_CONTENT.c_str(), readContent, sizeof(MEMORY_CONTENT)) did not equal 0 as expected.", state); BENCHMARK_F() local 161 "memcmp(MEMORY_CONTENT.c_str(), readContent, sizeof(MEMORY_CONTENT)) did not equal 0 as expected.", state); BENCHMARK_F() local 203 "memcmp(MEMORY_CONTENT.c_str(), readContent, sizeof(MEMORY_CONTENT)) did not equal 0 as expected.", state); BENCHMARK_F() local 240 "memcmp(MEMORY_CONTENT.c_str(), readContent, sizeof(MEMORY_CONTENT)) did not equal 0 as expected.", state); BENCHMARK_F() local [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/directory_benchmark_test/ |
H A D | directory_benchmark_test.cpp | 32 void SetUp(const ::benchmark::State& state) override 36 void TearDown(const ::benchmark::State& state) override 58 BENCHMARK_F(BenchmarkDirectoryTest, testGetCurrentProcFullFileName001)(benchmark::State& state) in BENCHMARK_F() 61 while (state.KeepRunning()) { in BENCHMARK_F() 64 AssertEqual(strFilename, strBaseName, "strFilename did not equal strBaseName as expected.", state); in BENCHMARK_F() 73 BENCHMARK_F(BenchmarkDirectoryTest, testGetCurrentProcPath001)(benchmark::State& state) in BENCHMARK_F() 76 while (state.KeepRunning()) { in BENCHMARK_F() 79 AssertEqual(strCurPathName, strPathName, "strCurPathName did not equal strPathName as expected.", state); in BENCHMARK_F() 88 BENCHMARK_F(BenchmarkDirectoryTest, testExtractFilePath001)(benchmark::State& state) in BENCHMARK_F() 91 while (state in BENCHMARK_F() [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/thread_pool_benchmark_test/ |
H A D | thread_pool_benchmark_test.cpp | 37 void SetUp(const ::benchmark::State& state) override 41 void TearDown(const ::benchmark::State& state) override 59 BENCHMARK_F(BenchmarkThreadPoolTest, test_01)(benchmark::State& state) in BENCHMARK_F() 65 while (state.KeepRunning()) { in BENCHMARK_F() 67 AssertEqual(pool.GetName(), "", "pool.GetName() did not equal \"\" as expected.", state); in BENCHMARK_F() 69 "(int)pool.GetMaxTaskNum() did not equal maxTaskNum as expected.", state); in BENCHMARK_F() 71 "(int)pool.GetThreadsNum() did not equal threadsNum as expected.", state); in BENCHMARK_F() 73 "(int)pool.GetCurTaskNum() did not equal curTaskNum as expected.", state); in BENCHMARK_F() 78 BENCHMARK_F(BenchmarkThreadPoolTest, test_02)(benchmark::State& state) in BENCHMARK_F() 84 while (state in BENCHMARK_F() [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/unique_fd_benchmark_test/ |
H A D | unique_fd_benchmark_test.cpp | 42 void SetUp(const ::benchmark::State& state) override 51 void TearDown(::benchmark::State& state) override 58 AssertEqual(remove(TEST_FILE_NAME), 0, "remove(TEST_FILE_NAME) did not equal 0 as expected.", state); variable 70 BENCHMARK_F(BenchmarkUniqueFd, testUtilsUniqueFd)(benchmark::State& state) in BENCHMARK_F() 74 while (state.KeepRunning()) { in BENCHMARK_F() 78 AssertEqual(ufd2, expectedValue, "ufd2 did not equal expectedValue as expected.", state); in BENCHMARK_F() 83 BENCHMARK_F(BenchmarkUniqueFd, testUtilsUniqueCtroFromInt)(benchmark::State& state) in BENCHMARK_F() 87 while (state.KeepRunning()) { in BENCHMARK_F() 89 AssertUnequal(ufd2, expectedValue, "ufd2 was not different from expectedValue as expected.", state); in BENCHMARK_F() 94 BENCHMARK_F(BenchmarkUniqueFd, testUtilsUniqueFdeqcompare)(benchmark::State& state) in BENCHMARK_F() [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/safe_map_benchmark_test/ |
H A D | safe_map_benchmark_test.cpp | 33 void SetUp(const ::benchmark::State& state) override 37 void TearDown(const ::benchmark::State& state) override 66 BENCHMARK_F(BenchmarkSafeMap, testUtilsCopyAndAssign001)(benchmark::State& state) in BENCHMARK_F() 69 while (state.KeepRunning()) { in BENCHMARK_F() 73 AssertFalse(demoData.IsEmpty(), "demoData.IsEmpty() did not equal false as expected.", state); in BENCHMARK_F() 74 AssertEqual(demoData.Size(), INSERT_ONE, "demoData.Size() did not equal INSERT_ONE as expected.", state); in BENCHMARK_F() 78 AssertTrue(newdemo.Find("A", tar), "newdemo.Find(\"A\", tar) did not equal true as expected.", state); in BENCHMARK_F() 79 AssertEqual(INSERT_ONE, tar, "INSERT_ONE did not equal tar as expected.", state); in BENCHMARK_F() 84 AssertTrue(newdemo2.Find("A", tar), "newdemo2.Find(\"A\", tar) did not equal true as expected.", state); in BENCHMARK_F() 85 AssertEqual(INSERT_ONE, tar, "INSERT_ONE did not equal tar as expected.", state); in BENCHMARK_F() [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/refbase_benchmark_test/ |
H A D | refbase_benchmark_test.cpp | 46 void SetUp(const ::benchmark::State &state) override 50 void TearDown(const ::benchmark::State &state) override 507 BENCHMARK_F(BenchmarkRefbaseTest, testRefbaseOperateThreads001)(benchmark::State &state) in BENCHMARK_F() 511 while (state.KeepRunning()) { in BENCHMARK_F() 527 "tracker->firstRefCount_ and tracker->freeCount_ are not equal", state); in BENCHMARK_F() 536 BENCHMARK_F(BenchmarkRefbaseTest, testRefbaseOperate001)(benchmark::State& state) in BENCHMARK_F() 539 while (state.KeepRunning()) { in BENCHMARK_F() 557 "tracker->firstRefCount_ and tracker->freeCount_ are not equal", state); in BENCHMARK_F() 569 BENCHMARK_F(BenchmarkRefbaseTest, testRefbaseOperateLeftValue001)(benchmark::State& state) in BENCHMARK_F() 572 while (state in BENCHMARK_F() 1217 CompOrigWptrAndTarWptr001(const wptr<T1> &origWptr, const wptr<T2> &tarWptr, int value, benchmark::State& state) CompOrigWptrAndTarWptr001() argument 1220 "testOrigWptrObject.GetRefPtr() did not equal tarWptr.GetRefPtr()", state); CompOrigWptrAndTarWptr001() local 1223 "&(*testOrigWptrObject) did not equal &(*tarWptr)", state); CompOrigWptrAndTarWptr001() local 1246 CompOrigSptrAndTarWptr002(const sptr<T1> &origSptr, const wptr<T2> &tarWptr, int value, benchmark::State& state) CompOrigSptrAndTarWptr002() argument 1249 "origSptr.GetRefPtr() did not equal tarWptr.GetRefPtr()", state); CompOrigSptrAndTarWptr002() local 1252 "&(*origSptr) did not equal &(*tarWptr)", state); CompOrigSptrAndTarWptr002() local [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/datatime_benchmark_test/ |
H A D | datatime_benchmark_test.cpp | 29 void SetUp(const ::benchmark::State& state) override 33 void TearDown(const ::benchmark::State& state) override 57 BENCHMARK_F(BenchmarkDateTimeTest, testTimecover001)(benchmark::State& state) in BENCHMARK_F() 60 while (state.KeepRunning()) { in BENCHMARK_F() 64 "SecToNanosec(second) did not equal nanosecondsInASecond as expected.", state); in BENCHMARK_F() local 68 "MillisecToNanosec(millsec) did not equal nanosecondsInAMillisecond as expected.", state); in BENCHMARK_F() local 72 "MicrosecToNanosec(microsec) did not equal nanosecondsInAMicrosecond as expected.", state); in BENCHMARK_F() local 79 "NanosecToSec(nanoces) did not equal secondsInANanosecond as expected.", state); in BENCHMARK_F() local 81 "NanosecToMillisec(nanoces) did not equal millisecondsInANanosecond as expected.", state); in BENCHMARK_F() local 83 "NanosecToMicrosec(nanoces) did not equal microsecondsInANanosecond as expected.", state); in BENCHMARK_F() local [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/sorted_vector_benchmark_test/ |
H A D | sorted_vector_benchmark_test.cpp | 38 void SetUp(const ::benchmark::State& state) override 42 void TearDown(const ::benchmark::State& state) override 60 BENCHMARK_F(BenchmarkSortedVector, testDefaultConsAndAddAndSort)(benchmark::State& state) in BENCHMARK_F() 63 while (state.KeepRunning()) { in BENCHMARK_F() 77 AssertEqual(*it, *it2, "*it did not equal *it2 as expected.", state); in BENCHMARK_F() 83 BENCHMARK_F(BenchmarkSortedVector, testConsFromSortedAllowDup)(benchmark::State& state) in BENCHMARK_F() 86 while (state.KeepRunning()) { in BENCHMARK_F() 101 AssertEqual(*it, *it2, "*it did not equal *it2 as expected.", state); in BENCHMARK_F() 122 BENCHMARK_F(BenchmarkSortedVector, testConsFromSortedNotAllowDuplicate)(benchmark::State& state) in BENCHMARK_F() 125 while (state in BENCHMARK_F() 131 "static_cast<size_t>(EXPECTED_SIZE_AFTER_DUPLICATES) did not equal svec.Size() as expected.", state); BENCHMARK_F() local 135 "static_cast<size_t>(VECTOR_SIZE_TWENTY) did not equal newSvec.Size() as expected.", state); BENCHMARK_F() local 162 "static_cast<size_t>(VECTOR_SIZE_TWENTY) did not equal svec.Size() as expected.", state); BENCHMARK_F() local 166 "static_cast<size_t>(VECTOR_SIZE_TWENTY) did not equal newSvecTrue.Size() as expected.", state); BENCHMARK_F() local 173 "static_cast<size_t>(VECTOR_SIZE_TWENTY) did not equal newSvecFalse.Size() as expected.", state); BENCHMARK_F() local 214 "static_cast<size_t>(EXPECTED_SIZE_AFTER_DUPLICATES) did not equal svec.Size() as expected.", state); BENCHMARK_F() local 218 "static_cast<size_t>(VECTOR_SIZE_TWENTY) did not equal newSvec.Size() as expected.", state); BENCHMARK_F() local 245 "static_cast<size_t>(VECTOR_SIZE_TWENTY) did not equal svec.Size() as expected.", state); BENCHMARK_F() local 250 "static_cast<size_t>(VECTOR_SIZE_TWENTY) did not equal newSvecFalse.Size() as expected.", state); BENCHMARK_F() local 252 "static_cast<size_t>(VECTOR_SIZE_TWENTY) did not equal newSvecTrue.Size() as expected.", state); BENCHMARK_F() local 282 "static_cast<size_t>(VECTOR_SIZE_TEN) did not equal svec.Size() as expected.", state); BENCHMARK_F() local 592 "static_cast<size_t>(consFromVectorVectorSize) did not equal vec.size() as expected.", state); BENCHMARK_F() local 596 "static_cast<size_t>(consFromVectorSortedVectorSize) did not equal svec.Size() as expected.", state); BENCHMARK_F() local 686 "Expected size after merge did not equal svec.Size().", state); BENCHMARK_F() local 730 "static_cast<size_t>(addNotAllowedSvectorSize) did not equal svec.Size() as expected.", state); BENCHMARK_F() local 737 "static_cast<size_t>(addNotAllowedSvectorSize) did not equal svec.Size() as expected.", state); BENCHMARK_F() local [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/timer_benchmark_test/ |
H A D | timer_benchmark_test.cpp | 43 void SetUp(const ::benchmark::State& state) override 47 void TearDown(const ::benchmark::State& state) override 81 BENCHMARK_F(BenchmarkTimerTest, testTimer002)(benchmark::State& state) in BENCHMARK_F() 84 while (state.KeepRunning()) { in BENCHMARK_F() 89 AssertEqual(Utils::TIMER_ERR_OK, ret, "Utils::TIMER_ERR_OK did not equal ret as expected.", state); in BENCHMARK_F() 93 AssertEqual(1, g_data1, "1 did not equal g_data1 as expected.", state); in BENCHMARK_F() 102 BENCHMARK_F(BenchmarkTimerTest, testTimer003)(benchmark::State& state) in BENCHMARK_F() 105 while (state.KeepRunning()) { in BENCHMARK_F() 110 AssertEqual(Utils::TIMER_ERR_OK, ret, "Utils::TIMER_ERR_OK did not equal ret as expected.", state); in BENCHMARK_F() 115 AssertGreaterThanOrEqual(g_data1, 8, "g_data1 was not greater than or equal to 8 as expected.", state); in BENCHMARK_F() [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/singleton_benchmark_test/ |
H A D | singleton_benchmark_test.cpp | 33 void SetUp(const ::benchmark::State& state) override 37 void TearDown(const ::benchmark::State& state) override 122 BENCHMARK_F(BenchmarkSingletonTest, test_DelayedSingletonDeclearTest)(benchmark::State& state) in BENCHMARK_F() 125 while (state.KeepRunning()) { in BENCHMARK_F() 128 "sp1.use_count() did not equal DELAYEDSINGLETON_SP1_USE_COUNT as expected.", state); in BENCHMARK_F() 132 "sp1->GetObjAddr() did not equal sp2->GetObjAddr() as expected.", state); in BENCHMARK_F() 133 AssertEqual(sp1.get(), sp2.get(), "sp1.get() did not equal sp2.get() as expected.", state); in BENCHMARK_F() 135 "sp2.use_count() did not equal DELAYEDSINGLETON_SP2_USE_COUNT as expected.", state); in BENCHMARK_F() 140 BENCHMARK_F(BenchmarkSingletonTest, test_SingletonDeclearTest)(benchmark::State& state) in BENCHMARK_F() 143 while (state in BENCHMARK_F() [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/thread_benchmark_test/ |
H A D | thread_benchmark_test.cpp | 32 void SetUp(const ::benchmark::State& state) override 36 void TearDown(const ::benchmark::State& state) override 143 BENCHMARK_F(BenchmarkThreadTest, testThread001)(benchmark::State& state) in BENCHMARK_F() 147 while (state.KeepRunning()) { in BENCHMARK_F() 152 "(status == ThreadStatus::OK) did not equal true as expected.", state); in BENCHMARK_F() 159 (test->IsRunning() ? false : true) as expected.", state); in BENCHMARK_F() 162 AssertEqual(test->priority_, DEFAULT_PRIO, "test->priority_ did not equal DEFAULT_PRIO as expected.", state); in BENCHMARK_F() 164 "test->name_ did not equal DEFAULT_THREAD_NAME as expected.", state); in BENCHMARK_F() 168 "test->data_ did not equal EXPECTED_DATA_VALUE as expected.", state); in BENCHMARK_F() 169 AssertEqual(g_times, INITIAL_TIMES, "g_times did not equal INITIAL_TIMES as expected.", state); in BENCHMARK_F() 219 ThreadTestProcedure(std::unique_ptr<TestThread>& test, const int expectedDataValue, benchmark::State& state) ThreadTestProcedure() argument 402 ThreadTestStart(std::unique_ptr<T>& test, benchmark::State& state) ThreadTestStart() argument [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/safe_block_queue_benchmark_test/ |
H A D | safe_block_queue_benchmark_test.cpp | 33 void SetUp(const ::benchmark::State& state) override 37 void TearDown(const ::benchmark::State& state) override 140 static void QueuePushFullEquivalent(const int Equivalent, benchmark::State& state) in QueuePushFullEquivalent() argument 145 AssertTrue((DemoThreadData::shareQueue.IsFull()), "shareQueue.IsFull() did not equal true.", state); in QueuePushFullEquivalent() 160 BENCHMARK_F(BenchmarkSafeBlockQueue, testPut001)(benchmark::State& state) in BENCHMARK_F() 163 while (state.KeepRunning()) { in BENCHMARK_F() 169 "static_cast<unsigned>(expectedQueueSize) did not equal qi.Size() as expected.", state); in BENCHMARK_F() local 178 BENCHMARK_F(BenchmarkSafeBlockQueue, testGet001)(benchmark::State& state) in BENCHMARK_F() 184 while (state.KeepRunning()) { in BENCHMARK_F() 190 "static_cast<unsigned>(expectedQueueSize) did not equal qi.Size() as expected.", state); in BENCHMARK_F() local [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/ |
H A D | benchmark_assert.h | 22 void AssertEqual(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& state)
in AssertEqual() argument 25 state.SkipWithError(printInfo);
in AssertEqual() 30 void AssertUnequal(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& state)
in AssertUnequal() argument 33 state.SkipWithError(printInfo);
in AssertUnequal() 38 void AssertFalse(const T &t, const char* printInfo, benchmark::State& state)
in AssertFalse() argument 41 state.SkipWithError(printInfo);
in AssertFalse() 46 void AssertTrue(const T &t, const char* printInfo, benchmark::State& state)
in AssertTrue() argument 49 state.SkipWithError(printInfo);
in AssertTrue() 54 void AssertLessThan(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& state)
in AssertLessThan() argument 57 state in AssertLessThan() 62 AssertLessThanOrEqual(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& state) AssertLessThanOrEqual() argument 70 AssertGreaterThan(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& state) AssertGreaterThan() argument 78 AssertGreaterThanOrEqual(const T1 &t1, const T2 &t2, const char* printInfo, benchmark::State& state) AssertGreaterThanOrEqual() argument 85 AssertStringEqual(const char* str1, const char* str2, const char* printInfo, benchmark::State& state) AssertStringEqual() argument [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/event_benchmark_test/ |
H A D | event_benchmark_test.cpp | 55 void SetUp(const ::benchmark::State& state) override 59 void TearDown(const ::benchmark::State& state) override 102 void SetFdAndCallback(std::shared_ptr<IOEventHandler>& handler, benchmark::State& state) in SetFdAndCallback() argument 106 AssertUnequal(fd, INVALID_FD, "fd was not different from INVALID_FD as expected.", state); in SetFdAndCallback() 108 AssertEqual(handler->GetFd(), fd, "handler->GetFd() did not equal fd as expected.", state); in SetFdAndCallback() 113 "handler->GetCallback() was not different from nullptr as expected.", state); in SetFdAndCallback() 120 BENCHMARK_F(BenchmarkEventTest, testIOEventHandler001)(benchmark::State& state) in BENCHMARK_F() 123 while (state.KeepRunning()) { in BENCHMARK_F() 129 SetFdAndCallback(handler, state); in BENCHMARK_F() 134 "handler->GetEvents() did not equal (Events::EVENT_READ | Events::EVENT_WRITE) as expected.", state); in BENCHMARK_F() 208 AddHandler(std::shared_ptr<IOEventReactor>& reactor, std::shared_ptr<IOEventHandler>& handler1, std::shared_ptr<IOEventHandler>& handler2, std::shared_ptr<IOEventHandler>& handler3, benchmark::State& state) AddHandler() argument 222 RemoveHandler(std::shared_ptr<IOEventReactor>& reactor, std::shared_ptr<IOEventHandler>& handler2, std::shared_ptr<IOEventHandler>& handler3, std::shared_ptr<IOEventHandler>& handler4, benchmark::State& state) RemoveHandler() argument 236 UpdateHandler(std::shared_ptr<IOEventReactor>& reactor, std::shared_ptr<IOEventHandler>& handler1, std::shared_ptr<IOEventHandler>& handler3, std::shared_ptr<IOEventHandler>& handler4, benchmark::State& state) UpdateHandler() argument 459 EventLoop(std::shared_ptr<TimerFdHandler>& handler, benchmark::State& state, std::thread& loopThread) EventLoop() argument [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/safe_block_queue_tracking_benchmark_test/ |
H A D | safe_block_queue_tracking_benchmark_test.cpp | 32 void SetUp(const ::benchmark::State& state) override 36 void TearDown(const ::benchmark::State& state) override 188 BENCHMARK_F(BenchmarkSafeBlockQueueTracking, testPut001)(benchmark::State& state) in BENCHMARK_F() 191 while (state.KeepRunning()) { in BENCHMARK_F() 196 "static_cast<unsigned>(1) did not equal qi.Size() as expected.", state); in BENCHMARK_F() local 198 "qi.GetUnfinishTaskNum() was not greater than 0 as expected.", state); in BENCHMARK_F() 207 BENCHMARK_F(BenchmarkSafeBlockQueueTracking, testGet001)(benchmark::State& state) in BENCHMARK_F() 213 while (state.KeepRunning()) { in BENCHMARK_F() 219 "static_cast<unsigned>(numberOfPushes) did not equal qi.Size() as expected.", state); in BENCHMARK_F() local 221 AssertEqual(t, expectedFirstElement, "t did not equal expectedFirstElement as expected.", state); in BENCHMARK_F() 430 QueuePushFullEquivalent(const int Equivalent, benchmark::State& state) QueuePushFullEquivalent() argument [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/observer_benchmark_test/ |
H A D | observer_benchmark_test.cpp | 30 void SetUp(const ::benchmark::State& state) override 34 void TearDown(const ::benchmark::State& state) override 106 BENCHMARK_F(BenchmarkObserverTest, test_Observer)(benchmark::State& state) in BENCHMARK_F() 109 while (state.KeepRunning()) { in BENCHMARK_F() 117 AssertEqual(ret, 1, "ret did not equal 1 as expected.", state); in BENCHMARK_F() 123 shared_ptr<BookObserver>& bookObserver3, benchmark::State& state) in AddObservers() 131 "bookObserver1->GetBooksCount() did not equal EXPECTED_COUNT_ONE as expected.", state); in AddObservers() 133 "bookObserver2->GetBooksCount() did not equal EXPECTED_COUNT_ONE as expected.", state); in AddObservers() 135 "bookObserver3->GetBooksCount() did not equal EXPECTED_COUNT_ONE as expected.", state); in AddObservers() 138 BENCHMARK_F(BenchmarkObserverTest, test_ObserverNotify)(benchmark::State& state) in BENCHMARK_F() 122 AddObservers(BookList& bookList, shared_ptr<BookObserver>& bookObserver1, shared_ptr<BookObserver>& bookObserver2, shared_ptr<BookObserver>& bookObserver3, benchmark::State& state) AddObservers() argument [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/task/ |
H A D | task_handle.rs | 22 use crate::task::state; 23 use crate::task::state::StateAction; 59 fn finish(self, state: usize, output: Result<T::Output, ScheduleError>) { in finish() 61 if state::is_care_join_handle(state) { in finish() 67 let cur = match self.header().state.turning_to_finish() { in finish() 72 if state::is_set_waker(cur) { in finish() 83 let prev = self.header().state.dec_ref(); 84 if state::is_last_ref_count(prev) { 94 if self.header().state [all...] |
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/uploader/ |
H A D | builder.rs | 33 state: S, 36 /// A state indicates that `UploaderBuilder` wants a `Reader`. 40 /// Creates a `UploaderBuilder` in the `WantsReader` state. 50 Self { state: WantsReader } in new() 64 state: WantsOperator { in reader() 84 state: WantsOperator { in multipart() 98 /// A state indicates that `UploaderBuilder` wants an `UploadOperator`. 107 /// Then the `UploaderBuilder` will switch to `WantsConfig` state. 136 state: WantsConfig { in operator() 137 reader: self.state in operator() [all...] |
/commonlibrary/rust/ylong_http/ylong_http/src/huffman/ |
H A D | mod.rs | 45 // We use `state` to hold temporary encoding state. 48 // in `state`. 50 // When `state` is not full, we add the result bits to `Unfilled`. 51 // `state`: 59 // `state`: 65 // Final `state`: 70 let mut state = 0u64; variables 72 // `state`. 79 state | [all...] |
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/downloader/ |
H A D | builder.rs | 32 state: S, 35 /// A state indicates that `DownloaderBuilder` wants a body that needs to be 40 /// Creates a `DownloaderBuilder` in the `WantsBody` state. 50 Self { state: WantsBody } in new() 55 /// Then the `DownloaderBuilder` will switch to `WantsOperator` state. 68 state: WantsOperator { body }, in body() 79 /// A state indicates that `DownloaderBuilder` wants an `DownloadOperator`. 87 /// Then the `DownloaderBuilder` will switch to `WantsConfig` state. 124 state: WantsConfig { in operator() 125 body: self.state in operator() [all...] |
/commonlibrary/ets_utils/js_concurrent_module/utils/locks/ |
H A D | graph.h | 186 Path DfsBuildCycleInfo(DfsStack &dfsStack, DfsState state) in DfsBuildCycleInfo() argument 189 VIdx originIdx = state.childIdx; in DfsBuildCycleInfo() 190 result.vertices.push_back(v_[state.childIdx].data); in DfsBuildCycleInfo() 191 result.vertices.push_back(v_[state.currentIdx].data); in DfsBuildCycleInfo() 192 result.edges.push_back(e_[state.currentIdx][state.childIdx]); in DfsBuildCycleInfo() 193 VIdx prevIdx = state.currentIdx; in DfsBuildCycleInfo() 207 DfsAction DfsVisitChildren(DfsStack &dfsStack, DfsState &state) in DfsVisitChildren() argument 209 for (; state.childIdx < NumVertices(); ++state in DfsVisitChildren() [all...] |