| 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 pingpong_apptests; |
| 6 |
| 5 import 'dart:async'; | 7 import 'dart:async'; |
| 6 import 'mojo:application'; | 8 import 'mojo:application'; |
| 7 import 'mojo:bindings'; | 9 import 'mojo:bindings'; |
| 8 import 'mojo:core'; | 10 import 'mojo:core'; |
| 9 | 11 |
| 10 import 'package:apptest/apptest.dart'; | 12 import 'package:apptest/apptest.dart'; |
| 11 import 'package:services/dart/test/pingpong_service.mojom.dart'; | 13 import 'package:services/dart/test/pingpong_service.mojom.dart'; |
| 12 | 14 |
| 13 class _TestingPingPongClient extends PingPongClient { | 15 class _TestingPingPongClient extends PingPongClient { |
| 14 final PingPongClientStub stub; | 16 final PingPongClientStub stub; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 targetServiceProxy.ptr.ping(100); | 106 targetServiceProxy.ptr.ping(100); |
| 105 pongValue = await pingPongClient.waitForPong(); | 107 pongValue = await pingPongClient.waitForPong(); |
| 106 expect(pongValue, equals(101)); | 108 expect(pongValue, equals(101)); |
| 107 | 109 |
| 108 pingPongClient.stub.close(); | 110 pingPongClient.stub.close(); |
| 109 targetServiceProxy.close(); | 111 targetServiceProxy.close(); |
| 110 pingPongServiceProxy.close(); | 112 pingPongServiceProxy.close(); |
| 111 }); | 113 }); |
| 112 }); | 114 }); |
| 113 } | 115 } |
| OLD | NEW |