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

Unified Diff: runtime/vm/custom_isolate_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/cpuinfo_macos.cc ('k') | runtime/vm/dart.h » ('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 1995ee651c4e50723d34aa9997487f4660c895e8..cf4c8fafc7b2fb76b862ff1f1846c34cfea512ae 100644
--- a/runtime/vm/custom_isolate_test.cc
+++ b/runtime/vm/custom_isolate_test.cc
@@ -99,9 +99,7 @@ class Event {
// A simple event queue for our test.
class EventQueue {
public:
- EventQueue() {
- head_ = NULL;
- }
+ EventQueue() { head_ = NULL; }
void Add(Event* event) {
if (head_ == NULL) {
@@ -163,6 +161,7 @@ class StartEvent : public Event {
: Event(isolate), main_(main) {}
virtual void Process();
+
private:
const char* main_;
};
@@ -193,8 +192,7 @@ class MessageEvent : public Event {
public:
explicit MessageEvent(Dart_Isolate isolate) : Event(isolate) {}
- ~MessageEvent() {
- }
+ ~MessageEvent() {}
virtual void Process();
};
@@ -289,8 +287,8 @@ static void CustomIsolateImpl_start(Dart_NativeArguments args) {
// Reload all the test classes here.
//
// TODO(turnidge): Use the create isolate callback instead?
- Dart_Handle lib = TestCase::LoadTestScript(kCustomIsolateScriptChars,
- NativeLookup);
+ Dart_Handle lib =
+ TestCase::LoadTestScript(kCustomIsolateScriptChars, NativeLookup);
EXPECT_VALID(lib);
Dart_Handle main_send_port = Dart_GetField(lib, NewString("mainSendPort"));
@@ -333,8 +331,8 @@ UNIT_TEST_CASE(CustomIsolates) {
Dart_Handle result;
// Create a test library.
- Dart_Handle lib = TestCase::LoadTestScript(kCustomIsolateScriptChars,
- NativeLookup);
+ Dart_Handle lib =
+ TestCase::LoadTestScript(kCustomIsolateScriptChars, NativeLookup);
EXPECT_VALID(lib);
// Run main.
« no previous file with comments | « runtime/vm/cpuinfo_macos.cc ('k') | runtime/vm/dart.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698