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 library versioning_apptests; | 5 library versioning_apptests; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:apptest/apptest.dart'; | 9 import 'package:apptest/apptest.dart'; |
10 import 'package:mojo/public/dart/application.dart'; | 10 import 'package:mojo/application.dart'; |
11 import 'package:mojo/public/dart/bindings.dart'; | 11 import 'package:mojo/bindings.dart'; |
12 import 'package:mojo/public/dart/core.dart'; | 12 import 'package:mojo/core.dart'; |
13 import 'package:mojom/mojo/test/versioning/versioning_test_client.mojom.dart'; | 13 import 'package:mojom/mojo/test/versioning/versioning_test_client.mojom.dart'; |
14 | 14 |
15 tests(Application application, String url) { | 15 tests(Application application, String url) { |
16 group('Versioning Apptests', () { | 16 group('Versioning Apptests', () { |
17 test('Struct', () async { | 17 test('Struct', () async { |
18 // The service side uses a newer version of Employee definition that | 18 // The service side uses a newer version of Employee definition that |
19 // includes the 'birthday' field. | 19 // includes the 'birthday' field. |
20 | 20 |
21 // Connect to human resource database. | 21 // Connect to human resource database. |
22 var databaseProxy = new HumanResourceDatabaseProxy.unbound(); | 22 var databaseProxy = new HumanResourceDatabaseProxy.unbound(); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 } catch(e) { | 130 } catch(e) { |
131 exceptionCaught = true; | 131 exceptionCaught = true; |
132 } | 132 } |
133 expect(exceptionCaught, isTrue); | 133 expect(exceptionCaught, isTrue); |
134 | 134 |
135 // No need to disconnect from database because we were disconnected by | 135 // No need to disconnect from database because we were disconnected by |
136 // the call to a version 2 method. | 136 // the call to a version 2 method. |
137 }); | 137 }); |
138 }); | 138 }); |
139 } | 139 } |
OLD | NEW |