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

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

Issue 2751423005: Run dartfmt on all files under runtime. (Closed)
Patch Set: Run dartfmt on all files under runtime. 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/get_allocation_profile_rpc_test.dart
diff --git a/runtime/observatory/tests/service/get_allocation_profile_rpc_test.dart b/runtime/observatory/tests/service/get_allocation_profile_rpc_test.dart
index 6d7b8fd45e520143156770a3b7efa4f7f7d8bdff..742ee495664430d771582b5efa29a6a756188800 100644
--- a/runtime/observatory/tests/service/get_allocation_profile_rpc_test.dart
+++ b/runtime/observatory/tests/service/get_allocation_profile_rpc_test.dart
@@ -12,16 +12,15 @@ import 'test_helper.dart';
Future sleep(int milliseconds) {
Completer completer = new Completer();
Duration duration = new Duration(milliseconds: milliseconds);
- new Timer(duration, () => completer.complete() );
+ new Timer(duration, () => completer.complete());
return completer.future;
}
var tests = [
(Isolate isolate) async {
- var params = {
- };
- var result = await isolate.invokeRpcNoUpgrade(
- '_getAllocationProfile', params);
+ var params = {};
+ var result =
+ await isolate.invokeRpcNoUpgrade('_getAllocationProfile', params);
expect(result['type'], equals('AllocationProfile'));
expect(result.containsKey('dateLastAccumulatorReset'), isFalse);
expect(result.containsKey('dateLastServiceGC'), isFalse);
@@ -33,7 +32,7 @@ var tests = [
// reset.
params = {
- 'reset' : 'true',
+ 'reset': 'true',
};
result = await isolate.invokeRpcNoUpgrade('_getAllocationProfile', params);
expect(result['type'], equals('AllocationProfile'));
@@ -54,7 +53,7 @@ var tests = [
// gc.
params = {
- 'gc' : 'full',
+ 'gc': 'full',
};
result = await isolate.invokeRpcNoUpgrade('_getAllocationProfile', params);
expect(result['type'], equals('AllocationProfile'));
@@ -73,38 +72,35 @@ var tests = [
var secondGC = result['dateLastAccumulatorReset'];
expect(secondGC, isNot(equals(firstGC)));
},
-
(Isolate isolate) async {
var params = {
- 'reset' : 'banana',
+ 'reset': 'banana',
};
bool caughtException;
try {
await isolate.invokeRpcNoUpgrade('_getAllocationProfile', params);
- expect(false, isTrue, reason:'Unreachable');
+ expect(false, isTrue, reason: 'Unreachable');
} on ServerRpcException catch (e) {
caughtException = true;
expect(e.code, equals(ServerRpcException.kInvalidParams));
expect(e.data['details'],
- "_getAllocationProfile: invalid \'reset\' parameter: banana");
+ "_getAllocationProfile: invalid \'reset\' parameter: banana");
}
expect(caughtException, isTrue);
},
-
(Isolate isolate) async {
var params = {
- 'gc' : 'banana',
+ 'gc': 'banana',
};
bool caughtException;
try {
- await isolate.invokeRpcNoUpgrade(
- '_getAllocationProfile', params);
- expect(false, isTrue, reason:'Unreachable');
+ await isolate.invokeRpcNoUpgrade('_getAllocationProfile', params);
+ expect(false, isTrue, reason: 'Unreachable');
} on ServerRpcException catch (e) {
caughtException = true;
expect(e.code, equals(ServerRpcException.kInvalidParams));
expect(e.data['details'],
- "_getAllocationProfile: invalid \'gc\' parameter: banana");
+ "_getAllocationProfile: invalid \'gc\' parameter: banana");
}
expect(caughtException, isTrue);
},
« no previous file with comments | « runtime/observatory/tests/service/gc_test.dart ('k') | runtime/observatory/tests/service/get_allocation_samples_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698