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

Unified Diff: tests/isolate/src/SerializationTest.dart

Issue 9422019: isolates refactor: this change introduces 'dart:isolate' as a library. This is a (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 8 years, 10 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 | « tests/isolate/src/RequestReplyTest.dart ('k') | tests/isolate/src/SpawnTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/SerializationTest.dart
diff --git a/tests/isolate/src/SerializationTest.dart b/tests/isolate/src/SerializationTest.dart
index 0f71af7731220773c44356bc1b43052e9bbf1fb3..9f8de80f3bce6768b11d6d64bb5bf6a74d83ef53 100644
--- a/tests/isolate/src/SerializationTest.dart
+++ b/tests/isolate/src/SerializationTest.dart
@@ -9,21 +9,12 @@
// Serialization test.
// ---------------------------------------------------------------------------
#library('SerializationTest');
-#import("dart:coreimpl");
+#import('dart:isolate');
main() {
- testAllTypes(copy);
- testAllTypes(serialize);
-}
-
-copy(x) {
- return new Copier().traverse(x);
-}
-
-serialize(x) {
- Serializer serializer = new Serializer();
- Deserializer deserializer = new Deserializer();
- return deserializer.deserialize(serializer.traverse(x));
+ // TODO(sigmund): fix once we can disable privacy for testing (bug #1882)
+ testAllTypes(TestingOnly.copy);
+ testAllTypes(TestingOnly.serialize);
}
void testAllTypes(Function f) {
« no previous file with comments | « tests/isolate/src/RequestReplyTest.dart ('k') | tests/isolate/src/SpawnTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698