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

Unified Diff: runtime/observatory/tests/service/udp_socket_service_test.dart

Issue 2759973004: Fix observatory tests broken by running dartfmt. Temporarily reverted formatting for evaluate_activ… (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/tests/service/udp_socket_service_test.dart
diff --git a/runtime/observatory/tests/service/udp_socket_service_test.dart b/runtime/observatory/tests/service/udp_socket_service_test.dart
index 6a6a0e020e47a10ef7568d1d4c28a6ce00c2abc2..6dda36b76e33122f440a30b7e0de8d60b61d8308 100644
--- a/runtime/observatory/tests/service/udp_socket_service_test.dart
+++ b/runtime/observatory/tests/service/udp_socket_service_test.dart
@@ -12,14 +12,14 @@ import 'test_helper.dart';
Future setupUDP() async {
var server = await io.RawDatagramSocket.bind('127.0.0.1', 0);
server.listen((io.RawSocketEvent event) {
- if(event == io.RawSocketEvent.READ) {
+ if (event == io.RawSocketEvent.READ) {
io.Datagram dg = server.receive();
dg.data.forEach((x) => true);
}
});
var client = await io.RawDatagramSocket.bind('127.0.0.1', 0);
client.send(UTF8.encoder.convert('foobar'),
- new io.InternetAddress('127.0.0.1'), server.port);
+ new io.InternetAddress('127.0.0.1'), server.port);
}
var udpTests = [
@@ -39,7 +39,7 @@ var udpTests = [
expect(result['data'][1]['name'].startsWith('127.0.0.1:'), isTrue);
var server = await isolate.invokeRpcNoUpgrade(
- 'ext.dart.io.getSocketByID', { 'id' : result['data'][0]['id'] });
+ 'ext.dart.io.getSocketByID', {'id': result['data'][0]['id']});
expect(server['id'], equals(result['data'][0]['id']));
expect(server['remotePort'], equals('NA'));
expect(server['remoteHost'], equals('NA'));
@@ -59,7 +59,7 @@ var udpTests = [
expect(server['readCount'], greaterThanOrEqualTo(1));
var client = await isolate.invokeRpcNoUpgrade(
- 'ext.dart.io.getSocketByID', { 'id' : result['data'][1]['id'] });
+ 'ext.dart.io.getSocketByID', {'id': result['data'][1]['id']});
expect(client['id'], equals(result['data'][1]['id']));
expect(client['remotePort'], equals('NA'));
expect(client['remoteHost'], equals('NA'));
@@ -80,4 +80,4 @@ var udpTests = [
},
];
-main(args) async => runIsolateTests(args, udpTests, testeeBefore:setupUDP);
+main(args) async => runIsolateTests(args, udpTests, testeeBefore: setupUDP);
« no previous file with comments | « runtime/observatory/tests/service/typed_data_test.dart ('k') | runtime/observatory/tests/service/vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698