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

Unified Diff: mojo/dart/http_load_test/main.dart

Issue 1262493002: Enable HTTP loading in Mojo dart content handler (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « mojo/dart/embedder/dart_state.h ('k') | mojo/dart/http_load_test/part0.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/http_load_test/main.dart
diff --git a/mojo/dart/http_load_test/main.dart b/mojo/dart/http_load_test/main.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6e35e6931c41fc8a723d7b39587ed5b867018d01
--- /dev/null
+++ b/mojo/dart/http_load_test/main.dart
@@ -0,0 +1,16 @@
+#!mojo mojo:dart_content_handler
+
+library test;
+
+import 'dart:async';
+import 'dart:mojo.internal';
+
+part 'part0.dart';
+
+main(List args) {
+ // Hang around for a sec and then close the shell handle.
+ new Timer(new Duration(milliseconds: 1000), () {
+ print('PASS');
+ MojoHandleNatives.close(args[0]);
+ });
+}
« no previous file with comments | « mojo/dart/embedder/dart_state.h ('k') | mojo/dart/http_load_test/part0.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698