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

Unified Diff: runtime/vm/unit_test.h

Issue 270503007: Eliminate unused url mapping parameter in dartutils (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/service_test.cc ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/unit_test.h
===================================================================
--- runtime/vm/unit_test.h (revision 35981)
+++ runtime/vm/unit_test.h (working copy)
@@ -233,6 +233,8 @@
DISALLOW_COPY_AND_ASSIGN(TestCaseBase);
};
+#define USER_TEST_URI "test-lib"
+#define CORELIB_TEST_URI "dart:test-lib"
class TestCase : TestCaseBase {
public:
@@ -241,9 +243,13 @@
TestCase(RunEntry* run, const char* name) : TestCaseBase(name), run_(run) { }
static Dart_Handle LoadTestScript(const char* script,
- Dart_NativeEntryResolver resolver);
+ Dart_NativeEntryResolver resolver,
+ const char* lib_uri = USER_TEST_URI);
+
+ static Dart_Handle LoadCoreTestScript(const char* script,
+ Dart_NativeEntryResolver resolver);
static Dart_Handle lib();
- static const char* url() { return "dart:test-lib"; }
+ static const char* url() { return USER_TEST_URI; }
static Dart_Isolate CreateTestIsolateFromSnapshot(uint8_t* buffer) {
return CreateIsolate(buffer);
}
« no previous file with comments | « runtime/vm/service_test.cc ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698