Home
last modified time | relevance | path

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

/external/chromium_org/v8/test/cctest/
Dtest-condition-variable.cc79 static const int kThreadCount = 128; in TEST() local
80 ThreadWithMutexAndConditionVariable threads[kThreadCount]; in TEST()
82 for (int n = 0; n < kThreadCount; ++n) { in TEST()
93 for (int n = kThreadCount - 1; n >= 0; --n) { in TEST()
99 for (int n = 0; n < kThreadCount; ++n) { in TEST()
108 for (int n = kThreadCount - 1; n >= 0; --n) { in TEST()
118 for (int n = 0; n < kThreadCount; ++n) { in TEST()
153 static const int kThreadCount = 128; in TEST() local
154 ThreadWithSharedMutexAndConditionVariable threads[kThreadCount]; in TEST()
158 for (int n = 0; n < kThreadCount; ++n) { in TEST()
[all …]
/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/chromium_org/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.cc1102 const int kThreadCount = 7; in TEST() local
1103 scoped_ptr<ThreadType> counting_threads[kThreadCount]; in TEST()
1107 for (int i = 0; i < kThreadCount; ++i) { in TEST()
1114 for (int i = 0; i < kThreadCount; ++i) in TEST()
1121 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value()); in TEST()
/external/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.cc1058 const int kThreadCount = 7; in TEST() local
1059 scoped_ptr<ThreadType> counting_threads[kThreadCount]; in TEST()
1063 for (int i = 0; i < kThreadCount; ++i) { in TEST()
1070 for (int i = 0; i < kThreadCount; ++i) in TEST()
1077 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value()); in TEST()
/external/chromium/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.cc1038 const int kThreadCount = 7; in TEST() local
1039 scoped_ptr<ThreadType> counting_threads[kThreadCount]; in TEST()
1043 for (int i = 0; i < kThreadCount; ++i) { in TEST()
1050 for (int i = 0; i < kThreadCount; ++i) in TEST()
1057 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value()); in TEST()
/external/chromium/base/synchronization/
Dcondition_variable_unittest.cc193 const int kThreadCount = 10; in TEST_F() local
194 WorkQueue queue(kThreadCount); // Start the threads. in TEST_F()
376 queue.ThreadSafeCheckShutdown(kThreadCount)); in TEST_F()
380 const int kThreadCount = 200; in TEST_F() local
381 WorkQueue queue(kThreadCount); // Start the threads. in TEST_F()
408 queue.SetTaskCount(20 * kThreadCount); in TEST_F()
427 EXPECT_EQ(kThreadCount, queue.GetNumThreadsTakingAssignments()); in TEST_F()
428 EXPECT_EQ(kThreadCount, queue.GetNumThreadsCompletingTasks()); in TEST_F()
431 EXPECT_EQ(20 * kThreadCount, queue.GetNumberOfCompletedTasks()); in TEST_F()
435 queue.SetTaskCount(kThreadCount * 4); in TEST_F()
[all …]
/external/chromium_org/base/synchronization/
Dcondition_variable_unittest.cc254 const int kThreadCount = 10; in TEST_F() local
255 WorkQueue queue(kThreadCount); // Start the threads. in TEST_F()
394 queue.ThreadSafeCheckShutdown(kThreadCount)); in TEST_F()
398 const int kThreadCount = 200; in TEST_F() local
399 WorkQueue queue(kThreadCount); // Start the threads. in TEST_F()
426 queue.SetTaskCount(20 * kThreadCount); in TEST_F()
445 EXPECT_EQ(kThreadCount, queue.GetNumThreadsTakingAssignments()); in TEST_F()
446 EXPECT_EQ(kThreadCount, queue.GetNumThreadsCompletingTasks()); in TEST_F()
449 EXPECT_EQ(20 * kThreadCount, queue.GetNumberOfCompletedTasks()); in TEST_F()
453 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()
/external/protobuf/gtest/test/
Dgtest_stress_test.cc53 const int kThreadCount = 50; variable
84 for (int i = 0; i < kThreadCount; i++) { in ManyAsserts()
/external/chromium/chrome/browser/sync/syncable/
Dsyncable_unittest.cc1661 const int kThreadCount = 7; in TEST() local
1662 base::PlatformThreadHandle threads[kThreadCount]; in TEST()
1663 scoped_ptr<StressTransactionsDelegate> thread_delegates[kThreadCount]; in TEST()
1665 for (int i = 0; i < kThreadCount; ++i) { in TEST()
1672 for (int i = 0; i < kThreadCount; ++i) { in TEST()
/external/chromium_org/sync/syncable/
Dsyncable_unittest.cc2189 const int kThreadCount = 7; in TEST() local
2190 base::PlatformThreadHandle threads[kThreadCount]; in TEST()
2191 scoped_ptr<StressTransactionsDelegate> thread_delegates[kThreadCount]; in TEST()
2193 for (int i = 0; i < kThreadCount; ++i) { in TEST()
2199 for (int i = 0; i < kThreadCount; ++i) { in TEST()