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

Unified Diff: tests/fletchc/driver/test_vm_connection.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 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 | « tests/fletchc/driver/test_control_stream.dart ('k') | tests/fletchc/incremental/common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/fletchc/driver/test_vm_connection.dart
diff --git a/tests/fletchc/driver/test_vm_connection.dart b/tests/fletchc/driver/test_vm_connection.dart
deleted file mode 100644
index 33a6c06e75bed7ce0ddc718130b5c033448e1abb..0000000000000000000000000000000000000000
--- a/tests/fletchc/driver/test_vm_connection.dart
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE.md file.
-
-/// Used for testing compiler/debugger session when VM socket is closed
-/// unexpectedly.
-library fletchc.test.client.test_vm_connection;
-
-import 'dart:async' show
- Future;
-
-import 'dart:io' show
- InternetAddress;
-
-import 'dart:isolate' show
- SendPort;
-
-import 'package:expect/expect.dart' show
- Expect;
-
-import 'package:fletchc/src/hub/session_manager.dart' show
- SessionState;
-
-import 'package:fletchc/src/worker/developer.dart' show
- attachToVm;
-
-import 'package:fletchc/vm_commands.dart' show
- VmCommandCode;
-
-import '../run.dart' show
- FletchRunner;
-
-import 'mock_vm.dart' show
- MockVm;
-
-class MockVmRunner extends FletchRunner {
- final bool closeImmediately;
- final VmCommandCode closeAfterFirst;
-
- MockVm vm;
-
- MockVmRunner({this.closeImmediately: false, this.closeAfterFirst});
-
- Future<Null> attach(SessionState state) async {
- vm = await MockVm.spawn(
- closeImmediately: closeImmediately, closeAfterFirst: closeAfterFirst);
- await attachToVm(InternetAddress.LOOPBACK_IP_V4.address, vm.port, state);
- }
-
- Future<int> run(List<String> arguments, {int expectedExitCode: 0}) async {
- await super.run(arguments);
- int exitCode = await vm.exitCode;
- print("Mock VM exit code: $exitCode");
- return exitCode;
- }
-}
-
-main(List<String> arguments) async {
- await new MockVmRunner().run(arguments);
-}
-
-Future<Null> test() => main(<String>['tests/language/application_test.dart']);
-
-Future<Null> testCloseImmediately() async {
- int result = await new MockVmRunner(closeImmediately: true)
- .run(<String>['tests/language/application_test.dart']);
- // TODO(ahe): The actual exit code is TBD.
- Expect.equals(1, result);
-}
-
-Future<Null> testCloseAfterCommitChanges() async {
- int result =
- await new MockVmRunner(closeAfterFirst: VmCommandCode.CommitChanges)
- .run(<String>['tests/language/application_test.dart']);
- // TODO(ahe): The actual exit code is TBD.
- Expect.equals(1, result);
-}
-
-Future<Null> testCloseAfterProcessRun() async {
- int result = await new MockVmRunner(closeAfterFirst: VmCommandCode.ProcessRun)
- .run(<String>['tests/language/application_test.dart']);
- // TODO(ahe): The actual exit code is TBD.
- Expect.equals(1, result);
-}
« no previous file with comments | « tests/fletchc/driver/test_control_stream.dart ('k') | tests/fletchc/incremental/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698