/external/compiler-rt/lib/tsan/tests/rtl/ |
H A D | tsan_mutex.cc | 179 const int kThreadCount = 8; local 193 pthread_t threads[kThreadCount]; 194 for (int t = 0; t < kThreadCount; t++) 196 for (int t = 0; t < kThreadCount; t++)
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_stoptheworld_test.cc | 92 static const uptr kThreadCount = 50; member in namespace:__sanitizer 99 volatile int counters[kThreadCount]; 100 pthread_t thread_ids[kThreadCount]; 118 if (this_thread_index + 1 < kThreadCount) { 127 kThreadCount - callback_argument->thread_index); 148 int counters_at_init[kThreadCount]; 149 for (uptr j = 0; j < kThreadCount; j++) 154 for (uptr j = 0; j < kThreadCount; j++) 182 while (__sync_fetch_and_add(&argument.thread_index, 0) < kThreadCount) 187 for (uptr i = 0; i < kThreadCount; [all...] |
H A D | sanitizer_linux_test.cc | 67 for (uptr i = 0; i < kThreadCount; i++) { 85 static const uptr kThreadCount = 20; member in class:__sanitizer::ThreadListerTest
|
/external/google-breakpad/src/testing/gtest/test/ |
H A D | gtest_stress_test.cc | 63 const int kThreadCount = 50; member in namespace:testing::__anon6434 95 for (int i = 0; i < kThreadCount; i++) { 111 // This assertion should fail kThreadCount times per thread. It 130 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; 132 for (int i = 0; i != kThreadCount; i++) 140 for (int i = 0; i != kThreadCount; i++) 144 // Ensures that kThreadCount*kThreadCount failures have been reported. 154 EXPECT_EQ(kThreadCount * 2 + 1, result->test_property_count()) 157 for (int i = 0; i < kThreadCount; [all...] |
H A D | gtest-port_test.cc | 1064 const int kThreadCount = 7; local 1065 scoped_ptr<ThreadType> counting_threads[kThreadCount]; 1067 // Creates and runs kThreadCount threads that increment locked_counter 1069 for (int i = 0; i < kThreadCount; ++i) { 1076 for (int i = 0; i < kThreadCount; ++i) 1083 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value());
|
/external/gtest/test/ |
H A D | gtest_stress_test.cc | 62 const int kThreadCount = 50; member in namespace:testing::__anon6546 94 for (int i = 0; i < kThreadCount; i++) { 110 // This assertion should fail kThreadCount times per thread. It 129 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; 131 for (int i = 0; i != kThreadCount; i++) 139 for (int i = 0; i != kThreadCount; i++) 143 // Ensures that kThreadCount*kThreadCount failures have been reported. 153 EXPECT_EQ(kThreadCount * 2 + 1, result->test_property_count()) 156 for (int i = 0; i < kThreadCount; [all...] |
H A D | gtest-port_test.cc | 1095 const int kThreadCount = 7; local 1096 scoped_ptr<ThreadType> counting_threads[kThreadCount]; 1098 // Creates and runs kThreadCount threads that increment locked_counter 1100 for (int i = 0; i < kThreadCount; ++i) { 1107 for (int i = 0; i < kThreadCount; ++i) 1114 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value());
|
/external/protobuf/gtest/test/ |
H A D | gtest_stress_test.cc | 63 const int kThreadCount = 50; member in namespace:testing::__anon15481 95 for (int i = 0; i < kThreadCount; i++) { 111 // This assertion should fail kThreadCount times per thread. It 130 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; 132 for (int i = 0; i != kThreadCount; i++) 140 for (int i = 0; i != kThreadCount; i++) 144 // Ensures that kThreadCount*kThreadCount failures have been reported. 154 EXPECT_EQ(kThreadCount * 2 + 1, result->test_property_count()) 157 for (int i = 0; i < kThreadCount; [all...] |
H A D | gtest-port_test.cc | 870 const int kThreadCount = 7; local 871 scoped_ptr<ThreadType> counting_threads[kThreadCount]; 873 // Creates and runs kThreadCount threads that increment locked_counter 875 for (int i = 0; i < kThreadCount; ++i) { 882 for (int i = 0; i < kThreadCount; ++i) 889 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value());
|
/external/v8/test/unittests/base/platform/ |
H A D | condition-variable-unittest.cc | 60 static const int kThreadCount = 128; local 61 ThreadWithMutexAndConditionVariable threads[kThreadCount]; 63 for (int n = 0; n < kThreadCount; ++n) { 74 for (int n = kThreadCount - 1; n >= 0; --n) { 80 for (int n = 0; n < kThreadCount; ++n) { 89 for (int n = kThreadCount - 1; n >= 0; --n) { 99 for (int n = 0; n < kThreadCount; ++n) { 140 static const int kThreadCount = 128; local 141 ThreadWithSharedMutexAndConditionVariable threads[kThreadCount]; 145 for (int n = 0; n < kThreadCount; [all...] |
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/ |
H A D | gtest_stress_test.cc | 62 const int kThreadCount = 50; member in namespace:testing::__anon19829 94 for (int i = 0; i < kThreadCount; i++) { 110 // This assertion should fail kThreadCount times per thread. It 129 scoped_ptr<ThreadWithParam<int> > threads[kThreadCount]; 131 for (int i = 0; i != kThreadCount; i++) 139 for (int i = 0; i != kThreadCount; i++) 143 // Ensures that kThreadCount*kThreadCount failures have been reported. 153 EXPECT_EQ(kThreadCount * 2 + 1, result->test_property_count()) 156 for (int i = 0; i < kThreadCount; [all...] |
H A D | gtest-port_test.cc | 1113 const int kThreadCount = 7; local 1114 scoped_ptr<ThreadType> counting_threads[kThreadCount]; 1116 // Creates and runs kThreadCount threads that increment locked_counter 1118 for (int i = 0; i < kThreadCount; ++i) { 1125 for (int i = 0; i < kThreadCount; ++i) 1132 EXPECT_EQ(kCycleCount * kThreadCount, locked_counter.value());
|
/external/libchrome/base/synchronization/ |
H A D | condition_variable_unittest.cc | 256 const int kThreadCount = 10; local 257 WorkQueue queue(kThreadCount); // Start the threads. 396 queue.ThreadSafeCheckShutdown(kThreadCount)); 400 const int kThreadCount = 200; local 401 WorkQueue queue(kThreadCount); // Start the threads. 428 queue.SetTaskCount(20 * kThreadCount); 447 EXPECT_EQ(kThreadCount, queue.GetNumThreadsTakingAssignments()); 448 EXPECT_EQ(kThreadCount, queue.GetNumThreadsCompletingTasks()); 451 EXPECT_EQ(20 * kThreadCount, queue.GetNumberOfCompletedTasks()); 455 queue.SetTaskCount(kThreadCount * [all...] |