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

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

Issue 1535513002: Fix get_cpu_profile_timeline_rpc_test. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | runtime/vm/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/service/get_cpu_profile_timeline_rpc_test.dart
diff --git a/runtime/observatory/tests/service/get_cpu_profile_timeline_rpc_test.dart b/runtime/observatory/tests/service/get_cpu_profile_timeline_rpc_test.dart
index cf534c2d3edaa7f8dfda237c463d1c6483d2cc27..2d2b802d9c080122fb4961b873f9c1e16cb2080c 100644
--- a/runtime/observatory/tests/service/get_cpu_profile_timeline_rpc_test.dart
+++ b/runtime/observatory/tests/service/get_cpu_profile_timeline_rpc_test.dart
@@ -31,6 +31,7 @@ var tests = [
expect(result['type'], equals('_CpuProfileTimeline'));
var isString = new isInstanceOf<String>();
+ var isInt = new isInstanceOf<int>();
Map frames = result['stackFrames'];
for (Map frame in frames.values) {
@@ -44,9 +45,9 @@ var tests = [
List events = result['traceEvents'];
for (Map event in events) {
expect(event['ph'], equals('P'));
- expect(event['pid'], isString);
- expect(event['tid'], isString);
- expect(event['ts'], isString);
+ expect(event['pid'], isInt);
+ expect(event['tid'], isInt);
+ expect(event['ts'], isInt);
expect(event['category'], equals("Dart"));
expect(frames.containsKey(event['sf']), isTrue);
}
« no previous file with comments | « no previous file | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698