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

Unified Diff: runtime/vm/custom_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/cpuinfo_win.cc ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/custom_isolate_test.cc
diff --git a/runtime/vm/custom_isolate_test.cc b/runtime/vm/custom_isolate_test.cc
index 188e6b8b48b0486e22355ed469d852c558c4fcdb..90ac39c680d34c7e1056dad2c3ccc87914114b84 100644
--- a/runtime/vm/custom_isolate_test.cc
+++ b/runtime/vm/custom_isolate_test.cc
@@ -24,7 +24,6 @@ static Dart_NativeFunction NativeLookup(Dart_Handle name,
int argc,
bool* auto_setup_scope);
-
static const char* kCustomIsolateScriptChars =
"import 'dart:isolate';\n"
"\n"
@@ -77,7 +76,6 @@ static const char* kCustomIsolateScriptChars =
" return 'success';\n"
"}\n";
-
// An entry in our event queue.
class Event {
protected:
@@ -95,7 +93,6 @@ class Event {
Event* next_;
};
-
// A simple event queue for our test.
class EventQueue {
public:
@@ -153,7 +150,6 @@ class EventQueue {
};
EventQueue* event_queue;
-
// Start an isolate.
class StartEvent : public Event {
public:
@@ -166,7 +162,6 @@ class StartEvent : public Event {
const char* main_;
};
-
void StartEvent::Process() {
OS::Print(">> StartEvent with isolate(%p)--\n", isolate());
Dart_EnterIsolate(isolate());
@@ -186,7 +181,6 @@ void StartEvent::Process() {
Dart_ExitIsolate();
}
-
// Notify an isolate of a pending message.
class MessageEvent : public Event {
public:
@@ -197,7 +191,6 @@ class MessageEvent : public Event {
virtual void Process();
};
-
void MessageEvent::Process() {
OS::Print("$$ MessageEvent with isolate(%p)\n", isolate());
Dart_EnterIsolate(isolate());
@@ -219,14 +212,12 @@ void MessageEvent::Process() {
ASSERT(Dart_CurrentIsolate() == NULL);
}
-
static void NotifyMessage(Dart_Isolate dest_isolate) {
OS::Print("-- Notify isolate(%p) of pending message --\n", dest_isolate);
OS::Print("-- Adding MessageEvent to queue --\n");
event_queue->Add(new MessageEvent(dest_isolate));
}
-
static Dart_NativeFunction NativeLookup(Dart_Handle name,
int argc,
bool* auto_setup_scope) {
@@ -243,7 +234,6 @@ static Dart_NativeFunction NativeLookup(Dart_Handle name,
return NULL;
}
-
char* saved_echo = NULL;
static void native_echo(Dart_NativeArguments args) {
Dart_EnterScope();
@@ -260,7 +250,6 @@ static void native_echo(Dart_NativeArguments args) {
Dart_ExitScope();
}
-
static void CustomIsolateImpl_start(Dart_NativeArguments args) {
OS::Print("-- Enter: CustomIsolateImpl_start --\n");
@@ -314,7 +303,6 @@ static void CustomIsolateImpl_start(Dart_NativeArguments args) {
Dart_ExitScope();
}
-
VM_UNIT_TEST_CASE(CustomIsolates) {
bool saved_flag = FLAG_trace_shutdown;
FLAG_trace_shutdown = true;
« no previous file with comments | « runtime/vm/cpuinfo_win.cc ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698