OLD | NEW |
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_bindings'; | |
9 import 'dart:mojo_builtin' as builtin; | |
10 import 'dart:mojo_core'; | |
11 import 'dart:typed_data'; | 8 import 'dart:typed_data'; |
| 9 import 'mojo:bindings'; |
| 10 import 'mojo:builtin' as builtin; |
| 11 import 'mojo:core'; |
12 | 12 |
13 import 'package:mojo/dart/testing/validation_test_input_parser.dart' as parser; | 13 import 'package:mojo/dart/testing/validation_test_input_parser.dart' as parser; |
14 import 'package:mojo/public/interfaces/bindings/tests/validation_test_interfaces
.mojom.dart'; | 14 import 'package:mojo/public/interfaces/bindings/tests/validation_test_interfaces
.mojom.dart'; |
15 | 15 |
16 class ConfrmanceTestInterfaceImpl extends ConformanceTestInterface { | 16 class ConfrmanceTestInterfaceImpl extends ConformanceTestInterface { |
17 Completer _completer; | 17 Completer _completer; |
18 | 18 |
19 ConfrmanceTestInterfaceImpl(this._completer, MojoMessagePipeEndpoint endpoint) | 19 ConfrmanceTestInterfaceImpl(this._completer, MojoMessagePipeEndpoint endpoint) |
20 : super(endpoint) { | 20 : super(endpoint) { |
21 super.delegate = this; | 21 super.delegate = this; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 // First test the parser. | 94 // First test the parser. |
95 parser.parserTests(); | 95 parser.parserTests(); |
96 | 96 |
97 // Then run the conformance tests. | 97 // Then run the conformance tests. |
98 getTestFiles(path, "$path/conformance_").forEach((test) { | 98 getTestFiles(path, "$path/conformance_").forEach((test) { |
99 runTest(test, readAndParseTest(test), expectedResult(test)); | 99 runTest(test, readAndParseTest(test), expectedResult(test)); |
100 }); | 100 }); |
101 // TODO(zra): Add integration tests when they no longer rely on Client=. | 101 // TODO(zra): Add integration tests when they no longer rely on Client=. |
102 } | 102 } |
OLD | NEW |