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
ab441685
Commit
ab441685
authored
Sep 11, 2015
by
Ian Fischer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test install command
parent
81746e98
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
device.dart
packages/flutter_tools/lib/src/device.dart
+1
-1
pubspec.yaml
packages/flutter_tools/pubspec.yaml
+3
-0
install_test.dart
packages/flutter_tools/test/install_test.dart
+31
-0
No files found.
packages/flutter_tools/lib/src/device.dart
View file @
ab441685
...
@@ -52,7 +52,7 @@ class AndroidDevice extends _Device {
...
@@ -52,7 +52,7 @@ class AndroidDevice extends _Device {
@override
@override
bool
installApp
(
String
path
)
{
bool
installApp
(
String
path
)
{
return
fals
e
;
return
tru
e
;
}
}
@override
@override
...
...
packages/flutter_tools/pubspec.yaml
View file @
ab441685
...
@@ -16,6 +16,9 @@ dependencies:
...
@@ -16,6 +16,9 @@ dependencies:
shelf_static
:
^0.2.3
shelf_static
:
^0.2.3
test
:
"
>=0.12.4+5
<0.12.5"
test
:
"
>=0.12.4+5
<0.12.5"
dev_dependencies
:
mockito
:
"
^0.10.1"
# Add the bin/sky_tools.dart script to the scripts pub installs.
# Add the bin/sky_tools.dart script to the scripts pub installs.
executables
:
executables
:
sky_tools
:
sky_tools
:
packages/flutter_tools/test/install_test.dart
0 → 100644
View file @
ab441685
// Copyright 2015 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.
library
install_test
;
import
'package:args/args.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:sky_tools/src/install.dart'
;
import
'package:test/test.dart'
;
main
()
=>
defineTests
();
defineTests
()
{
group
(
'install'
,
()
{
test
(
'install returns 0'
,
()
{
MockArgResults
results
=
new
MockArgResults
();
when
(
results
[
'help'
]).
thenReturn
(
false
);
InstallCommandHandler
handler
=
new
InstallCommandHandler
();
handler
.
processArgResults
(
results
)
.
then
((
int
code
)
=>
expect
(
code
,
equals
(
0
)));
});
});
}
@proxy
class
MockArgResults
extends
Mock
implements
ArgResults
{
@override
dynamic
noSuchMethod
(
Invocation
invocation
)
=>
super
.
noSuchMethod
(
invocation
);
}
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