OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <stddef.h> |
| 6 |
5 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
6 #include "base/bind.h" | 8 #include "base/bind.h" |
7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
8 #include "base/location.h" | 10 #include "base/location.h" |
9 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
10 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
11 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
12 #include "base/synchronization/condition_variable.h" | 14 #include "base/synchronization/condition_variable.h" |
13 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
14 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 typedef EventPerfTest<PthreadEvent> PthreadEventPerfTest; | 304 typedef EventPerfTest<PthreadEvent> PthreadEventPerfTest; |
303 TEST_F(PthreadEventPerfTest, EventPingPong) { | 305 TEST_F(PthreadEventPerfTest, EventPingPong) { |
304 RunPingPongTest("4_PthreadCondVar_Threads", 4); | 306 RunPingPongTest("4_PthreadCondVar_Threads", 4); |
305 } | 307 } |
306 | 308 |
307 #endif | 309 #endif |
308 | 310 |
309 } // namespace | 311 } // namespace |
310 | 312 |
311 } // namespace base | 313 } // namespace base |
OLD | NEW |