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
45a4f639
Commit
45a4f639
authored
Dec 02, 2016
by
Yegor
Committed by
GitHub
Dec 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devicelab: make specifying device OS less confusing (#7132)
parent
4da4ca89
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
31 additions
and
40 deletions
+31
-40
complex_layout__start_up.dart
dev/devicelab/bin/tasks/complex_layout__start_up.dart
+2
-1
complex_layout_ios__start_up.dart
dev/devicelab/bin/tasks/complex_layout_ios__start_up.dart
+2
-1
complex_layout_scroll_perf__memory.dart
...vicelab/bin/tasks/complex_layout_scroll_perf__memory.dart
+2
-1
complex_layout_scroll_perf__timeline_summary.dart
...n/tasks/complex_layout_scroll_perf__timeline_summary.dart
+2
-1
complex_layout_scroll_perf_ios__timeline_summary.dart
...sks/complex_layout_scroll_perf_ios__timeline_summary.dart
+2
-1
flutter_gallery__start_up.dart
dev/devicelab/bin/tasks/flutter_gallery__start_up.dart
+2
-1
flutter_gallery__transition_perf.dart
...devicelab/bin/tasks/flutter_gallery__transition_perf.dart
+2
-1
flutter_gallery_ios__start_up.dart
dev/devicelab/bin/tasks/flutter_gallery_ios__start_up.dart
+2
-1
flutter_gallery_ios__transition_perf.dart
...celab/bin/tasks/flutter_gallery_ios__transition_perf.dart
+2
-1
gallery.dart
dev/devicelab/lib/tasks/gallery.dart
+3
-10
perf_tests.dart
dev/devicelab/lib/tasks/perf_tests.dart
+10
-21
No files found.
dev/devicelab/bin/tasks/complex_layout__start_up.dart
View file @
45a4f639
...
...
@@ -9,5 +9,6 @@ import 'package:flutter_devicelab/framework/adb.dart';
import
'package:flutter_devicelab/framework/framework.dart'
;
Future
<
Null
>
main
()
async
{
await
task
(
createComplexLayoutStartupTest
(
os:
DeviceOperatingSystem
.
android
));
deviceOperatingSystem
=
DeviceOperatingSystem
.
android
;
await
task
(
createComplexLayoutStartupTest
());
}
dev/devicelab/bin/tasks/complex_layout_ios__start_up.dart
View file @
45a4f639
...
...
@@ -9,5 +9,6 @@ import 'package:flutter_devicelab/framework/adb.dart';
import
'package:flutter_devicelab/framework/framework.dart'
;
Future
<
Null
>
main
()
async
{
await
task
(
createComplexLayoutStartupTest
(
os:
DeviceOperatingSystem
.
ios
));
deviceOperatingSystem
=
DeviceOperatingSystem
.
ios
;
await
task
(
createComplexLayoutStartupTest
());
}
dev/devicelab/bin/tasks/complex_layout_scroll_perf__memory.dart
View file @
45a4f639
...
...
@@ -9,5 +9,6 @@ import 'package:flutter_devicelab/framework/adb.dart';
import
'package:flutter_devicelab/framework/framework.dart'
;
Future
<
Null
>
main
()
async
{
await
task
(
createComplexLayoutScrollMemoryTest
(
os:
DeviceOperatingSystem
.
android
));
deviceOperatingSystem
=
DeviceOperatingSystem
.
android
;
await
task
(
createComplexLayoutScrollMemoryTest
());
}
dev/devicelab/bin/tasks/complex_layout_scroll_perf__timeline_summary.dart
View file @
45a4f639
...
...
@@ -9,5 +9,6 @@ import 'package:flutter_devicelab/framework/adb.dart';
import
'package:flutter_devicelab/framework/framework.dart'
;
Future
<
Null
>
main
()
async
{
await
task
(
createComplexLayoutScrollPerfTest
(
os:
DeviceOperatingSystem
.
android
));
deviceOperatingSystem
=
DeviceOperatingSystem
.
android
;
await
task
(
createComplexLayoutScrollPerfTest
());
}
dev/devicelab/bin/tasks/complex_layout_scroll_perf_ios__timeline_summary.dart
View file @
45a4f639
...
...
@@ -9,5 +9,6 @@ import 'package:flutter_devicelab/framework/adb.dart';
import
'package:flutter_devicelab/framework/framework.dart'
;
Future
<
Null
>
main
()
async
{
await
task
(
createComplexLayoutScrollPerfTest
(
os:
DeviceOperatingSystem
.
ios
));
deviceOperatingSystem
=
DeviceOperatingSystem
.
ios
;
await
task
(
createComplexLayoutScrollPerfTest
());
}
dev/devicelab/bin/tasks/flutter_gallery__start_up.dart
View file @
45a4f639
...
...
@@ -9,5 +9,6 @@ import 'package:flutter_devicelab/framework/adb.dart';
import
'package:flutter_devicelab/framework/framework.dart'
;
Future
<
Null
>
main
()
async
{
await
task
(
createFlutterGalleryStartupTest
(
os:
DeviceOperatingSystem
.
android
));
deviceOperatingSystem
=
DeviceOperatingSystem
.
android
;
await
task
(
createFlutterGalleryStartupTest
());
}
dev/devicelab/bin/tasks/flutter_gallery__transition_perf.dart
View file @
45a4f639
...
...
@@ -9,5 +9,6 @@ import 'package:flutter_devicelab/framework/adb.dart';
import
'package:flutter_devicelab/framework/framework.dart'
;
Future
<
Null
>
main
()
async
{
await
task
(
createGalleryTransitionTest
(
os:
DeviceOperatingSystem
.
android
));
deviceOperatingSystem
=
DeviceOperatingSystem
.
android
;
await
task
(
createGalleryTransitionTest
());
}
dev/devicelab/bin/tasks/flutter_gallery_ios__start_up.dart
View file @
45a4f639
...
...
@@ -9,5 +9,6 @@ import 'package:flutter_devicelab/framework/adb.dart';
import
'package:flutter_devicelab/framework/framework.dart'
;
Future
<
Null
>
main
()
async
{
await
task
(
createFlutterGalleryStartupTest
(
os:
DeviceOperatingSystem
.
ios
));
deviceOperatingSystem
=
DeviceOperatingSystem
.
ios
;
await
task
(
createFlutterGalleryStartupTest
());
}
dev/devicelab/bin/tasks/flutter_gallery_ios__transition_perf.dart
View file @
45a4f639
...
...
@@ -9,5 +9,6 @@ import 'package:flutter_devicelab/framework/adb.dart';
import
'package:flutter_devicelab/framework/framework.dart'
;
Future
<
Null
>
main
()
async
{
await
task
(
createGalleryTransitionTest
(
os:
DeviceOperatingSystem
.
ios
));
deviceOperatingSystem
=
DeviceOperatingSystem
.
ios
;
await
task
(
createGalleryTransitionTest
());
}
dev/devicelab/lib/tasks/gallery.dart
View file @
45a4f639
...
...
@@ -6,22 +6,15 @@ import 'dart:async';
import
'dart:convert'
;
import
'dart:io'
;
import
'package:meta/meta.dart'
;
import
'../framework/adb.dart'
;
import
'../framework/framework.dart'
;
import
'../framework/utils.dart'
;
TaskFunction
createGalleryTransitionTest
(
{
@required
DeviceOperatingSystem
os
}
)
{
return
new
GalleryTransitionTest
(
os:
os
);
TaskFunction
createGalleryTransitionTest
(
)
{
return
new
GalleryTransitionTest
();
}
class
GalleryTransitionTest
{
GalleryTransitionTest
({
this
.
os
})
{
deviceOperatingSystem
=
os
;
}
final
DeviceOperatingSystem
os
;
Future
<
TaskResult
>
call
()
async
{
Device
device
=
await
devices
.
workingDevice
;
...
...
@@ -32,7 +25,7 @@ class GalleryTransitionTest {
await
inDirectory
(
galleryDirectory
,
()
async
{
await
flutter
(
'packages'
,
options:
<
String
>[
'get'
]);
if
(
os
==
DeviceOperatingSystem
.
ios
)
{
if
(
deviceOperatingSystem
==
DeviceOperatingSystem
.
ios
)
{
// This causes an Xcode project to be created.
await
flutter
(
'build'
,
options:
<
String
>[
'ios'
,
'--profile'
]);
}
...
...
dev/devicelab/lib/tasks/perf_tests.dart
View file @
45a4f639
...
...
@@ -5,42 +5,36 @@
import
'dart:async'
;
import
'dart:convert'
show
JSON
;
import
'package:meta/meta.dart'
;
import
'../framework/adb.dart'
;
import
'../framework/framework.dart'
;
import
'../framework/utils.dart'
;
TaskFunction
createComplexLayoutScrollPerfTest
(
{
@required
DeviceOperatingSystem
os
}
)
{
TaskFunction
createComplexLayoutScrollPerfTest
(
)
{
return
new
PerfTest
(
'
${flutterDirectory.path}
/dev/benchmarks/complex_layout'
,
'test_driver/scroll_perf.dart'
,
'complex_layout_scroll_perf'
,
os:
os
,
);
}
TaskFunction
createComplexLayoutScrollMemoryTest
(
{
@required
DeviceOperatingSystem
os
}
)
{
TaskFunction
createComplexLayoutScrollMemoryTest
(
)
{
return
new
MemoryTest
(
'
${flutterDirectory.path}
/dev/benchmarks/complex_layout'
,
'test_driver/scroll_perf.dart'
,
'complex_layout_scroll_perf'
,
'com.yourcompany.complexLayout'
,
os:
os
,
);
}
TaskFunction
createFlutterGalleryStartupTest
(
{
@required
DeviceOperatingSystem
os
}
)
{
TaskFunction
createFlutterGalleryStartupTest
(
)
{
return
new
StartupTest
(
'
${flutterDirectory.path}
/examples/flutter_gallery'
,
os:
os
,
);
}
TaskFunction
createComplexLayoutStartupTest
(
{
@required
DeviceOperatingSystem
os
}
)
{
TaskFunction
createComplexLayoutStartupTest
(
)
{
return
new
StartupTest
(
'
${flutterDirectory.path}
/dev/benchmarks/complex_layout'
,
os:
os
,
);
}
...
...
@@ -56,19 +50,16 @@ TaskFunction createComplexLayoutBuildTest() {
class
StartupTest
{
static
const
Duration
_startupTimeout
=
const
Duration
(
minutes:
2
);
StartupTest
(
this
.
testDirectory
,
{
this
.
os
})
{
deviceOperatingSystem
=
os
;
}
StartupTest
(
this
.
testDirectory
);
final
String
testDirectory
;
final
DeviceOperatingSystem
os
;
Future
<
TaskResult
>
call
()
async
{
return
await
inDirectory
(
testDirectory
,
()
async
{
String
deviceId
=
(
await
devices
.
workingDevice
).
deviceId
;
await
flutter
(
'packages'
,
options:
<
String
>[
'get'
]);
if
(
os
==
DeviceOperatingSystem
.
ios
)
{
if
(
deviceOperatingSystem
==
DeviceOperatingSystem
.
ios
)
{
// This causes an Xcode project to be created.
await
flutter
(
'build'
,
options:
<
String
>[
'ios'
,
'--profile'
]);
}
...
...
@@ -91,12 +82,11 @@ class StartupTest {
/// performance.
class
PerfTest
{
PerfTest
(
this
.
testDirectory
,
this
.
testTarget
,
this
.
timelineFileName
,
{
this
.
os
}
);
PerfTest
(
this
.
testDirectory
,
this
.
testTarget
,
this
.
timelineFileName
);
final
String
testDirectory
;
final
String
testTarget
;
final
String
timelineFileName
;
final
DeviceOperatingSystem
os
;
Future
<
TaskResult
>
call
()
{
return
inDirectory
(
testDirectory
,
()
async
{
...
...
@@ -105,7 +95,7 @@ class PerfTest {
String
deviceId
=
device
.
deviceId
;
await
flutter
(
'packages'
,
options:
<
String
>[
'get'
]);
if
(
os
==
DeviceOperatingSystem
.
ios
)
{
if
(
deviceOperatingSystem
==
DeviceOperatingSystem
.
ios
)
{
// This causes an Xcode project to be created.
await
flutter
(
'build'
,
options:
<
String
>[
'ios'
,
'--profile'
]);
}
...
...
@@ -185,13 +175,12 @@ class BuildTest {
}
class
MemoryTest
{
MemoryTest
(
this
.
testDirectory
,
this
.
testTarget
,
this
.
timelineFileName
,
this
.
packageName
,
{
this
.
os
}
);
MemoryTest
(
this
.
testDirectory
,
this
.
testTarget
,
this
.
timelineFileName
,
this
.
packageName
);
final
String
testDirectory
;
final
String
testTarget
;
final
String
timelineFileName
;
final
String
packageName
;
final
DeviceOperatingSystem
os
;
Future
<
TaskResult
>
call
()
{
return
inDirectory
(
testDirectory
,
()
async
{
...
...
@@ -200,7 +189,7 @@ class MemoryTest {
String
deviceId
=
device
.
deviceId
;
await
flutter
(
'packages'
,
options:
<
String
>[
'get'
]);
if
(
os
==
DeviceOperatingSystem
.
ios
)
{
if
(
deviceOperatingSystem
==
DeviceOperatingSystem
.
ios
)
{
// This causes an Xcode project to be created.
await
flutter
(
'build'
,
options:
<
String
>[
'ios'
,
'--profile'
]);
}
...
...
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