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

Unified Diff: vm/unit_test.h

Issue 8334031: - Fix the snapshot generation python script to return an error code when snapshot generation fail... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 1 month 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 | « vm/port_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/unit_test.h
===================================================================
--- vm/unit_test.h (revision 1223)
+++ vm/unit_test.h (working copy)
@@ -12,6 +12,7 @@
#include "vm/globals.h"
#include "vm/heap.h"
#include "vm/isolate.h"
+#include "vm/longjump.h"
#include "vm/object.h"
#include "vm/object_store.h"
#include "vm/zone.h"
@@ -172,13 +173,14 @@
class TestIsolateScope {
public:
TestIsolateScope() {
- isolate_ = Dart::CreateIsolate(NULL, NULL);
+ isolate_ = reinterpret_cast<Isolate*>(Dart_CreateIsolate(NULL, NULL));
+ EXPECT(isolate_ != NULL);
Dart_EnterScope(); // Create a Dart API scope for unit tests.
}
~TestIsolateScope() {
Dart_ExitScope(); // Exit the Dart API scope created for unit tests.
ASSERT(isolate_ == Isolate::Current());
- Dart::ShutdownIsolate();
+ Dart_ShutdownIsolate();
isolate_ = NULL;
}
« no previous file with comments | « vm/port_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698