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
771c843f
Unverified
Commit
771c843f
authored
Aug 08, 2019
by
Christopher Fujino
Committed by
GitHub
Aug 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
have android_semantics_testing use adb from ENV provided android sdk (#37828)
parent
2adb042c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
main_test.dart
...ests/android_semantics_testing/test_driver/main_test.dart
+12
-2
No files found.
dev/integration_tests/android_semantics_testing/test_driver/main_test.dart
View file @
771c843f
...
@@ -10,6 +10,16 @@ import 'package:android_semantics_testing/android_semantics_testing.dart';
...
@@ -10,6 +10,16 @@ import 'package:android_semantics_testing/android_semantics_testing.dart';
import
'package:test/test.dart'
hide
TypeMatcher
,
isInstanceOf
;
import
'package:test/test.dart'
hide
TypeMatcher
,
isInstanceOf
;
import
'package:flutter_driver/flutter_driver.dart'
;
import
'package:flutter_driver/flutter_driver.dart'
;
import
'package:path/path.dart'
as
path
;
String
adbPath
(
)
{
final
String
androidHome
=
io
.
Platform
.
environment
[
'ANDROID_HOME'
]
??
io
.
Platform
.
environment
[
'ANDROID_SDK_ROOT'
];
if
(
androidHome
==
null
)
{
return
'adb'
;
}
else
{
return
path
.
join
(
androidHome
,
'platform-tools'
,
'adb'
);
}
}
void
main
(
)
{
void
main
(
)
{
group
(
'AccessibilityBridge'
,
()
{
group
(
'AccessibilityBridge'
,
()
{
...
@@ -23,7 +33,7 @@ void main() {
...
@@ -23,7 +33,7 @@ void main() {
setUpAll
(()
async
{
setUpAll
(()
async
{
driver
=
await
FlutterDriver
.
connect
();
driver
=
await
FlutterDriver
.
connect
();
// Say the magic words..
// Say the magic words..
final
io
.
Process
run
=
await
io
.
Process
.
start
(
'adb'
,
const
<
String
>[
final
io
.
Process
run
=
await
io
.
Process
.
start
(
adbPath
()
,
const
<
String
>[
'shell'
,
'shell'
,
'settings'
,
'settings'
,
'put'
,
'put'
,
...
@@ -36,7 +46,7 @@ void main() {
...
@@ -36,7 +46,7 @@ void main() {
tearDownAll
(()
async
{
tearDownAll
(()
async
{
// ... And turn it off again
// ... And turn it off again
final
io
.
Process
run
=
await
io
.
Process
.
start
(
'adb'
,
const
<
String
>[
final
io
.
Process
run
=
await
io
.
Process
.
start
(
adbPath
()
,
const
<
String
>[
'shell'
,
'shell'
,
'settings'
,
'settings'
,
'put'
,
'put'
,
...
...
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