OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "cc/resources/worker_pool.h" | 5 #include "cc/resources/worker_pool.h" |
6 | 6 |
7 #include "base/time.h" | 7 #include "base/time/time.h" |
8 #include "cc/base/completion_event.h" | 8 #include "cc/base/completion_event.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 static const int kTimeLimitMillis = 2000; | 15 static const int kTimeLimitMillis = 2000; |
16 static const int kWarmupRuns = 5; | 16 static const int kWarmupRuns = 5; |
17 static const int kTimeCheckInterval = 10; | 17 static const int kTimeCheckInterval = 10; |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 RunExecuteTasksTest("execute_tasks_2_10", 2, 10); | 257 RunExecuteTasksTest("execute_tasks_2_10", 2, 10); |
258 RunExecuteTasksTest("execute_tasks_5_5", 5, 5); | 258 RunExecuteTasksTest("execute_tasks_5_5", 5, 5); |
259 RunExecuteTasksTest("execute_tasks_10_2", 10, 2); | 259 RunExecuteTasksTest("execute_tasks_10_2", 10, 2); |
260 RunExecuteTasksTest("execute_tasks_1000_1", 1000, 1); | 260 RunExecuteTasksTest("execute_tasks_1000_1", 1000, 1); |
261 RunExecuteTasksTest("execute_tasks_10_1", 10, 1); | 261 RunExecuteTasksTest("execute_tasks_10_1", 10, 1); |
262 } | 262 } |
263 | 263 |
264 } // namespace | 264 } // namespace |
265 | 265 |
266 } // namespace cc | 266 } // namespace cc |
OLD | NEW |