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

Unified Diff: mojo/dart/test/unhandled_exception_test.dart

Issue 1411843005: Dart: Removes C++ set for closing handles on an unhandled exception. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 2 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/test/validation_unittest.cc ('k') | mojo/public/dart/mojo/lib/src/event_stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
}
« no previous file with comments | « mojo/dart/embedder/test/validation_unittest.cc ('k') | mojo/public/dart/mojo/lib/src/event_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698