Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1639)

Unified Diff: runtime/vm/thread_pool_test.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/thread_pool.cc ('k') | runtime/vm/thread_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « runtime/vm/thread_pool.cc ('k') | runtime/vm/thread_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698