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

Unified Diff: sky/tests/resources/unit.dart

Issue 1215953006: Use sky_shell instead of mojo_shell for testing. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Foo Created 5 years, 5 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
Index: sky/tests/resources/unit.dart
diff --git a/sky/tests/resources/unit.dart b/sky/tests/resources/unit.dart
index ad067fa6414036256afce227dd75f73c60889ecb..9fbac1aefb26ef11b4b12ce51c6e86915313bf5e 100644
--- a/sky/tests/resources/unit.dart
+++ b/sky/tests/resources/unit.dart
@@ -1,19 +1,5 @@
-
-import "dart:sky.internals" as internals;
-
-import 'package:sky/mojo/shell.dart' as shell;
-import 'package:mojom/sky/test_harness.mojom.dart';
-
import "third_party/unittest/unittest.dart";
-
-void notifyTestComplete(String result) {
- TestHarnessProxy test_harness = new TestHarnessProxy.unbound();
- shell.requestService("mojo:sky_viewer", test_harness);
- test_harness.ptr.onTestComplete(result, null);
- test_harness.close();
-
- internals.notifyTestComplete("DONE");
-}
+import "harness.dart";
class _SkyConfig extends SimpleConfiguration {
void onDone(bool success) {

Powered by Google App Engine
This is Rietveld 408576698