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

Side by Side Diff: runtime/vm/dart_api_impl_test.cc

Issue 1553233002: Add package config support to dart:isolate (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Addressed review comments. Created 4 years, 11 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "bin/builtin.h" 5 #include "bin/builtin.h"
6 #include "include/dart_api.h" 6 #include "include/dart_api.h"
7 #include "include/dart_mirrors_api.h" 7 #include "include/dart_mirrors_api.h"
8 #include "include/dart_native_api.h" 8 #include "include/dart_native_api.h"
9 #include "include/dart_tools_api.h" 9 #include "include/dart_tools_api.h"
10 #include "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 7267 matching lines...) Expand 10 before | Expand all | Expand 10 after
7278 Dart_ExitScope(); 7278 Dart_ExitScope();
7279 7279
7280 // Delete the native ports. 7280 // Delete the native ports.
7281 EXPECT(Dart_CloseNativePort(port_id1)); 7281 EXPECT(Dart_CloseNativePort(port_id1));
7282 } 7282 }
7283 7283
7284 7284
7285 static Dart_Isolate RunLoopTestCallback(const char* script_name, 7285 static Dart_Isolate RunLoopTestCallback(const char* script_name,
7286 const char* main, 7286 const char* main,
7287 const char* package_root, 7287 const char* package_root,
7288 const char** package_map, 7288 const char* package_config,
7289 Dart_IsolateFlags* flags, 7289 Dart_IsolateFlags* flags,
7290 void* data, 7290 void* data,
7291 char** error) { 7291 char** error) {
7292 const char* kScriptChars = 7292 const char* kScriptChars =
7293 "import 'builtin';\n" 7293 "import 'builtin';\n"
7294 "import 'dart:isolate';\n" 7294 "import 'dart:isolate';\n"
7295 "void main(shouldThrowException) {\n" 7295 "void main(shouldThrowException) {\n"
7296 " var rp = new RawReceivePort();\n" 7296 " var rp = new RawReceivePort();\n"
7297 " rp.handler = (msg) {\n" 7297 " rp.handler = (msg) {\n"
7298 " rp.close();\n" 7298 " rp.close();\n"
(...skipping 2287 matching lines...) Expand 10 before | Expand all | Expand 10 after
9586 EXPECT_SUBSTRING("\"cat\":\"Compiler\"", buffer); 9586 EXPECT_SUBSTRING("\"cat\":\"Compiler\"", buffer);
9587 EXPECT_SUBSTRING("\"name\":\"CompileFunction\"", buffer); 9587 EXPECT_SUBSTRING("\"name\":\"CompileFunction\"", buffer);
9588 EXPECT_SUBSTRING("\"function\":\"::_main\"", buffer); 9588 EXPECT_SUBSTRING("\"function\":\"::_main\"", buffer);
9589 9589
9590 // Heartbeat test for new events. 9590 // Heartbeat test for new events.
9591 EXPECT_SUBSTRING("\"name\":\"TestVMDuration2\"", buffer); 9591 EXPECT_SUBSTRING("\"name\":\"TestVMDuration2\"", buffer);
9592 EXPECT_SUBSTRING("\"function\":\"::_bar\"", buffer); 9592 EXPECT_SUBSTRING("\"function\":\"::_bar\"", buffer);
9593 } 9593 }
9594 9594
9595 } // namespace dart 9595 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698