Home
last modified time | relevance | path

Searched refs:kThreadCount (Results 1 – 14 of 14) 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/protobuf/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.cc870 const int kThreadCount = 7; in TEST() local
871 scoped_ptr<ThreadType> counting_threads[kThreadCount]; in TEST()
875 for (int i = 0; i < kThreadCount; ++i) { in TEST()
882 for (int i = 0; i < kThreadCount; ++i) in TEST()
889 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value()); in TEST()
/external/googletest/googletest/test/
Dgtest_stress_test.cc62 const int kThreadCount = 50; variable
94 for (int i = 0; i < kThreadCount; i++) { in ManyAsserts()
129 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; in TEST()
131 for (int i = 0; i != kThreadCount; i++) in TEST()
139 for (int i = 0; i != kThreadCount; i++) in TEST()
153 EXPECT_EQ(kThreadCount * 2 + 1, result->test_property_count()) in TEST()
156 for (int i = 0; i < kThreadCount; ++i) { in TEST()
160 CheckTestFailureCount(kThreadCount*kThreadCount); in TEST()
Dgtest-port_test.cc1108 const int kThreadCount = 7; in TEST() local
1109 scoped_ptr<ThreadType> counting_threads[kThreadCount]; in TEST()
1113 for (int i = 0; i < kThreadCount; ++i) { in TEST()
1120 for (int i = 0; i < kThreadCount; ++i) in TEST()
1127 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value()); in TEST()
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/
Dgtest_stress_test.cc62 const int kThreadCount = 50; variable
94 for (int i = 0; i < kThreadCount; i++) { in ManyAsserts()
129 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; in TEST()
131 for (int i = 0; i != kThreadCount; i++) in TEST()
139 for (int i = 0; i != kThreadCount; i++) in TEST()
153 EXPECT_EQ(kThreadCount * 2 + 1, result->test_property_count()) in TEST()
156 for (int i = 0; i < kThreadCount; ++i) { in TEST()
160 CheckTestFailureCount(kThreadCount*kThreadCount); in TEST()
Dgtest-port_test.cc1113 const int kThreadCount = 7; in TEST() local
1114 scoped_ptr<ThreadType> counting_threads[kThreadCount]; in TEST()
1118 for (int i = 0; i < kThreadCount; ++i) { in TEST()
1125 for (int i = 0; i < kThreadCount; ++i) in TEST()
1132 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/v8/testing/gtest/test/
Dgtest_stress_test.cc62 const int kThreadCount = 50; variable
94 for (int i = 0; i < kThreadCount; i++) { in ManyAsserts()
129 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; in TEST()
131 for (int i = 0; i != kThreadCount; i++) in TEST()
139 for (int i = 0; i != kThreadCount; i++) in TEST()
153 EXPECT_EQ(kThreadCount * 2 + 1, result->test_property_count()) in TEST()
156 for (int i = 0; i < kThreadCount; ++i) { in TEST()
160 CheckTestFailureCount(kThreadCount*kThreadCount); in TEST()
Dgtest-port_test.cc1108 const int kThreadCount = 7; in TEST() local
1109 scoped_ptr<ThreadType> counting_threads[kThreadCount]; in TEST()
1113 for (int i = 0; i < kThreadCount; ++i) { in TEST()
1120 for (int i = 0; i < kThreadCount; ++i) in TEST()
1127 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()
402 const int kThreadCount = 200; in TEST_F() local
403 WorkQueue queue(kThreadCount); // Start the threads. in TEST_F()
430 queue.SetTaskCount(20 * kThreadCount); in TEST_F()
449 EXPECT_EQ(kThreadCount, queue.GetNumThreadsTakingAssignments()); in TEST_F()
450 EXPECT_EQ(kThreadCount, queue.GetNumThreadsCompletingTasks()); in TEST_F()
453 EXPECT_EQ(20 * kThreadCount, queue.GetNumberOfCompletedTasks()); in TEST_F()
457 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()