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

Unified Diff: sdk/lib/io/io_resource_info.dart

Issue 1343033002: Use cammelCase for all service extension variables (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « runtime/observatory/tests/service/udp_socket_service_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/io_resource_info.dart
diff --git a/sdk/lib/io/io_resource_info.dart b/sdk/lib/io/io_resource_info.dart
index dfed17993e61312de722924aa70f7bfaa5274398..1a18fc911efa5a1f7ae3277d746e88accea61ce1 100644
--- a/sdk/lib/io/io_resource_info.dart
+++ b/sdk/lib/io/io_resource_info.dart
@@ -76,12 +76,12 @@ abstract class _ReadWriteResourceInfo extends _IOResourceInfo {
'type': type,
'id': id,
'name': name,
- 'total_read': totalRead,
- 'total_written': totalWritten,
- 'read_count': readCount,
- 'write_count': writeCount,
- 'last_read': lastRead,
- 'last_write': lastWrite
+ 'totalRead': totalRead,
+ 'totalWritten': totalWritten,
+ 'readCount': readCount,
+ 'writeCount': writeCount,
+ 'lastRead': lastRead,
+ 'lastWrite': lastWrite
};
}
@@ -161,9 +161,9 @@ class _ProcessResourceInfo extends _IOResourceInfo{
'id': id,
'name': name,
'pid': process.pid,
- 'started_at': startedAt,
+ 'startedAt': startedAt,
'arguments': process._arguments,
- 'working_directory':
+ 'workingDirectory':
process._workingDirectory == null ? '.' : process._workingDirectory,
};
@@ -232,24 +232,24 @@ class _SocketResourceInfo extends _ReadWriteResourceInfo {
Map<String, String> getSocketInfoMap() {
var result = fullValueMap;
- result['socket_type'] = socket.isTcp ? TCP_STRING : UDP_STRING;
+ result['socketType'] = socket.isTcp ? TCP_STRING : UDP_STRING;
result['listening'] = socket.isListening;
result['host'] = socket.address.host;
result['port'] = socket.port;
if (!socket.isListening) {
try {
- result['remote_host'] = socket.remoteAddress.host;
- result['remote_port'] = socket.remotePort;
+ result['remoteHost'] = socket.remoteAddress.host;
+ result['remotePort'] = socket.remotePort;
} catch (e) {
// UDP.
- result['remote_port'] = 'NA';
- result['remote_host'] = 'NA';
+ result['remotePort'] = 'NA';
+ result['remoteHost'] = 'NA';
}
} else {
- result['remote_port'] = 'NA';
- result['remote_host'] = 'NA';
+ result['remotePort'] = 'NA';
+ result['remoteHost'] = 'NA';
}
- result['address_type'] = socket.address.type.name;
+ result['addressType'] = socket.address.type.name;
return result;
}
« no previous file with comments | « runtime/observatory/tests/service/udp_socket_service_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698