Index: mojo/dart/test/unhandled_exception_test.dart |
diff --git a/base/test/malloc_wrapper.cc b/mojo/dart/test/unhandled_exception_test.dart |
similarity index 59% |
copy from base/test/malloc_wrapper.cc |
copy to mojo/dart/test/unhandled_exception_test.dart |
index eb280a3eeea52f49e534c7c5e3f6f7a40e80a750..7579c93e9494a6a0becf4f791ab079629bfd6506 100644 |
--- a/base/test/malloc_wrapper.cc |
+++ b/mojo/dart/test/unhandled_exception_test.dart |
@@ -2,10 +2,9 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "malloc_wrapper.h" |
+import 'package:mojo/core.dart'; |
-#include <stdlib.h> |
- |
-void* MallocWrapper(size_t size) { |
- return malloc(size); |
+void main() { |
+ var pipe = new MojoMessagePipe(); |
+ throw "Unhandled Exception"; |
} |