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

Unified Diff: runtime/vm/thread_pool_test.cc

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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.h » ('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 a555503eae905c57ef2514497de7cd3e7c01bcae..23d614094d5e488787553bd67374b48711f7bb91 100644
--- a/runtime/vm/thread_pool_test.cc
+++ b/runtime/vm/thread_pool_test.cc
@@ -19,9 +19,7 @@ UNIT_TEST_CASE(ThreadPool_Create) {
class TestTask : public ThreadPool::Task {
public:
- TestTask(Monitor* sync, bool* done)
- : sync_(sync), done_(done) {
- }
+ TestTask(Monitor* sync, bool* done) : sync_(sync), done_(done) {}
// Before running the task, *done_ should be true. This lets the caller
// ASSERT things knowing that the thread is still around. To unblock the
@@ -94,8 +92,7 @@ class SleepTask : public ThreadPool::Task {
: sync_(sync),
started_count_(started_count),
slept_count_(slept_count),
- millis_(millis) {
- }
+ millis_(millis) {}
virtual void Run() {
{
@@ -200,8 +197,7 @@ UNIT_TEST_CASE(ThreadPool_WorkerTimeout) {
class SpawnTask : public ThreadPool::Task {
public:
SpawnTask(ThreadPool* pool, Monitor* sync, int todo, int total, int* done)
- : pool_(pool), sync_(sync), todo_(todo), total_(total), done_(done) {
- }
+ : pool_(pool), sync_(sync), todo_(todo), total_(total), done_(done) {}
virtual void Run() {
todo_--; // Subtract one for current task.
@@ -209,8 +205,8 @@ class SpawnTask : public ThreadPool::Task {
// Spawn 0-2 children.
if (todo_ > 0) {
- pool_->Run(new SpawnTask(
- pool_, sync_, todo_ - child_todo, total_, done_));
+ pool_->Run(
+ new SpawnTask(pool_, sync_, todo_ - child_todo, total_, done_));
}
if (todo_ > 1) {
pool_->Run(new SpawnTask(pool_, sync_, child_todo, total_, done_));
« no previous file with comments | « runtime/vm/thread_pool.cc ('k') | runtime/vm/thread_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698