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

Unified Diff: runtime/observatory/tests/observatory_ui/vm_connect_target/element_test.dart

Issue 2179993002: Using TargetMock during vm-connect-target tests (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/observatory_ui/vm_connect_target/element_test.dart
diff --git a/runtime/observatory/tests/observatory_ui/vm_connect_target/element_test.dart b/runtime/observatory/tests/observatory_ui/vm_connect_target/element_test.dart
index b84878de2eacf44c76910bfd7d28642dd11e37f0..a4340e86557203006deece46ce2894640de8809b 100644
--- a/runtime/observatory/tests/observatory_ui/vm_connect_target/element_test.dart
+++ b/runtime/observatory/tests/observatory_ui/vm_connect_target/element_test.dart
@@ -3,15 +3,15 @@
// BSD-style license that can be found in the LICENSE file.
import 'dart:html';
import 'package:unittest/unittest.dart';
-import 'package:observatory/service_html.dart';
+import 'package:observatory/mocks.dart';
import 'package:observatory/src/elements/vm_connect_target.dart';
main() {
VMConnectTargetElement.tag.ensureRegistration();
- WebSocketVMTarget t;
+ TargetMock t;
setUp(() {
- t = new WebSocketVMTarget("a network address");
+ t = new TargetMock(name: "a network address");
});
group('instantiation', () {
test('no other parameters', () {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698