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

Unified Diff: runtime/vm/dart_api_impl_test.cc

Issue 16452013: Fix the isolate unit tests to create an isolate from a snapshot. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/benchmark_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl_test.cc
===================================================================
--- runtime/vm/dart_api_impl_test.cc (revision 23633)
+++ runtime/vm/dart_api_impl_test.cc (working copy)
@@ -2632,7 +2632,7 @@
intptr_t mydata = 12345;
char* err;
Dart_Isolate isolate =
- Dart_CreateIsolate(NULL, NULL, NULL,
+ Dart_CreateIsolate(NULL, NULL, bin::snapshot_buffer,
reinterpret_cast<void*>(mydata),
&err);
EXPECT(isolate != NULL);
@@ -6685,7 +6685,9 @@
{
sync->Enter();
char* error = NULL;
- shared_isolate = Dart_CreateIsolate(NULL, NULL, NULL, NULL, &error);
+ shared_isolate = Dart_CreateIsolate(NULL, NULL,
+ bin::snapshot_buffer,
+ NULL, &error);
EXPECT(shared_isolate != NULL);
Dart_EnterScope();
Dart_Handle url = NewString(TestCase::url());
@@ -6809,7 +6811,9 @@
// Create an isolate.
char* err;
- Dart_Isolate isolate = Dart_CreateIsolate(NULL, NULL, NULL, my_data, &err);
+ Dart_Isolate isolate = Dart_CreateIsolate(NULL, NULL,
+ bin::snapshot_buffer,
+ my_data, &err);
if (isolate == NULL) {
OS::Print("Creation of isolate failed '%s'\n", err);
free(err);
« no previous file with comments | « runtime/vm/benchmark_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698