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

Side by Side Diff: services/dart/dart_apptests/pingpong_apptests.dart

Issue 1027603002: Dart: Removes all but native calls and the handle watcher from the snapshot. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Hoist application interface dependence 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 unified diff | Download patch
« no previous file with comments | « services/dart/dart_apptests/echo_apptests.dart ('k') | services/dart/snapshot.dart » ('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 library pingpong_apptests; 5 library pingpong_apptests;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:mojo.application';
9 import 'dart:mojo.bindings';
10 import 'dart:mojo.core';
11 8
12 import 'package:apptest/apptest.dart'; 9 import 'package:apptest/apptest.dart';
10 import 'package:mojo/public/dart/application.dart';
11 import 'package:mojo/public/dart/bindings.dart';
12 import 'package:mojo/public/dart/core.dart';
13 import 'package:services/dart/test/pingpong_service.mojom.dart'; 13 import 'package:services/dart/test/pingpong_service.mojom.dart';
14 14
15 class _TestingPingPongClient extends PingPongClient { 15 class _TestingPingPongClient extends PingPongClient {
16 final PingPongClientStub stub; 16 final PingPongClientStub stub;
17 Completer _completer; 17 Completer _completer;
18 18
19 _TestingPingPongClient.unbound() : stub = new PingPongClientStub.unbound() { 19 _TestingPingPongClient.unbound() : stub = new PingPongClientStub.unbound() {
20 stub.impl = this; 20 stub.impl = this;
21 } 21 }
22 22
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 targetServiceProxy.ptr.ping(100); 106 targetServiceProxy.ptr.ping(100);
107 pongValue = await pingPongClient.waitForPong(); 107 pongValue = await pingPongClient.waitForPong();
108 expect(pongValue, equals(101)); 108 expect(pongValue, equals(101));
109 109
110 await pingPongClient.stub.close(); 110 await pingPongClient.stub.close();
111 await targetServiceProxy.close(); 111 await targetServiceProxy.close();
112 await pingPongServiceProxy.close(); 112 await pingPongServiceProxy.close();
113 }); 113 });
114 }); 114 });
115 } 115 }
OLDNEW
« no previous file with comments | « services/dart/dart_apptests/echo_apptests.dart ('k') | services/dart/snapshot.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698