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

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

Issue 1127693003: Fix analyzer warnings in service tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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_retained_size_rpc_test.dart
diff --git a/runtime/observatory/tests/service/get_retained_size_rpc_test.dart b/runtime/observatory/tests/service/get_retained_size_rpc_test.dart
index a8a66f6eb07a690ff3f5364e185b9716416f8faa..e71acb67403fb7769b673fdb1401eecbec646dc1 100644
--- a/runtime/observatory/tests/service/get_retained_size_rpc_test.dart
+++ b/runtime/observatory/tests/service/get_retained_size_rpc_test.dart
@@ -3,8 +3,6 @@
// BSD-style license that can be found in the LICENSE file.
// VMOptions=--compile-all --error_on_bad_type --error_on_bad_override
-import 'dart:async';
-
import 'package:observatory/service_io.dart';
import 'package:unittest/unittest.dart';
@@ -19,6 +17,8 @@ class _TestClass {
var myVar;
eval(Isolate isolate, String expression) async {
+ // Silence analyzer.
+ new _TestClass(null, null);
Map params = {
'targetId': isolate.rootLib.id,
'expression': expression,

Powered by Google App Engine
This is Rietveld 408576698