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> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "base/memory/scoped_vector.h" | |
12 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
13 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
14 #include "base/synchronization/condition_variable.h" | 13 #include "base/synchronization/condition_variable.h" |
15 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
16 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
17 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
18 #include "base/time/time.h" | 17 #include "base/time/time.h" |
19 #include "build/build_config.h" | 18 #include "build/build_config.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "testing/perf/perf_test.h" | 20 #include "testing/perf/perf_test.h" |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 | 294 |
296 TEST_F(PostTaskTest, TenTasksPerReload) { | 295 TEST_F(PostTaskTest, TenTasksPerReload) { |
297 Run(10000, 10); | 296 Run(10000, 10); |
298 } | 297 } |
299 | 298 |
300 TEST_F(PostTaskTest, OneHundredTasksPerReload) { | 299 TEST_F(PostTaskTest, OneHundredTasksPerReload) { |
301 Run(1000, 100); | 300 Run(1000, 100); |
302 } | 301 } |
303 | 302 |
304 } // namespace base | 303 } // namespace base |
OLD | NEW |