| Index: sky/tests/resources/unit.dart
|
| diff --git a/sky/tests/resources/unit.dart b/sky/tests/resources/unit.dart
|
| index f2a1688ed7c29a9660b3e4e4ca9b0059b7a7b85e..ad067fa6414036256afce227dd75f73c60889ecb 100644
|
| --- a/sky/tests/resources/unit.dart
|
| +++ b/sky/tests/resources/unit.dart
|
| @@ -1,6 +1,20 @@
|
| -import "third_party/unittest/unittest.dart";
|
| +
|
| 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");
|
| +}
|
| +
|
| class _SkyConfig extends SimpleConfiguration {
|
| void onDone(bool success) {
|
| try {
|
| @@ -9,7 +23,7 @@ class _SkyConfig extends SimpleConfiguration {
|
| print(ex.toString());
|
| }
|
|
|
| - internals.notifyTestComplete("DONE");
|
| + notifyTestComplete("DONE");
|
| }
|
| }
|
|
|
|
|