Home
last modified time | relevance | path

Searched refs:kThreadCount (Results 1 – 8 of 8) sorted by relevance

/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_stoptheworld_test.cc92 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()
Dsanitizer_linux_test.cc67 for (uptr i = 0; i < kThreadCount; i++) { in SetUp()
85 static const uptr kThreadCount = 20; member in __sanitizer::ThreadListerTest
/external/googletest/googletest/test/
Dgtest_stress_test.cc54 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()
Dgoogletest-port-test.cc1092 const int kThreadCount = 7; in TEST() local
1093 std::unique_ptr<ThreadType> counting_threads[kThreadCount]; in TEST()
1097 for (int i = 0; i < kThreadCount; ++i) { in TEST()
1104 for (int i = 0; i < kThreadCount; ++i) in TEST()
1111 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value()); in TEST()
/external/google-breakpad/src/testing/gtest/test/
Dgtest_stress_test.cc63 const int kThreadCount = 50; variable
95 for (int i = 0; i < kThreadCount; i++) { in ManyAsserts()
130 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; in TEST()
132 for (int i = 0; i != kThreadCount; i++) in TEST()
140 for (int i = 0; i != kThreadCount; i++) in TEST()
154 EXPECT_EQ(kThreadCount * 2 + 1, result->test_property_count()) in TEST()
157 for (int i = 0; i < kThreadCount; ++i) { in TEST()
161 CheckTestFailureCount(kThreadCount*kThreadCount); in TEST()
Dgtest-port_test.cc1064 const int kThreadCount = 7; in TEST() local
1065 scoped_ptr<ThreadType> counting_threads[kThreadCount]; in TEST()
1069 for (int i = 0; i < kThreadCount; ++i) { in TEST()
1076 for (int i = 0; i < kThreadCount; ++i) in TEST()
1083 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value()); in TEST()
/external/libchrome/base/synchronization/
Dcondition_variable_unittest.cc258 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/compiler-rt/lib/tsan/tests/rtl/
Dtsan_mutex.cc179 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()