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

Unified Diff: sky/tests/resources/harness.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/harness.dart
diff --git a/sky/tests/resources/harness.dart b/sky/tests/resources/harness.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7ea476d9bb8e3b4044315ce08cf8ff4bf700d505
--- /dev/null
+++ b/sky/tests/resources/harness.dart
@@ -0,0 +1,14 @@
+import "dart:sky.internals" as internals;
+
+import 'package:sky/mojo/shell.dart' as shell;
+import 'package:mojom/sky/test_harness.mojom.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();
+
+ // FIXME(eseidel): Remove this once all tests run in sky_shell.
+ internals.notifyTestComplete(result);
+}

Powered by Google App Engine
This is Rietveld 408576698