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

Side by Side Diff: test/inspector/task-runner.cc

Issue 2372793002: [inspector] added inspector test runner [part 3] (Closed)
Patch Set: added missing header Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « test/inspector/inspector-test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "test/inspector/task-runner.h" 5 #include "test/inspector/task-runner.h"
6 6
7 #if !defined(_WIN32) && !defined(_WIN64) 7 #if !defined(_WIN32) && !defined(_WIN64)
8 #include <unistd.h> // NOLINT 8 #include <unistd.h> // NOLINT
9 #endif // !defined(_WIN32) && !defined(_WIN64) 9 #endif // !defined(_WIN32) && !defined(_WIN64)
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 .ToLocalChecked(); 129 .ToLocalChecked();
130 130
131 v8::ScriptCompiler::Source scriptSource(source, origin); 131 v8::ScriptCompiler::Source scriptSource(source, origin);
132 v8::Local<v8::Script> script; 132 v8::Local<v8::Script> script;
133 if (!v8::ScriptCompiler::Compile(local_context, &scriptSource) 133 if (!v8::ScriptCompiler::Compile(local_context, &scriptSource)
134 .ToLocal(&script)) 134 .ToLocal(&script))
135 return; 135 return;
136 v8::MaybeLocal<v8::Value> result; 136 v8::MaybeLocal<v8::Value> result;
137 result = script->Run(local_context); 137 result = script->Run(local_context);
138 } 138 }
139
140 // main to make compiler happy before other patch will be landed.
141 int main(int argc, char* argv[]) { return 0; }
OLDNEW
« no previous file with comments | « test/inspector/inspector-test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698