/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_stoptheworld_test.cc | 92 static const uptr kThreadCount = 50; variable 99 volatile int counters[kThreadCount]; 100 pthread_t thread_ids[kThreadCount]; 118 if (this_thread_index + 1 < kThreadCount) { in AdvancedIncrementerThread() 127 kThreadCount - callback_argument->thread_index); in AdvancedIncrementerThread() 148 int counters_at_init[kThreadCount]; in AdvancedCallback() 149 for (uptr j = 0; j < kThreadCount; j++) in AdvancedCallback() 154 for (uptr j = 0; j < kThreadCount; j++) in AdvancedCallback() 182 while (__sync_fetch_and_add(&argument.thread_index, 0) < kThreadCount) in TEST() 187 for (uptr i = 0; i < kThreadCount; i++) in TEST()
|
D | sanitizer_linux_test.cc | 67 for (uptr i = 0; i < kThreadCount; i++) { in SetUp() 85 static const uptr kThreadCount = 20; member in __sanitizer::ThreadListerTest
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_stoptheworld_test.cpp | 91 static const uptr kThreadCount = 50; variable 98 volatile int counters[kThreadCount]; 99 pthread_t thread_ids[kThreadCount]; 117 if (this_thread_index + 1 < kThreadCount) { in AdvancedIncrementerThread() 126 kThreadCount - callback_argument->thread_index); in AdvancedIncrementerThread() 147 int counters_at_init[kThreadCount]; in AdvancedCallback() 148 for (uptr j = 0; j < kThreadCount; j++) in AdvancedCallback() 153 for (uptr j = 0; j < kThreadCount; j++) in AdvancedCallback() 181 while (__sync_fetch_and_add(&argument.thread_index, 0) < kThreadCount) in TEST() 186 for (uptr i = 0; i < kThreadCount; i++) in TEST()
|
D | sanitizer_linux_test.cpp | 67 for (uptr i = 0; i < kThreadCount; i++) { in SetUp() 85 static const uptr kThreadCount = 20; member in __sanitizer::ThreadListerTest
|
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/test/ |
D | gtest_stress_test.cc | 54 const int kThreadCount = 50; variable 86 for (int i = 0; i < kThreadCount; i++) { in ManyAsserts() 121 std::unique_ptr<ThreadWithParam<int> > threads[kThreadCount]; in TEST() 123 for (int i = 0; i != kThreadCount; i++) in TEST() 131 for (int i = 0; i != kThreadCount; i++) in TEST() 145 EXPECT_EQ(kThreadCount * 2 + 1, result->test_property_count()) in TEST() 148 for (int i = 0; i < kThreadCount; ++i) { in TEST() 152 CheckTestFailureCount(kThreadCount*kThreadCount); in TEST()
|
D | googletest-port-test.cc | 1087 const int kThreadCount = 7; in TEST() local 1088 std::unique_ptr<ThreadType> counting_threads[kThreadCount]; in TEST() 1092 for (int i = 0; i < kThreadCount; ++i) { in TEST() 1099 for (int i = 0; i < kThreadCount; ++i) in TEST() 1106 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value()); in TEST()
|
/external/googletest/googletest/test/ |
D | gtest_stress_test.cc | 54 const int kThreadCount = 50; variable 86 for (int i = 0; i < kThreadCount; i++) { in ManyAsserts() 121 std::unique_ptr<ThreadWithParam<int> > threads[kThreadCount]; in TEST() 123 for (int i = 0; i != kThreadCount; i++) in TEST() 131 for (int i = 0; i != kThreadCount; i++) in TEST() 145 EXPECT_EQ(kThreadCount * 2 + 1, result->test_property_count()) in TEST() 148 for (int i = 0; i < kThreadCount; ++i) { in TEST() 152 CheckTestFailureCount(kThreadCount*kThreadCount); in TEST()
|
D | googletest-port-test.cc | 1075 const int kThreadCount = 7; in TEST() local 1076 std::unique_ptr<ThreadType> counting_threads[kThreadCount]; in TEST() 1080 for (int i = 0; i < kThreadCount; ++i) { in TEST() 1087 for (int i = 0; i < kThreadCount; ++i) in TEST() 1094 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value()); in TEST()
|
/external/skia/tests/ |
D | SkScalerCacheTest.cpp | 33 static constexpr int kThreadCount = 4; in DEF_TEST() local 35 Barrier barrier{kThreadCount}; in DEF_TEST() 57 auto executor = SkExecutor::MakeFIFOThreadPool(kThreadCount); in DEF_TEST() 67 auto local = data.subspan(threadIndex * 2, data.size() - kThreadCount * 2); in DEF_TEST() 83 SkTaskGroup(*executor).batch(kThreadCount, perThread); in DEF_TEST()
|
/external/libchrome/base/synchronization/ |
D | condition_variable_unittest.cc | 258 const int kThreadCount = 10; in TEST_F() local 259 WorkQueue queue(kThreadCount); // Start the threads. in TEST_F() 398 queue.ThreadSafeCheckShutdown(kThreadCount)); in TEST_F() 408 const int kThreadCount = 200; in TEST_F() local 409 WorkQueue queue(kThreadCount); // Start the threads. in TEST_F() 436 queue.SetTaskCount(20 * kThreadCount); in TEST_F() 455 EXPECT_EQ(kThreadCount, queue.GetNumThreadsTakingAssignments()); in TEST_F() 456 EXPECT_EQ(kThreadCount, queue.GetNumThreadsCompletingTasks()); in TEST_F() 459 EXPECT_EQ(20 * kThreadCount, queue.GetNumberOfCompletedTasks()); in TEST_F() 463 queue.SetTaskCount(kThreadCount * 4); in TEST_F() [all …]
|
/external/angle/src/tests/egl_tests/ |
D | EGLMultiContextTest.cpp | 88 constexpr size_t kThreadCount = 2; in TEST_P() local 89 EGLSurface surface[kThreadCount] = {EGL_NO_SURFACE, EGL_NO_SURFACE}; in TEST_P() 90 EGLContext ctx[kThreadCount] = {EGL_NO_CONTEXT, EGL_NO_CONTEXT}; in TEST_P() 94 for (size_t t = 0; t < kThreadCount; ++t) in TEST_P() 229 for (size_t t = 0; t < kThreadCount; ++t) in TEST_P()
|
D | EGLContextSharingTest.cpp | 374 constexpr size_t kThreadCount = 2; in TEST_P() local 375 EGLSurface surface[kThreadCount] = {EGL_NO_SURFACE, EGL_NO_SURFACE}; in TEST_P() 376 EGLContext ctx[kThreadCount] = {EGL_NO_CONTEXT, EGL_NO_CONTEXT}; in TEST_P() 380 for (size_t t = 0; t < kThreadCount; ++t) in TEST_P() 405 GLRenderbuffer renderbuffer[kThreadCount]; in TEST_P() 406 GLFramebuffer fbo[kThreadCount]; in TEST_P() 407 GLProgram program[kThreadCount]; in TEST_P() 409 for (size_t t = 0; t < kThreadCount; ++t) in TEST_P() 537 for (size_t t = 0; t < kThreadCount; ++t) in TEST_P()
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
D | tsan_mutex.cc | 179 const int kThreadCount = 8; in TEST() local 193 pthread_t threads[kThreadCount]; in TEST() 194 for (int t = 0; t < kThreadCount; t++) in TEST() 196 for (int t = 0; t < kThreadCount; t++) in TEST()
|
/external/llvm-project/compiler-rt/lib/tsan/tests/rtl/ |
D | tsan_mutex.cpp | 178 const int kThreadCount = 8; in TEST() local 192 pthread_t threads[kThreadCount]; in TEST() 193 for (int t = 0; t < kThreadCount; t++) in TEST() 195 for (int t = 0; t < kThreadCount; t++) in TEST()
|
/external/angle/src/tests/gl_tests/ |
D | MultithreadingTest.cpp | 164 constexpr size_t kThreadCount = 16; in TEST_P() local 165 std::array<std::thread, kThreadCount> threads; in TEST_P() 466 constexpr size_t kThreadCount = 16; in TEST_P() local 468 std::vector<std::thread> threads(kThreadCount); in TEST_P() 469 std::vector<EGLContext> contexts(kThreadCount); in TEST_P() 470 for (size_t threadIdx = 0; threadIdx < kThreadCount; threadIdx++) in TEST_P() 481 while (barrier < kThreadCount) in TEST_P()
|