Home
last modified time | relevance | path

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

/external/v8/test/unittests/base/platform/
Dcondition-variable-unittest.cc60 static const int kThreadCount = 128; in TEST() local
61 ThreadWithMutexAndConditionVariable threads[kThreadCount]; in TEST()
63 for (int n = 0; n < kThreadCount; ++n) { in TEST()
74 for (int n = kThreadCount - 1; n >= 0; --n) { in TEST()
80 for (int n = 0; n < kThreadCount; ++n) { in TEST()
89 for (int n = kThreadCount - 1; n >= 0; --n) { in TEST()
99 for (int n = 0; n < kThreadCount; ++n) { in TEST()
140 static const int kThreadCount = 128; in TEST() local
141 ThreadWithSharedMutexAndConditionVariable threads[kThreadCount]; in TEST()
145 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/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/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/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.cc1095 const int kThreadCount = 7; in TEST() local
1096 scoped_ptr<ThreadType> counting_threads[kThreadCount]; in TEST()
1100 for (int i = 0; i < kThreadCount; ++i) { in TEST()
1107 for (int i = 0; i < kThreadCount; ++i) in TEST()
1114 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.cc256 const int kThreadCount = 10; in TEST_F() local
257 WorkQueue queue(kThreadCount); // Start the threads. in TEST_F()
396 queue.ThreadSafeCheckShutdown(kThreadCount)); in TEST_F()
400 const int kThreadCount = 200; in TEST_F() local
401 WorkQueue queue(kThreadCount); // Start the threads. in TEST_F()
428 queue.SetTaskCount(20 * kThreadCount); in TEST_F()
447 EXPECT_EQ(kThreadCount, queue.GetNumThreadsTakingAssignments()); in TEST_F()
448 EXPECT_EQ(kThreadCount, queue.GetNumThreadsCompletingTasks()); in TEST_F()
451 EXPECT_EQ(20 * kThreadCount, queue.GetNumberOfCompletedTasks()); in TEST_F()
455 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()