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

Side by Side Diff: mojo/dart/test/validation_test.dart

Issue 1132063007: Rationalize Dart mojo and sky package structure (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « mojo/dart/test/uri_base_test.dart ('k') | mojo/dart/testing/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:convert'; 6 import 'dart:convert';
7 import 'dart:isolate'; 7 import 'dart:isolate';
8 import 'dart:mojo.builtin' as builtin; 8 import 'dart:mojo.builtin' as builtin;
9 import 'dart:typed_data'; 9 import 'dart:typed_data';
10 10
11 import 'package:mojo/dart/testing/validation_test_input_parser.dart' as parser; 11 import 'package:testing/validation_test_input_parser.dart' as parser;
12 import 'package:mojo/public/dart/bindings.dart'; 12 import 'package:mojo/bindings.dart';
13 import 'package:mojo/public/dart/core.dart'; 13 import 'package:mojo/core.dart';
14 import 'package:mojom/mojo/test/validation_test_interfaces.mojom.dart'; 14 import 'package:mojom/mojo/test/validation_test_interfaces.mojom.dart';
15 15
16 class ConformanceTestInterfaceImpl implements ConformanceTestInterface { 16 class ConformanceTestInterfaceImpl implements ConformanceTestInterface {
17 ConformanceTestInterfaceStub _stub; 17 ConformanceTestInterfaceStub _stub;
18 Completer _completer; 18 Completer _completer;
19 19
20 ConformanceTestInterfaceImpl( 20 ConformanceTestInterfaceImpl(
21 this._completer, MojoMessagePipeEndpoint endpoint) { 21 this._completer, MojoMessagePipeEndpoint endpoint) {
22 _stub = new ConformanceTestInterfaceStub.fromEndpoint(endpoint, this); 22 _stub = new ConformanceTestInterfaceStub.fromEndpoint(endpoint, this);
23 } 23 }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 var futures = getTestFiles(path, "$path/conformance_").map((test) { 128 var futures = getTestFiles(path, "$path/conformance_").map((test) {
129 return runTest(test, readAndParseTest(test), expectedResult(test)); 129 return runTest(test, readAndParseTest(test), expectedResult(test));
130 }); 130 });
131 Future.wait(futures).then((_) { 131 Future.wait(futures).then((_) {
132 assert(MojoHandle.reportLeakedHandles()); 132 assert(MojoHandle.reportLeakedHandles());
133 }, onError: (e) { 133 }, onError: (e) {
134 assert(MojoHandle.reportLeakedHandles()); 134 assert(MojoHandle.reportLeakedHandles());
135 }); 135 });
136 // TODO(zra): Add integration tests when they no longer rely on Client=. 136 // TODO(zra): Add integration tests when they no longer rely on Client=.
137 } 137 }
OLDNEW
« no previous file with comments | « mojo/dart/test/uri_base_test.dart ('k') | mojo/dart/testing/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698