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
a3e71bf1
Unverified
Commit
a3e71bf1
authored
May 16, 2018
by
Sarah Zakarias
Committed by
GitHub
May 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add startup test for Platform View example (#17645)
parent
8415c0fd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
0 deletions
+59
-0
platform_view__start_up.dart
dev/devicelab/bin/tasks/platform_view__start_up.dart
+14
-0
platform_view_ios__start_up.dart
dev/devicelab/bin/tasks/platform_view_ios__start_up.dart
+26
-0
perf_tests.dart
dev/devicelab/lib/tasks/perf_tests.dart
+7
-0
manifest.yaml
dev/devicelab/manifest.yaml
+12
-0
No files found.
dev/devicelab/bin/tasks/platform_view__start_up.dart
0 → 100644
View file @
a3e71bf1
// Copyright 2018 The Chromium 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:async'
;
import
'package:flutter_devicelab/tasks/perf_tests.dart'
;
import
'package:flutter_devicelab/framework/adb.dart'
;
import
'package:flutter_devicelab/framework/framework.dart'
;
Future
<
Null
>
main
()
async
{
deviceOperatingSystem
=
DeviceOperatingSystem
.
android
;
await
task
(
createPlatformViewStartupTest
());
}
dev/devicelab/bin/tasks/platform_view_ios__start_up.dart
0 → 100644
View file @
a3e71bf1
// Copyright 2018 The Chromium 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:async'
;
import
'dart:io'
;
import
'package:flutter_devicelab/framework/utils.dart'
;
import
'package:flutter_devicelab/tasks/perf_tests.dart'
;
import
'package:flutter_devicelab/framework/adb.dart'
;
import
'package:flutter_devicelab/framework/framework.dart'
;
Future
<
Null
>
main
()
async
{
deviceOperatingSystem
=
DeviceOperatingSystem
.
ios
;
await
task
(()
async
{
final
Directory
iosDirectory
=
dir
(
'
${flutterDirectory.path}
/examples/platform_view/ios'
,
);
await
inDirectory
(
iosDirectory
,
()
async
{
await
exec
(
'pod'
,
<
String
>[
'install'
]);
});
final
TaskFunction
taskFunction
=
createPlatformViewStartupTest
();
return
await
taskFunction
();
});
}
dev/devicelab/lib/tasks/perf_tests.dart
View file @
a3e71bf1
...
...
@@ -77,6 +77,13 @@ TaskFunction createFlutterViewStartupTest() {
).
run
;
}
TaskFunction
createPlatformViewStartupTest
(
)
{
return
new
StartupTest
(
'
${flutterDirectory.path}
/examples/platform_view'
,
reportMetrics:
false
,
).
run
;
}
TaskFunction
createBasicMaterialCompileTest
(
)
{
return
()
async
{
const
String
sampleAppName
=
'sample_flutter_app'
;
...
...
dev/devicelab/manifest.yaml
View file @
a3e71bf1
...
...
@@ -136,6 +136,12 @@ tasks:
stage
:
devicelab
required_agent_capabilities
:
[
"
mac/android"
]
platform_view__start_up
:
description
:
>
Verifies that Platform View can be used from an Android project.
stage
:
devicelab
required_agent_capabilities
:
[
"
mac/android"
]
complex_layout__start_up
:
description
:
>
Measures the startup time of the Complex Layout sample app on Android.
...
...
@@ -289,6 +295,12 @@ tasks:
stage
:
devicelab_ios
required_agent_capabilities
:
[
"
mac/ios"
]
platform_view_ios__start_up
:
description
:
>
Verifies that Platform View can be used from an iOS project.
stage
:
devicelab_ios
required_agent_capabilities
:
[
"
mac/ios"
]
complex_layout_scroll_perf_ios__timeline_summary
:
description
:
>
Measures the runtime performance of the Complex Layout sample app on
...
...
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