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

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

Issue 1149373006: Add getVersion and setLibraryDebuggable RPCs to the service protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: when all is said and done Created 5 years, 7 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_version_rpc_test.dart
diff --git a/runtime/observatory/tests/service/vm_test.dart b/runtime/observatory/tests/service/get_version_rpc_test.dart
similarity index 54%
copy from runtime/observatory/tests/service/vm_test.dart
copy to runtime/observatory/tests/service/get_version_rpc_test.dart
index 1e58d9ba18a190d7b6ac16437514902d4e31f2c2..92b8c06050fe9974bdff9f39a4b6f483a5beae39 100644
--- a/runtime/observatory/tests/service/vm_test.dart
+++ b/runtime/observatory/tests/service/get_version_rpc_test.dart
@@ -5,17 +5,18 @@
import 'package:observatory/service_io.dart';
import 'package:unittest/unittest.dart';
+
import 'test_helper.dart';
var tests = [
-
-(Isolate isolate) {
- VM vm = isolate.owner;
- expect(vm.targetCPU, isNotNull);
- expect(vm.architectureBits == 32 ||
- vm.architectureBits == 64, isTrue);
-},
-
+ (VM vm) async {
+ var result = await vm.invokeRpcNoUpgrade('getVersion', {});
+ expect(result['type'], equals('Version'));
+ expect(result['major'], equals(1));
+ expect(result['minor'], equals(0));
+ expect(result['_privateMajor'], equals(0));
+ expect(result['_privateMinor'], equals(0));
+ },
];
-main(args) => runIsolateTests(args, tests);
+main(args) async => runVMTests(args, tests);

Powered by Google App Engine
This is Rietveld 408576698