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

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

Issue 1439993003: Dart: Avoid MojoResult and MojoHandleSignals constructors. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Small fixes Created 5 years, 1 month 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: mojo/dart/test/handle_finalizer_test.dart
diff --git a/mojo/dart/test/handle_finalizer_test.dart b/mojo/dart/test/handle_finalizer_test.dart
index 3c1e39fcdd7f41ff59d0310aeba80cdffddd9cbe..a551cb75e362e949897ec6a8f340d660b6baafe0 100644
--- a/mojo/dart/test/handle_finalizer_test.dart
+++ b/mojo/dart/test/handle_finalizer_test.dart
@@ -36,8 +36,8 @@ test() {
// The handle will be closed by the MojoHandle finalizer during GC, so the
// attempt to close it again will fail.
- MojoResult result = handle.close();
- Expect.isTrue(result.isInvalidArgument);
+ int result = handle.close();
+ Expect.isTrue(result == MojoResult.kInvalidArgument);
}
main() {

Powered by Google App Engine
This is Rietveld 408576698