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

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

Issue 1439993003: Dart: Avoid MojoResult and MojoHandleSignals constructors. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « mojo/dart/test/ping_pong_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/test/validation_test.dart
diff --git a/mojo/dart/test/validation_test.dart b/mojo/dart/test/validation_test.dart
index 0d344e2e25d6de68d5e3053342a152e4b5d21741..296377493082912d022ada56b63e34a7d79ae363 100644
--- a/mojo/dart/test/validation_test.dart
+++ b/mojo/dart/test/validation_test.dart
@@ -96,8 +96,8 @@ Future runTest(
});
var length = (test.data == null) ? 0 : test.data.lengthInBytes;
- var r = pipe.endpoints[1].write(test.data, length, handles);
- assert(r.isOk);
+ int r = pipe.endpoints[1].write(test.data, length, handles);
+ assert(r == MojoResult.kOk);
return completer.future.then((_) {
assert(expected == "PASS");
« no previous file with comments | « mojo/dart/test/ping_pong_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698