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

Unified Diff: runtime/vm/isolate_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/isolate_reload_test.cc ('k') | runtime/vm/jit_optimizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate_test.cc
diff --git a/runtime/vm/isolate_test.cc b/runtime/vm/isolate_test.cc
index 53b63e6ec800f1a27eb47324db0556c3589afce7..8af39eacaf05587bffd4ca33e8fdef14dbf2eaee 100644
--- a/runtime/vm/isolate_test.cc
+++ b/runtime/vm/isolate_test.cc
@@ -2,10 +2,10 @@
// 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/isolate.h"
#include "include/dart_api.h"
#include "platform/assert.h"
#include "vm/globals.h"
-#include "vm/isolate.h"
#include "vm/lockers.h"
#include "vm/thread_barrier.h"
#include "vm/thread_pool.h"
@@ -22,7 +22,6 @@ VM_UNIT_TEST_CASE(IsolateCurrent) {
EXPECT_EQ(reinterpret_cast<Dart_Isolate>(NULL), Dart_CurrentIsolate());
}
-
// Test to ensure that an exception is thrown if no isolate creation
// callback has been set by the embedder when an isolate is spawned.
TEST_CASE(IsolateSpawn) {
@@ -71,7 +70,6 @@ TEST_CASE(IsolateSpawn) {
DART_CHECK_VALID(Dart_Invoke(
async_lib, NewString("_setScheduleImmediateClosure"), 1, args));
-
result = Dart_Invoke(test_lib, NewString("testMain"), 0, NULL);
EXPECT_VALID(result);
// Run until all ports to isolate are closed.
@@ -82,7 +80,6 @@ TEST_CASE(IsolateSpawn) {
EXPECT_VALID(exception_result);
}
-
class InterruptChecker : public ThreadPool::Task {
public:
static const intptr_t kTaskCount;
@@ -116,7 +113,6 @@ class InterruptChecker : public ThreadPool::Task {
ThreadBarrier* barrier_;
};
-
const intptr_t InterruptChecker::kTaskCount = 5;
const intptr_t InterruptChecker::kIterations = 10;
@@ -151,7 +147,6 @@ TEST_CASE(StackLimitInterrupts) {
barrier.Exit();
}
-
class IsolateTestHelper {
public:
static uword GetStackLimit(Thread* thread) { return thread->stack_limit_; }
@@ -166,7 +161,6 @@ class IsolateTestHelper {
}
};
-
TEST_CASE(NoOOBMessageScope) {
// EXPECT_EQ is picky about type agreement for its arguments.
const uword kZero = 0;
« no previous file with comments | « runtime/vm/isolate_reload_test.cc ('k') | runtime/vm/jit_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698