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

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

Issue 133273011: Revert "Rename internal library dart:_collection-dev to dart:_internal." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: reapply after revert. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/globals.h" 6 #include "vm/globals.h"
7 #include "vm/isolate.h" 7 #include "vm/isolate.h"
8 #include "vm/unit_test.h" 8 #include "vm/unit_test.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 22 matching lines...) Expand all
33 " var rp = new RawReceivePort();\n" 33 " var rp = new RawReceivePort();\n"
34 " rp.sendPort.send(null);\n" 34 " rp.sendPort.send(null);\n"
35 " rp.handler = (_) { rp.close(); };\n" 35 " rp.handler = (_) { rp.close(); };\n"
36 "}\n"; 36 "}\n";
37 37
38 Dart_Handle test_lib = TestCase::LoadTestScript(kScriptChars, NULL); 38 Dart_Handle test_lib = TestCase::LoadTestScript(kScriptChars, NULL);
39 39
40 // Setup the internal library's 'internalPrint' function. 40 // Setup the internal library's 'internalPrint' function.
41 // Necessary because asynchronous errors use "print" to print their 41 // Necessary because asynchronous errors use "print" to print their
42 // stack trace. 42 // stack trace.
43 Dart_Handle url = NewString("dart:_collection-dev"); 43 Dart_Handle url = NewString("dart:_internal");
44 DART_CHECK_VALID(url); 44 DART_CHECK_VALID(url);
45 Dart_Handle internal_lib = Dart_LookupLibrary(url); 45 Dart_Handle internal_lib = Dart_LookupLibrary(url);
46 DART_CHECK_VALID(internal_lib); 46 DART_CHECK_VALID(internal_lib);
47 Dart_Handle print = Dart_GetField(test_lib, NewString("_nullPrintClosure")); 47 Dart_Handle print = Dart_GetField(test_lib, NewString("_nullPrintClosure"));
48 Dart_Handle result = Dart_SetField(internal_lib, 48 Dart_Handle result = Dart_SetField(internal_lib,
49 NewString("_printClosure"), 49 NewString("_printClosure"),
50 print); 50 print);
51 51
52 DART_CHECK_VALID(result); 52 DART_CHECK_VALID(result);
53 53
(...skipping 19 matching lines...) Expand all
73 EXPECT(!Dart_IsError(result)); 73 EXPECT(!Dart_IsError(result));
74 // Run until all ports to isolate are closed. 74 // Run until all ports to isolate are closed.
75 result = Dart_RunLoop(); 75 result = Dart_RunLoop();
76 EXPECT_ERROR(result, "Null callback specified for isolate creation"); 76 EXPECT_ERROR(result, "Null callback specified for isolate creation");
77 EXPECT(Dart_ErrorHasException(result)); 77 EXPECT(Dart_ErrorHasException(result));
78 Dart_Handle exception_result = Dart_ErrorGetException(result); 78 Dart_Handle exception_result = Dart_ErrorGetException(result);
79 EXPECT_VALID(exception_result); 79 EXPECT_VALID(exception_result);
80 } 80 }
81 81
82 } // namespace dart 82 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698