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

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

Issue 2421303002: Fix inspector test in components build (Closed)
Patch Set: 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.gyp ('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 #if !defined(_WIN32) && !defined(_WIN64) 5 #if !defined(_WIN32) && !defined(_WIN64)
6 #include <unistd.h> // NOLINT 6 #include <unistd.h> // NOLINT
7 #endif // !defined(_WIN32) && !defined(_WIN64) 7 #endif // !defined(_WIN32) && !defined(_WIN64)
8 8
9 #include <locale.h> 9 #include <locale.h>
10 10
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 private: 213 private:
214 TaskRunner* frontend_task_runner_; 214 TaskRunner* frontend_task_runner_;
215 }; 215 };
216 216
217 } // namespace 217 } // namespace
218 218
219 int main(int argc, char* argv[]) { 219 int main(int argc, char* argv[]) {
220 v8::V8::InitializeICUDefaultLocation(argv[0]); 220 v8::V8::InitializeICUDefaultLocation(argv[0]);
221 v8::Platform* platform = v8::platform::CreateDefaultPlatform(); 221 v8::Platform* platform = v8::platform::CreateDefaultPlatform();
222 v8::V8::InitializePlatform(platform); 222 v8::V8::InitializePlatform(platform);
223 v8::internal::FlagList::SetFlagsFromCommandLine(&argc, argv, true); 223 v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
224 v8::V8::InitializeExternalStartupData(argv[0]); 224 v8::V8::InitializeExternalStartupData(argv[0]);
225 v8::V8::Initialize(); 225 v8::V8::Initialize();
226 226
227 SetTimeoutExtension set_timeout_extension; 227 SetTimeoutExtension set_timeout_extension;
228 v8::RegisterExtension(&set_timeout_extension); 228 v8::RegisterExtension(&set_timeout_extension);
229 UtilsExtension utils_extension; 229 UtilsExtension utils_extension;
230 v8::RegisterExtension(&utils_extension); 230 v8::RegisterExtension(&utils_extension);
231 SendMessageToBackendExtension send_message_to_backend_extension; 231 SendMessageToBackendExtension send_message_to_backend_extension;
232 v8::RegisterExtension(&send_message_to_backend_extension); 232 v8::RegisterExtension(&send_message_to_backend_extension);
233 233
(...skipping 28 matching lines...) Expand all
262 fprintf(stderr, "Internal error: script file doesn't exists: %s\n", 262 fprintf(stderr, "Internal error: script file doesn't exists: %s\n",
263 argv[i]); 263 argv[i]);
264 Exit(); 264 Exit();
265 } 265 }
266 frontend_runner.Append(new ExecuteStringTask(chars)); 266 frontend_runner.Append(new ExecuteStringTask(chars));
267 } 267 }
268 268
269 frontend_runner.Join(); 269 frontend_runner.Join();
270 return 0; 270 return 0;
271 } 271 }
OLDNEW
« no previous file with comments | « test/inspector/inspector.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698