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

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

Issue 982673002: Dart: Removes need to call listen(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge and Format Created 5 years, 9 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/test/interface_test.dart ('k') | mojo/public/dart/src/application.dart » ('j') | 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 0c2ff4b0c0e892c43b764f08bd13b102feb4a1e2..1782f702095555c003b65646ba248729465c404d 100644
--- a/mojo/dart/test/validation_test.dart
+++ b/mojo/dart/test/validation_test.dart
@@ -17,9 +17,9 @@ class ConformanceTestInterfaceImpl implements ConformanceTestInterface {
ConformanceTestInterfaceStub _stub;
Completer _completer;
- ConformanceTestInterfaceImpl(this._completer,
- MojoMessagePipeEndpoint endpoint) {
- _stub = new ConformanceTestInterfaceStub.fromEndpoint(endpoint, impl: this);
+ ConformanceTestInterfaceImpl(
+ this._completer, MojoMessagePipeEndpoint endpoint) {
+ _stub = new ConformanceTestInterfaceStub.fromEndpoint(endpoint, this);
}
void _complete() => _completer.complete(null);
@@ -52,8 +52,7 @@ String expectedResult(String test) {
runTest(String name, parser.ValidationParseResult test, String expected) {
var handles = new List.generate(
- test.numHandles,
- (_) => new MojoSharedBuffer.create(10).handle);
+ test.numHandles, (_) => new MojoSharedBuffer.create(10).handle);
var pipe = new MojoMessagePipe();
var completer = new Completer();
var conformanceImpl;
@@ -84,13 +83,11 @@ runTest(String name, parser.ValidationParseResult test, String expected) {
// TODO(zra, yzshen): Some struct versioning tests (with "mthd11" in their
// names) are skipped.
-Iterable<String> getTestFiles(String path, String prefix) =>
- builtin.enumerateFiles(
- path).where(
- (s) =>
- s.startsWith(prefix) &&
- s.endsWith(".data") &&
- !s.contains("mthd11")).map((s) => s.replaceFirst('.data', ''));
+Iterable<String> getTestFiles(String path, String prefix) => builtin
+ .enumerateFiles(path)
+ .where((s) =>
+ s.startsWith(prefix) && s.endsWith(".data") && !s.contains("mthd11"))
+ .map((s) => s.replaceFirst('.data', ''));
main(List args) {
int handle = args[0];
« no previous file with comments | « mojo/dart/test/interface_test.dart ('k') | mojo/public/dart/src/application.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698