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

Unified Diff: runtime/vm/snapshot_test.cc

Issue 10867032: Beginning support for library prefixes in the dart API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comment. Created 8 years, 4 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
« runtime/vm/dart_api_impl_test.cc ('K') | « runtime/vm/dart_api_impl_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/snapshot_test.cc
diff --git a/runtime/vm/snapshot_test.cc b/runtime/vm/snapshot_test.cc
index dd8285eca477fe0803efa98474ef4b46a0051183..f8e6009bfbd8a00128eb3d040e276b91dde2b488 100644
--- a/runtime/vm/snapshot_test.cc
+++ b/runtime/vm/snapshot_test.cc
@@ -1001,12 +1001,15 @@ UNIT_TEST_CASE(ScriptSnapshot) {
// Load the library.
Dart_Handle import_lib = Dart_LoadLibrary(Dart_NewString("dart:import-lib"),
Dart_NewString(kLibScriptChars));
+ Dart_Handle prefix = Dart_NewString("");
EXPECT_VALID(import_lib);
// Create a test library and Load up a test script in it.
TestCase::LoadTestScript(kScriptChars, NULL);
- EXPECT_VALID(Dart_LibraryImportLibrary(TestCase::lib(), import_lib));
+ EXPECT_VALID(Dart_LibraryImportLibrary(TestCase::lib(),
+ import_lib,
+ prefix));
// Get list of library URLs loaded and save the count.
Dart_Handle libs = Dart_GetLibraryURLs();
« runtime/vm/dart_api_impl_test.cc ('K') | « runtime/vm/dart_api_impl_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698