| Index: runtime/vm/thread_pool_test.cc
|
| diff --git a/runtime/vm/thread_pool_test.cc b/runtime/vm/thread_pool_test.cc
|
| index 7d5e82fb72cbbfdca3ac321d301af813d369cc6a..1706a99c3bbd1dccd9ed7a8b71abef3ea65221d8 100644
|
| --- a/runtime/vm/thread_pool_test.cc
|
| +++ b/runtime/vm/thread_pool_test.cc
|
| @@ -2,21 +2,19 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -#include "vm/os.h"
|
| -#include "vm/lockers.h"
|
| #include "vm/thread_pool.h"
|
| +#include "vm/lockers.h"
|
| +#include "vm/os.h"
|
| #include "vm/unit_test.h"
|
|
|
| namespace dart {
|
|
|
| DECLARE_FLAG(int, worker_timeout_millis);
|
|
|
| -
|
| VM_UNIT_TEST_CASE(ThreadPool_Create) {
|
| ThreadPool thread_pool;
|
| }
|
|
|
| -
|
| class TestTask : public ThreadPool::Task {
|
| public:
|
| TestTask(Monitor* sync, bool* done) : sync_(sync), done_(done) {}
|
| @@ -42,7 +40,6 @@ class TestTask : public ThreadPool::Task {
|
| bool* done_;
|
| };
|
|
|
| -
|
| VM_UNIT_TEST_CASE(ThreadPool_RunOne) {
|
| ThreadPool thread_pool;
|
| Monitor sync;
|
| @@ -63,7 +60,6 @@ VM_UNIT_TEST_CASE(ThreadPool_RunOne) {
|
| EXPECT_EQ(0U, thread_pool.workers_stopped());
|
| }
|
|
|
| -
|
| VM_UNIT_TEST_CASE(ThreadPool_RunMany) {
|
| const int kTaskCount = 100;
|
| ThreadPool thread_pool;
|
| @@ -85,7 +81,6 @@ VM_UNIT_TEST_CASE(ThreadPool_RunMany) {
|
| }
|
| }
|
|
|
| -
|
| class SleepTask : public ThreadPool::Task {
|
| public:
|
| SleepTask(Monitor* sync, int* started_count, int* slept_count, int millis)
|
| @@ -118,7 +113,6 @@ class SleepTask : public ThreadPool::Task {
|
| int millis_;
|
| };
|
|
|
| -
|
| VM_UNIT_TEST_CASE(ThreadPool_WorkerShutdown) {
|
| const int kTaskCount = 10;
|
| Monitor sync;
|
| @@ -156,7 +150,6 @@ VM_UNIT_TEST_CASE(ThreadPool_WorkerShutdown) {
|
| EXPECT_EQ(kTaskCount, final_count);
|
| }
|
|
|
| -
|
| VM_UNIT_TEST_CASE(ThreadPool_WorkerTimeout) {
|
| // Adjust the worker timeout so that we timeout quickly.
|
| int saved_timeout = FLAG_worker_timeout_millis;
|
| @@ -193,7 +186,6 @@ VM_UNIT_TEST_CASE(ThreadPool_WorkerTimeout) {
|
| FLAG_worker_timeout_millis = saved_timeout;
|
| }
|
|
|
| -
|
| class SpawnTask : public ThreadPool::Task {
|
| public:
|
| SpawnTask(ThreadPool* pool, Monitor* sync, int todo, int total, int* done)
|
| @@ -229,7 +221,6 @@ class SpawnTask : public ThreadPool::Task {
|
| int* done_;
|
| };
|
|
|
| -
|
| VM_UNIT_TEST_CASE(ThreadPool_RecursiveSpawn) {
|
| ThreadPool thread_pool;
|
| Monitor sync;
|
|
|