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
da0a12c6
Commit
da0a12c6
authored
Nov 10, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename sky_tools to flutter_tools
parent
75f2f1ab
Changes
37
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
51 additions
and
54 deletions
+51
-54
flutter
bin/flutter
+1
-1
build_sky_apk.dart
packages/flutter_tools/bin/build_sky_apk.dart
+1
-1
flutter_tools.dart
packages/flutter_tools/bin/flutter_tools.dart
+1
-1
application_package.dart
packages/flutter_tools/lib/src/application_package.dart
+1
-1
artifacts.dart
packages/flutter_tools/lib/src/artifacts.dart
+1
-1
build_configuration.dart
packages/flutter_tools/lib/src/build_configuration.dart
+1
-1
cache.dart
packages/flutter_tools/lib/src/commands/cache.dart
+2
-2
daemon.dart
packages/flutter_tools/lib/src/commands/daemon.dart
+1
-1
flutter_command_runner.dart
...lutter_tools/lib/src/commands/flutter_command_runner.dart
+2
-2
list.dart
packages/flutter_tools/lib/src/commands/list.dart
+1
-1
listen.dart
packages/flutter_tools/lib/src/commands/listen.dart
+1
-1
logs.dart
packages/flutter_tools/lib/src/commands/logs.dart
+1
-1
run_mojo.dart
packages/flutter_tools/lib/src/commands/run_mojo.dart
+1
-1
start.dart
packages/flutter_tools/lib/src/commands/start.dart
+1
-1
stop.dart
packages/flutter_tools/lib/src/commands/stop.dart
+1
-1
test.dart
packages/flutter_tools/lib/src/commands/test.dart
+1
-1
trace.dart
packages/flutter_tools/lib/src/commands/trace.dart
+1
-1
device.dart
packages/flutter_tools/lib/src/device.dart
+1
-1
os_utils.dart
packages/flutter_tools/lib/src/os_utils.dart
+1
-1
process.dart
packages/flutter_tools/lib/src/process.dart
+1
-1
loader.dart
packages/flutter_tools/lib/src/test/loader.dart
+3
-3
remote_test.dart
packages/flutter_tools/lib/src/test/remote_test.dart
+1
-1
pubspec.yaml
packages/flutter_tools/pubspec.yaml
+2
-6
android_device_test.dart
packages/flutter_tools/test/android_device_test.dart
+1
-1
daemon_test.dart
packages/flutter_tools/test/daemon_test.dart
+1
-1
init_test.dart
packages/flutter_tools/test/init_test.dart
+4
-4
install_test.dart
packages/flutter_tools/test/install_test.dart
+1
-1
list_test.dart
packages/flutter_tools/test/list_test.dart
+1
-1
listen_test.dart
packages/flutter_tools/test/listen_test.dart
+1
-1
logs_test.dart
packages/flutter_tools/test/logs_test.dart
+1
-1
os_utils_test.dart
packages/flutter_tools/test/os_utils_test.dart
+2
-2
mocks.dart
packages/flutter_tools/test/src/mocks.dart
+5
-5
start_test.dart
packages/flutter_tools/test/start_test.dart
+1
-1
stop_test.dart
packages/flutter_tools/test/stop_test.dart
+1
-1
trace_test.dart
packages/flutter_tools/test/trace_test.dart
+1
-1
daemon_client.dart
packages/flutter_tools/tool/daemon_client.dart
+1
-1
pubspec.yaml
packages/unit/pubspec.yaml
+2
-1
No files found.
bin/flutter
View file @
da0a12c6
...
@@ -7,7 +7,7 @@ export FLUTTER_ROOT=$(dirname $(dirname "${BASH_SOURCE[0]}"))
...
@@ -7,7 +7,7 @@ export FLUTTER_ROOT=$(dirname $(dirname "${BASH_SOURCE[0]}"))
FLUTTER_TOOLS_DIR
=
"
$FLUTTER_ROOT
/packages/flutter_tools"
FLUTTER_TOOLS_DIR
=
"
$FLUTTER_ROOT
/packages/flutter_tools"
SNAPSHOT_PATH
=
"
$FLUTTER_ROOT
/bin/cache/flutter_tools.snapshot"
SNAPSHOT_PATH
=
"
$FLUTTER_ROOT
/bin/cache/flutter_tools.snapshot"
STAMP_PATH
=
"
$FLUTTER_ROOT
/bin/cache/flutter_tools.stamp"
STAMP_PATH
=
"
$FLUTTER_ROOT
/bin/cache/flutter_tools.stamp"
SCRIPT_PATH
=
"
$FLUTTER_TOOLS_DIR
/bin/
sky
_tools.dart"
SCRIPT_PATH
=
"
$FLUTTER_TOOLS_DIR
/bin/
flutter
_tools.dart"
# TODO(abarth): We shouldn't require dart to be on the user's path.
# TODO(abarth): We shouldn't require dart to be on the user's path.
DART
=
dart
DART
=
dart
...
...
packages/flutter_tools/bin/build_sky_apk.dart
View file @
da0a12c6
...
@@ -94,7 +94,7 @@ main(List<String> argv) async {
...
@@ -94,7 +94,7 @@ main(List<String> argv) async {
ArgResults
args
=
parser
.
parse
(
argv
);
ArgResults
args
=
parser
.
parse
(
argv
);
if
(
args
[
'help'
])
{
if
(
args
[
'help'
])
{
print
(
'usage:
pub run sky_tools:
build_sky_apk <options>'
);
print
(
'usage: build_sky_apk <options>'
);
print
(
''
);
print
(
''
);
print
(
parser
.
usage
);
print
(
parser
.
usage
);
return
;
return
;
...
...
packages/flutter_tools/bin/
sky
_tools.dart
→
packages/flutter_tools/bin/
flutter
_tools.dart
View file @
da0a12c6
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
import
'package:
sky
_tools/executable.dart'
as
executable
;
import
'package:
flutter
_tools/executable.dart'
as
executable
;
main
(
List
<
String
>
args
)
=>
executable
.
main
(
args
);
main
(
List
<
String
>
args
)
=>
executable
.
main
(
args
);
packages/flutter_tools/lib/src/application_package.dart
View file @
da0a12c6
...
@@ -10,7 +10,7 @@ import 'package:path/path.dart' as path;
...
@@ -10,7 +10,7 @@ import 'package:path/path.dart' as path;
import
'artifacts.dart'
;
import
'artifacts.dart'
;
import
'build_configuration.dart'
;
import
'build_configuration.dart'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.application_package'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.application_package'
);
abstract
class
ApplicationPackage
{
abstract
class
ApplicationPackage
{
/// Path to the actual apk or bundle.
/// Path to the actual apk or bundle.
...
...
packages/flutter_tools/lib/src/artifacts.dart
View file @
da0a12c6
...
@@ -12,7 +12,7 @@ import 'build_configuration.dart';
...
@@ -12,7 +12,7 @@ import 'build_configuration.dart';
import
'os_utils.dart'
;
import
'os_utils.dart'
;
import
'process.dart'
;
import
'process.dart'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.artifacts'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.artifacts'
);
const
String
_kShellCategory
=
'shell'
;
const
String
_kShellCategory
=
'shell'
;
const
String
_kViewerCategory
=
'viewer'
;
const
String
_kViewerCategory
=
'viewer'
;
...
...
packages/flutter_tools/lib/src/build_configuration.dart
View file @
da0a12c6
...
@@ -7,7 +7,7 @@ import 'dart:io';
...
@@ -7,7 +7,7 @@ import 'dart:io';
import
'package:logging/logging.dart'
;
import
'package:logging/logging.dart'
;
import
'package:path/path.dart'
as
path
;
import
'package:path/path.dart'
as
path
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.build_configuration'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.build_configuration'
);
enum
BuildType
{
enum
BuildType
{
prebuilt
,
prebuilt
,
...
...
packages/flutter_tools/lib/src/commands/cache.dart
View file @
da0a12c6
...
@@ -9,11 +9,11 @@ import 'package:logging/logging.dart';
...
@@ -9,11 +9,11 @@ import 'package:logging/logging.dart';
import
'../artifacts.dart'
;
import
'../artifacts.dart'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.cache'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.cache'
);
class
CacheCommand
extends
Command
{
class
CacheCommand
extends
Command
{
final
String
name
=
'cache'
;
final
String
name
=
'cache'
;
final
String
description
=
'Manages
sky_tools
\'
cache of binary artifacts.'
;
final
String
description
=
'Manages
Flutter
\'
s
cache of binary artifacts.'
;
CacheCommand
()
{
CacheCommand
()
{
addSubcommand
(
new
_ClearCommand
());
addSubcommand
(
new
_ClearCommand
());
addSubcommand
(
new
_PopulateCommand
());
addSubcommand
(
new
_PopulateCommand
());
...
...
packages/flutter_tools/lib/src/commands/daemon.dart
View file @
da0a12c6
...
@@ -20,7 +20,7 @@ const String domain = 'domain';
...
@@ -20,7 +20,7 @@ const String domain = 'domain';
/// A domain @command annotation.
/// A domain @command annotation.
const
String
command
=
'command'
;
const
String
command
=
'command'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.daemon'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.daemon'
);
// TODO: Create a `device` domain in order to list devices and fire events when
// TODO: Create a `device` domain in order to list devices and fire events when
// devices are added or removed.
// devices are added or removed.
...
...
packages/flutter_tools/lib/src/commands/flutter_command_runner.dart
View file @
da0a12c6
...
@@ -14,12 +14,12 @@ import '../artifacts.dart';
...
@@ -14,12 +14,12 @@ import '../artifacts.dart';
import
'../build_configuration.dart'
;
import
'../build_configuration.dart'
;
import
'../process.dart'
;
import
'../process.dart'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.flutter_command_runner'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.flutter_command_runner'
);
const
String
kFlutterRootEnvironmentVariableName
=
'FLUTTER_ROOT'
;
// should point to //flutter/ (root of flutter/flutter repo)
const
String
kFlutterRootEnvironmentVariableName
=
'FLUTTER_ROOT'
;
// should point to //flutter/ (root of flutter/flutter repo)
const
String
kFlutterEngineEnvironmentVariableName
=
'FLUTTER_ENGINE'
;
// should point to //engine/src/ (root of flutter/engine repo)
const
String
kFlutterEngineEnvironmentVariableName
=
'FLUTTER_ENGINE'
;
// should point to //engine/src/ (root of flutter/engine repo)
const
String
kSnapshotFileName
=
'flutter_tools.snapshot'
;
// in //flutter/bin/cache/
const
String
kSnapshotFileName
=
'flutter_tools.snapshot'
;
// in //flutter/bin/cache/
const
String
kFlutterToolsScriptFileName
=
'
sky
_tools.dart'
;
// in //flutter/packages/flutter_tools/bin/
const
String
kFlutterToolsScriptFileName
=
'
flutter
_tools.dart'
;
// in //flutter/packages/flutter_tools/bin/
const
String
kFlutterEnginePackageName
=
'sky_engine'
;
const
String
kFlutterEnginePackageName
=
'sky_engine'
;
class
FlutterCommandRunner
extends
CommandRunner
{
class
FlutterCommandRunner
extends
CommandRunner
{
...
...
packages/flutter_tools/lib/src/commands/list.dart
View file @
da0a12c6
...
@@ -9,7 +9,7 @@ import 'package:logging/logging.dart';
...
@@ -9,7 +9,7 @@ import 'package:logging/logging.dart';
import
'../device.dart'
;
import
'../device.dart'
;
import
'flutter_command.dart'
;
import
'flutter_command.dart'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.list'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.list'
);
class
ListCommand
extends
FlutterCommand
{
class
ListCommand
extends
FlutterCommand
{
final
String
name
=
'list'
;
final
String
name
=
'list'
;
...
...
packages/flutter_tools/lib/src/commands/listen.dart
View file @
da0a12c6
...
@@ -13,7 +13,7 @@ import '../process.dart';
...
@@ -13,7 +13,7 @@ import '../process.dart';
import
'build.dart'
;
import
'build.dart'
;
import
'flutter_command.dart'
;
import
'flutter_command.dart'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.listen'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.listen'
);
class
ListenCommand
extends
FlutterCommand
{
class
ListenCommand
extends
FlutterCommand
{
final
String
name
=
'listen'
;
final
String
name
=
'listen'
;
...
...
packages/flutter_tools/lib/src/commands/logs.dart
View file @
da0a12c6
...
@@ -9,7 +9,7 @@ import 'package:logging/logging.dart';
...
@@ -9,7 +9,7 @@ import 'package:logging/logging.dart';
import
'../device.dart'
;
import
'../device.dart'
;
import
'flutter_command.dart'
;
import
'flutter_command.dart'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.logs'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.logs'
);
class
LogsCommand
extends
FlutterCommand
{
class
LogsCommand
extends
FlutterCommand
{
final
String
name
=
'logs'
;
final
String
name
=
'logs'
;
...
...
packages/flutter_tools/lib/src/commands/run_mojo.dart
View file @
da0a12c6
...
@@ -13,7 +13,7 @@ import '../artifacts.dart';
...
@@ -13,7 +13,7 @@ import '../artifacts.dart';
import
'../build_configuration.dart'
;
import
'../build_configuration.dart'
;
import
'../process.dart'
;
import
'../process.dart'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.run_mojo'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.run_mojo'
);
class
RunMojoCommand
extends
Command
{
class
RunMojoCommand
extends
Command
{
final
String
name
=
'run_mojo'
;
final
String
name
=
'run_mojo'
;
...
...
packages/flutter_tools/lib/src/commands/start.dart
View file @
da0a12c6
...
@@ -15,7 +15,7 @@ import 'flutter_command.dart';
...
@@ -15,7 +15,7 @@ import 'flutter_command.dart';
import
'install.dart'
;
import
'install.dart'
;
import
'stop.dart'
;
import
'stop.dart'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.start'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.start'
);
class
StartCommand
extends
FlutterCommand
{
class
StartCommand
extends
FlutterCommand
{
final
String
name
=
'start'
;
final
String
name
=
'start'
;
...
...
packages/flutter_tools/lib/src/commands/stop.dart
View file @
da0a12c6
...
@@ -10,7 +10,7 @@ import '../application_package.dart';
...
@@ -10,7 +10,7 @@ import '../application_package.dart';
import
'../device.dart'
;
import
'../device.dart'
;
import
'flutter_command.dart'
;
import
'flutter_command.dart'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.stop'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.stop'
);
class
StopCommand
extends
FlutterCommand
{
class
StopCommand
extends
FlutterCommand
{
final
String
name
=
'stop'
;
final
String
name
=
'stop'
;
...
...
packages/flutter_tools/lib/src/commands/test.dart
View file @
da0a12c6
...
@@ -15,7 +15,7 @@ import '../process.dart';
...
@@ -15,7 +15,7 @@ import '../process.dart';
import
'../test/loader.dart'
as
loader
;
import
'../test/loader.dart'
as
loader
;
import
'flutter_command.dart'
;
import
'flutter_command.dart'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.test'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.test'
);
class
TestCommand
extends
FlutterCommand
{
class
TestCommand
extends
FlutterCommand
{
String
get
name
=>
'test'
;
String
get
name
=>
'test'
;
...
...
packages/flutter_tools/lib/src/commands/trace.dart
View file @
da0a12c6
...
@@ -10,7 +10,7 @@ import '../application_package.dart';
...
@@ -10,7 +10,7 @@ import '../application_package.dart';
import
'../device.dart'
;
import
'../device.dart'
;
import
'flutter_command.dart'
;
import
'flutter_command.dart'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.trace'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.trace'
);
class
TraceCommand
extends
FlutterCommand
{
class
TraceCommand
extends
FlutterCommand
{
final
String
name
=
'trace'
;
final
String
name
=
'trace'
;
...
...
packages/flutter_tools/lib/src/device.dart
View file @
da0a12c6
...
@@ -13,7 +13,7 @@ import 'application_package.dart';
...
@@ -13,7 +13,7 @@ import 'application_package.dart';
import
'build_configuration.dart'
;
import
'build_configuration.dart'
;
import
'process.dart'
;
import
'process.dart'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.device'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.device'
);
abstract
class
Device
{
abstract
class
Device
{
final
String
id
;
final
String
id
;
...
...
packages/flutter_tools/lib/src/os_utils.dart
View file @
da0a12c6
...
@@ -8,7 +8,7 @@ import 'package:logging/logging.dart';
...
@@ -8,7 +8,7 @@ import 'package:logging/logging.dart';
final
OperatingSystemUtils
osUtils
=
new
OperatingSystemUtils
.
_
();
final
OperatingSystemUtils
osUtils
=
new
OperatingSystemUtils
.
_
();
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.os'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.os'
);
abstract
class
OperatingSystemUtils
{
abstract
class
OperatingSystemUtils
{
factory
OperatingSystemUtils
.
_
()
{
factory
OperatingSystemUtils
.
_
()
{
...
...
packages/flutter_tools/lib/src/process.dart
View file @
da0a12c6
...
@@ -8,7 +8,7 @@ import 'dart:io';
...
@@ -8,7 +8,7 @@ import 'dart:io';
import
'package:logging/logging.dart'
;
import
'package:logging/logging.dart'
;
final
Logger
_logging
=
new
Logger
(
'
sky
_tools.process'
);
final
Logger
_logging
=
new
Logger
(
'
flutter
_tools.process'
);
/// This runs the command and streams stdout/stderr from the child process to
/// This runs the command and streams stdout/stderr from the child process to
/// this process' stdout/stderr.
/// this process' stdout/stderr.
...
...
packages/flutter_tools/lib/src/test/loader.dart
View file @
da0a12c6
...
@@ -7,8 +7,8 @@ import 'dart:convert';
...
@@ -7,8 +7,8 @@ import 'dart:convert';
import
'dart:io'
;
import
'dart:io'
;
import
'package:path/path.dart'
as
p
;
import
'package:path/path.dart'
as
p
;
import
'package:
sky
_tools/src/test/json_socket.dart'
;
import
'package:
flutter
_tools/src/test/json_socket.dart'
;
import
'package:
sky
_tools/src/test/remote_test.dart'
;
import
'package:
flutter
_tools/src/test/remote_test.dart'
;
import
'package:stack_trace/stack_trace.dart'
;
import
'package:stack_trace/stack_trace.dart'
;
import
'package:test/src/backend/group.dart'
;
import
'package:test/src/backend/group.dart'
;
import
'package:test/src/backend/metadata.dart'
;
import
'package:test/src/backend/metadata.dart'
;
...
@@ -79,7 +79,7 @@ Future<RunnerSuite> _loadVMFile(String path,
...
@@ -79,7 +79,7 @@ Future<RunnerSuite> _loadVMFile(String path,
import '
dart:
convert
';
import '
dart:
convert
';
import '
package:
test
/
src
/
backend
/
metadata
.
dart
';
import '
package:
test
/
src
/
backend
/
metadata
.
dart
';
import '
package:
sky
_tools
/
src
/
test
/
remote_listener
.
dart
';
import '
package:
flutter
_tools
/
src
/
test
/
remote_listener
.
dart
';
import '
$
{
p
.
toUri
(
p
.
absolute
(
path
))}
' as test;
import '
$
{
p
.
toUri
(
p
.
absolute
(
path
))}
' as test;
...
...
packages/flutter_tools/lib/src/test/remote_test.dart
View file @
da0a12c6
...
@@ -15,7 +15,7 @@ import 'package:test/src/backend/test.dart';
...
@@ -15,7 +15,7 @@ import 'package:test/src/backend/test.dart';
import
'package:test/src/backend/test_platform.dart'
;
import
'package:test/src/backend/test_platform.dart'
;
import
'package:test/src/util/remote_exception.dart'
;
import
'package:test/src/util/remote_exception.dart'
;
import
'package:
sky
_tools/src/test/json_socket.dart'
;
import
'package:
flutter
_tools/src/test/json_socket.dart'
;
class
RemoteTest
extends
Test
{
class
RemoteTest
extends
Test
{
RemoteTest
(
this
.
name
,
this
.
metadata
,
this
.
_socket
,
this
.
_index
);
RemoteTest
(
this
.
name
,
this
.
metadata
,
this
.
_socket
,
this
.
_index
);
...
...
packages/flutter_tools/pubspec.yaml
View file @
da0a12c6
name
:
sky
_tools
name
:
flutter
_tools
version
:
0.0.3
7
version
:
0.0.3
8
description
:
Tools for building Flutter applications
description
:
Tools for building Flutter applications
homepage
:
http://flutter.io
homepage
:
http://flutter.io
author
:
Flutter Authors <flutter-dev@googlegroups.com>
author
:
Flutter Authors <flutter-dev@googlegroups.com>
...
@@ -31,7 +31,3 @@ dependencies:
...
@@ -31,7 +31,3 @@ dependencies:
dev_dependencies
:
dev_dependencies
:
mockito
:
^0.10.1
mockito
:
^0.10.1
# Add the bin/sky_tools.dart script to the scripts pub installs.
executables
:
sky_tools
:
packages/flutter_tools/test/android_device_test.dart
View file @
da0a12c6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
import
'package:
sky
_tools/src/device.dart'
;
import
'package:
flutter
_tools/src/device.dart'
;
import
'package:test/test.dart'
;
import
'package:test/test.dart'
;
main
()
=>
defineTests
();
main
()
=>
defineTests
();
...
...
packages/flutter_tools/test/daemon_test.dart
View file @
da0a12c6
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
import
'dart:async'
;
import
'dart:async'
;
import
'package:mockito/mockito.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:
sky
_tools/src/commands/daemon.dart'
;
import
'package:
flutter
_tools/src/commands/daemon.dart'
;
import
'package:test/test.dart'
;
import
'package:test/test.dart'
;
import
'src/mocks.dart'
;
import
'src/mocks.dart'
;
...
...
packages/flutter_tools/test/init_test.dart
View file @
da0a12c6
...
@@ -6,9 +6,9 @@ import 'dart:io';
...
@@ -6,9 +6,9 @@ import 'dart:io';
import
'package:args/command_runner.dart'
;
import
'package:args/command_runner.dart'
;
import
'package:path/path.dart'
as
p
;
import
'package:path/path.dart'
as
p
;
import
'package:
sky
_tools/src/artifacts.dart'
;
import
'package:
flutter
_tools/src/artifacts.dart'
;
import
'package:
sky
_tools/src/commands/init.dart'
;
import
'package:
flutter
_tools/src/commands/init.dart'
;
import
'package:
sky
_tools/src/process.dart'
;
import
'package:
flutter
_tools/src/process.dart'
;
import
'package:test/test.dart'
;
import
'package:test/test.dart'
;
main
()
=>
defineTests
();
main
()
=>
defineTests
();
...
@@ -18,7 +18,7 @@ defineTests() {
...
@@ -18,7 +18,7 @@ defineTests() {
Directory
temp
;
Directory
temp
;
setUp
(()
{
setUp
(()
{
temp
=
Directory
.
systemTemp
.
createTempSync
(
'
sky
_tools'
);
temp
=
Directory
.
systemTemp
.
createTempSync
(
'
flutter
_tools'
);
});
});
tearDown
(()
{
tearDown
(()
{
...
...
packages/flutter_tools/test/install_test.dart
View file @
da0a12c6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
import
'package:args/command_runner.dart'
;
import
'package:args/command_runner.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:
sky
_tools/src/commands/install.dart'
;
import
'package:
flutter
_tools/src/commands/install.dart'
;
import
'package:test/test.dart'
;
import
'package:test/test.dart'
;
import
'src/mocks.dart'
;
import
'src/mocks.dart'
;
...
...
packages/flutter_tools/test/list_test.dart
View file @
da0a12c6
...
@@ -6,7 +6,7 @@ import 'dart:io';
...
@@ -6,7 +6,7 @@ import 'dart:io';
import
'package:args/command_runner.dart'
;
import
'package:args/command_runner.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:
sky
_tools/src/commands/list.dart'
;
import
'package:
flutter
_tools/src/commands/list.dart'
;
import
'package:test/test.dart'
;
import
'package:test/test.dart'
;
import
'src/mocks.dart'
;
import
'src/mocks.dart'
;
...
...
packages/flutter_tools/test/listen_test.dart
View file @
da0a12c6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
import
'package:args/command_runner.dart'
;
import
'package:args/command_runner.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:
sky
_tools/src/commands/listen.dart'
;
import
'package:
flutter
_tools/src/commands/listen.dart'
;
import
'package:test/test.dart'
;
import
'package:test/test.dart'
;
import
'src/mocks.dart'
;
import
'src/mocks.dart'
;
...
...
packages/flutter_tools/test/logs_test.dart
View file @
da0a12c6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
import
'package:args/command_runner.dart'
;
import
'package:args/command_runner.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:
sky
_tools/src/commands/logs.dart'
;
import
'package:
flutter
_tools/src/commands/logs.dart'
;
import
'package:test/test.dart'
;
import
'package:test/test.dart'
;
import
'src/mocks.dart'
;
import
'src/mocks.dart'
;
...
...
packages/flutter_tools/test/os_utils_test.dart
View file @
da0a12c6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
import
'dart:io'
;
import
'dart:io'
;
import
'package:
sky
_tools/src/os_utils.dart'
;
import
'package:
flutter
_tools/src/os_utils.dart'
;
import
'package:test/test.dart'
;
import
'package:test/test.dart'
;
import
'package:path/path.dart'
as
p
;
import
'package:path/path.dart'
as
p
;
...
@@ -15,7 +15,7 @@ defineTests() {
...
@@ -15,7 +15,7 @@ defineTests() {
Directory
temp
;
Directory
temp
;
setUp
(()
{
setUp
(()
{
temp
=
Directory
.
systemTemp
.
createTempSync
(
'
sky
_tools'
);
temp
=
Directory
.
systemTemp
.
createTempSync
(
'
flutter
_tools'
);
});
});
tearDown
(()
{
tearDown
(()
{
...
...
packages/flutter_tools/test/src/mocks.dart
View file @
da0a12c6
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
// found in the LICENSE file.
// found in the LICENSE file.
import
'package:mockito/mockito.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:
sky
_tools/src/application_package.dart'
;
import
'package:
flutter
_tools/src/application_package.dart'
;
import
'package:
sky
_tools/src/build_configuration.dart'
;
import
'package:
flutter
_tools/src/build_configuration.dart'
;
import
'package:
sky
_tools/src/commands/flutter_command.dart'
;
import
'package:
flutter
_tools/src/commands/flutter_command.dart'
;
import
'package:
sky
_tools/src/device.dart'
;
import
'package:
flutter
_tools/src/device.dart'
;
import
'package:
sky
_tools/src/toolchain.dart'
;
import
'package:
flutter
_tools/src/toolchain.dart'
;
class
MockApplicationPackageStore
extends
ApplicationPackageStore
{
class
MockApplicationPackageStore
extends
ApplicationPackageStore
{
MockApplicationPackageStore
()
:
super
(
MockApplicationPackageStore
()
:
super
(
...
...
packages/flutter_tools/test/start_test.dart
View file @
da0a12c6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
import
'package:args/command_runner.dart'
;
import
'package:args/command_runner.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:
sky
_tools/src/commands/start.dart'
;
import
'package:
flutter
_tools/src/commands/start.dart'
;
import
'package:test/test.dart'
;
import
'package:test/test.dart'
;
import
'src/mocks.dart'
;
import
'src/mocks.dart'
;
...
...
packages/flutter_tools/test/stop_test.dart
View file @
da0a12c6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
import
'package:args/command_runner.dart'
;
import
'package:args/command_runner.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:
sky
_tools/src/commands/stop.dart'
;
import
'package:
flutter
_tools/src/commands/stop.dart'
;
import
'package:test/test.dart'
;
import
'package:test/test.dart'
;
import
'src/mocks.dart'
;
import
'src/mocks.dart'
;
...
...
packages/flutter_tools/test/trace_test.dart
View file @
da0a12c6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
import
'package:args/command_runner.dart'
;
import
'package:args/command_runner.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:
sky
_tools/src/commands/trace.dart'
;
import
'package:
flutter
_tools/src/commands/trace.dart'
;
import
'package:test/test.dart'
;
import
'package:test/test.dart'
;
import
'src/mocks.dart'
;
import
'src/mocks.dart'
;
...
...
packages/flutter_tools/tool/daemon_client.dart
View file @
da0a12c6
...
@@ -8,7 +8,7 @@ import 'dart:io';
...
@@ -8,7 +8,7 @@ import 'dart:io';
Process
daemon
;
Process
daemon
;
main
()
async
{
main
()
async
{
daemon
=
await
Process
.
start
(
'dart'
,
[
'bin/
sky
_tools.dart'
,
'daemon'
]);
daemon
=
await
Process
.
start
(
'dart'
,
[
'bin/
flutter
_tools.dart'
,
'daemon'
]);
print
(
'daemon process started, pid:
${daemon.pid}
'
);
print
(
'daemon process started, pid:
${daemon.pid}
'
);
daemon
.
stdout
daemon
.
stdout
...
...
packages/unit/pubspec.yaml
View file @
da0a12c6
...
@@ -8,5 +8,6 @@ dependencies:
...
@@ -8,5 +8,6 @@ dependencies:
path
:
../flutter
path
:
../flutter
stocks
:
stocks
:
path
:
../../examples/stocks
path
:
../../examples/stocks
sky_tools
:
# To ensure the version of test doesn't get out of sync.
flutter_tools
:
path
:
../flutter_tools
path
:
../flutter_tools
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