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

Unified Diff: runtime/vm/unit_test.cc

Issue 8588040: Add a mid-sized integration test for the Dart Embedding Api which (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 | « runtime/vm/port_test.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/unit_test.cc
===================================================================
--- runtime/vm/unit_test.cc (revision 1904)
+++ runtime/vm/unit_test.cc (working copy)
@@ -81,9 +81,9 @@
Dart_Handle url = Dart_NewString(TestCase::url());
Dart_Handle source = Dart_NewString(script);
Dart_Handle lib = Dart_LoadScript(url, source, LibraryTagHandler);
- ASSERT(!Dart_IsError(lib));
+ DART_CHECK_VALID(lib);
Dart_Handle result = Dart_SetNativeResolver(lib, resolver);
- ASSERT(!Dart_IsError(result));
+ DART_CHECK_VALID(result);
return lib;
}
@@ -91,7 +91,7 @@
Dart_Handle TestCase::lib() {
Dart_Handle url = Dart_NewString(TestCase::url());
Dart_Handle lib = Dart_LookupLibrary(url);
- ASSERT(!Dart_IsError(lib));
+ DART_CHECK_VALID(lib);
ASSERT(Dart_IsLibrary(lib));
return lib;
}
« no previous file with comments | « runtime/vm/port_test.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698