Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
be82bb8f
Unverified
Commit
be82bb8f
authored
Jan 17, 2021
by
Zachary Anderson
Committed by
GitHub
Jan 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tracing test to check default streams (#74109)
parent
21c61f21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
default_streams_test.dart
dev/tracing_tests/test/default_streams_test.dart
+41
-0
No files found.
dev/tracing_tests/test/default_streams_test.dart
0 → 100644
View file @
be82bb8f
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'dart:developer'
as
developer
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:vm_service/vm_service.dart'
;
import
'package:vm_service/vm_service_io.dart'
;
// This test ensures that the engine starts the VM with the timeline streams
// for "Dart", "Embedder", and "GC" recorded from startup.
void
main
(
)
{
VmService
vmService
;
setUpAll
(()
async
{
final
developer
.
ServiceProtocolInfo
info
=
await
developer
.
Service
.
getInfo
();
if
(
info
.
serverUri
==
null
)
{
fail
(
'This test _must_ be run with --enable-vmservice.'
);
}
vmService
=
await
vmServiceConnectUri
(
'ws://localhost:
${info.serverUri.port}${info.serverUri.path}
ws'
,
);
});
tearDownAll
(()
{
vmService
.
dispose
();
});
test
(
'Image cache tracing'
,
()
async
{
final
TimelineFlags
flags
=
await
vmService
.
getVMTimelineFlags
();
expect
(
flags
.
recordedStreams
,
containsAll
(<
String
>[
'Dart'
,
'Embedder'
,
'GC'
,
]));
},
skip:
isBrowser
);
// uses dart:isolate and io
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment