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
7c9c5a29
Commit
7c9c5a29
authored
May 12, 2017
by
Ian Hickson
Committed by
GitHub
May 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rearrange tests to more closely match code structure (#10043)
parent
af4905ff
Changes
33
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
49 additions
and
49 deletions
+49
-49
android_device_test.dart
packages/flutter_tools/test/android/android_device_test.dart
+1
-1
android_sdk_test.dart
packages/flutter_tools/test/android/android_sdk_test.dart
+1
-1
common_test.dart
packages/flutter_tools/test/base/common_test.dart
+1
-1
context_test.dart
packages/flutter_tools/test/base/context_test.dart
+0
-0
file_system_test.dart
packages/flutter_tools/test/base/file_system_test.dart
+2
-2
io_test.dart
packages/flutter_tools/test/base/io_test.dart
+1
-1
logger_test.dart
packages/flutter_tools/test/base/logger_test.dart
+0
-0
logs_test.dart
packages/flutter_tools/test/base/logs_test.dart
+3
-3
os_test.dart
packages/flutter_tools/test/base/os_test.dart
+1
-1
os_utils_test.dart
packages/flutter_tools/test/base/os_utils_test.dart
+1
-1
process_test.dart
packages/flutter_tools/test/base/process_test.dart
+0
-0
cache_test.dart
packages/flutter_tools/test/cache_test.dart
+1
-1
analyze_continuously_test.dart
...lutter_tools/test/commands/analyze_continuously_test.dart
+1
-1
analyze_duplicate_names_test.dart
...ter_tools/test/commands/analyze_duplicate_names_test.dart
+3
-3
analyze_once_test.dart
packages/flutter_tools/test/commands/analyze_once_test.dart
+2
-2
analyze_test.dart
packages/flutter_tools/test/commands/analyze_test.dart
+1
-1
create_test.dart
packages/flutter_tools/test/commands/create_test.dart
+2
-2
daemon_test.dart
packages/flutter_tools/test/commands/daemon_test.dart
+2
-2
devices_test.dart
packages/flutter_tools/test/commands/devices_test.dart
+2
-2
doctor_test.dart
packages/flutter_tools/test/commands/doctor_test.dart
+1
-1
drive_test.dart
packages/flutter_tools/test/commands/drive_test.dart
+3
-3
format_test.dart
packages/flutter_tools/test/commands/format_test.dart
+2
-2
install_test.dart
packages/flutter_tools/test/commands/install_test.dart
+3
-3
packages_test.dart
packages/flutter_tools/test/commands/packages_test.dart
+2
-2
run_test.dart
packages/flutter_tools/test/commands/run_test.dart
+3
-3
test_test.dart
packages/flutter_tools/test/commands/test_test.dart
+1
-1
upgrade_test.dart
packages/flutter_tools/test/commands/upgrade_test.dart
+2
-2
devices_test.dart
packages/flutter_tools/test/ios/devices_test.dart
+1
-1
ios_workflow_test.dart
packages/flutter_tools/test/ios/ios_workflow_test.dart
+1
-1
simulators_test.dart
packages/flutter_tools/test/ios/simulators_test.dart
+1
-1
flutter_command_runner_test.dart
...lutter_tools/test/runner/flutter_command_runner_test.dart
+2
-2
flutter_command_test.dart
packages/flutter_tools/test/runner/flutter_command_test.dart
+1
-1
version_test.dart
packages/flutter_tools/test/version_test.dart
+1
-1
No files found.
packages/flutter_tools/test/android_device_test.dart
→
packages/flutter_tools/test/android
/android
_device_test.dart
View file @
7c9c5a29
...
...
@@ -5,7 +5,7 @@
import
'package:flutter_tools/src/android/android_device.dart'
;
import
'package:test/test.dart'
;
import
'src/context.dart'
;
import
'
../
src/context.dart'
;
void
main
(
)
{
group
(
'android_device'
,
()
{
...
...
packages/flutter_tools/test/android_sdk_test.dart
→
packages/flutter_tools/test/android
/android
_sdk_test.dart
View file @
7c9c5a29
...
...
@@ -7,7 +7,7 @@ import 'package:flutter_tools/src/base/file_system.dart';
import
'package:flutter_tools/src/base/version.dart'
;
import
'package:test/test.dart'
;
import
'src/context.dart'
;
import
'
../
src/context.dart'
;
void
main
(
)
{
group
(
'android_sdk AndroidSdk'
,
()
{
...
...
packages/flutter_tools/test/
src/
base/common_test.dart
→
packages/flutter_tools/test/base/common_test.dart
View file @
7c9c5a29
...
...
@@ -5,7 +5,7 @@
import
'package:test/test.dart'
;
import
'package:flutter_tools/src/base/common.dart'
;
import
'../common.dart'
;
import
'../
src/
common.dart'
;
void
main
(
)
{
group
(
'throwToolExit'
,
()
{
...
...
packages/flutter_tools/test/context_test.dart
→
packages/flutter_tools/test/
base/
context_test.dart
View file @
7c9c5a29
File moved
packages/flutter_tools/test/
src/
base/file_system_test.dart
→
packages/flutter_tools/test/base/file_system_test.dart
View file @
7c9c5a29
...
...
@@ -7,8 +7,8 @@ import 'package:flutter_tools/src/base/file_system.dart';
import
'package:platform/platform.dart'
;
import
'package:test/test.dart'
;
import
'../common.dart'
;
import
'../context.dart'
;
import
'../
src/
common.dart'
;
import
'../
src/
context.dart'
;
void
main
(
)
{
group
(
'ensureDirectoryExists'
,
()
{
...
...
packages/flutter_tools/test/
src/
base/io_test.dart
→
packages/flutter_tools/test/base/io_test.dart
View file @
7c9c5a29
...
...
@@ -9,7 +9,7 @@ import 'package:flutter_tools/src/base/io.dart';
import
'package:mockito/mockito.dart'
;
import
'package:test/test.dart'
;
import
'../context.dart'
;
import
'../
src/
context.dart'
;
void
main
(
)
{
group
(
'ProcessSignal'
,
()
{
...
...
packages/flutter_tools/test/
src/
base/logger_test.dart
→
packages/flutter_tools/test/base/logger_test.dart
View file @
7c9c5a29
File moved
packages/flutter_tools/test/logs_test.dart
→
packages/flutter_tools/test/
base/
logs_test.dart
View file @
7c9c5a29
...
...
@@ -6,9 +6,9 @@ import 'package:flutter_tools/src/base/common.dart';
import
'package:flutter_tools/src/commands/logs.dart'
;
import
'package:test/test.dart'
;
import
'src/common.dart'
;
import
'src/context.dart'
;
import
'src/mocks.dart'
;
import
'
../
src/common.dart'
;
import
'
../
src/context.dart'
;
import
'
../
src/mocks.dart'
;
void
main
(
)
{
group
(
'logs'
,
()
{
...
...
packages/flutter_tools/test/
src/
base/os_test.dart
→
packages/flutter_tools/test/base/os_test.dart
View file @
7c9c5a29
...
...
@@ -11,7 +11,7 @@ import 'package:platform/platform.dart';
import
'package:test/test.dart'
;
import
'../context.dart'
;
import
'../
src/
context.dart'
;
const
String
kExecutable
=
'foo'
;
const
String
kPath1
=
'/bar/bin/
$kExecutable
'
;
...
...
packages/flutter_tools/test/os_utils_test.dart
→
packages/flutter_tools/test/
base/
os_utils_test.dart
View file @
7c9c5a29
...
...
@@ -7,7 +7,7 @@ import 'package:flutter_tools/src/base/os.dart';
import
'package:flutter_tools/src/base/platform.dart'
;
import
'package:test/test.dart'
;
import
'src/context.dart'
;
import
'
../
src/context.dart'
;
void
main
(
)
{
group
(
'OperatingSystemUtils'
,
()
{
...
...
packages/flutter_tools/test/
src/
base/process_test.dart
→
packages/flutter_tools/test/base/process_test.dart
View file @
7c9c5a29
File moved
packages/flutter_tools/test/
src/
cache_test.dart
→
packages/flutter_tools/test/cache_test.dart
View file @
7c9c5a29
...
...
@@ -12,7 +12,7 @@ import 'package:platform/platform.dart';
import
'package:flutter_tools/src/cache.dart'
;
import
'context.dart'
;
import
'
src/
context.dart'
;
void
main
(
)
{
group
(
'
$Cache
.checkLockAcquired'
,
()
{
...
...
packages/flutter_tools/test/analyze_continuously_test.dart
→
packages/flutter_tools/test/
commands/
analyze_continuously_test.dart
View file @
7c9c5a29
...
...
@@ -12,7 +12,7 @@ import 'package:flutter_tools/src/dart/sdk.dart';
import
'package:flutter_tools/src/runner/flutter_command_runner.dart'
;
import
'package:test/test.dart'
;
import
'src/context.dart'
;
import
'
../
src/context.dart'
;
void
main
(
)
{
AnalysisServer
server
;
...
...
packages/flutter_tools/test/analyze_duplicate_names_test.dart
→
packages/flutter_tools/test/
commands/
analyze_duplicate_names_test.dart
View file @
7c9c5a29
...
...
@@ -7,9 +7,9 @@ import 'package:flutter_tools/src/base/file_system.dart';
import
'package:flutter_tools/src/commands/analyze.dart'
;
import
'package:test/test.dart'
;
import
'src/common.dart'
;
import
'src/context.dart'
;
import
'src/mocks.dart'
;
import
'
../
src/common.dart'
;
import
'
../
src/context.dart'
;
import
'
../
src/mocks.dart'
;
void
main
(
)
{
Directory
tempDir
;
...
...
packages/flutter_tools/test/analyze_once_test.dart
→
packages/flutter_tools/test/
commands/
analyze_once_test.dart
View file @
7c9c5a29
...
...
@@ -13,8 +13,8 @@ import 'package:flutter_tools/src/commands/create.dart';
import
'package:flutter_tools/src/runner/flutter_command.dart'
;
import
'package:test/test.dart'
;
import
'src/common.dart'
;
import
'src/context.dart'
;
import
'
../
src/common.dart'
;
import
'
../
src/context.dart'
;
void
main
(
)
{
...
...
packages/flutter_tools/test/analyze_test.dart
→
packages/flutter_tools/test/
commands/
analyze_test.dart
View file @
7c9c5a29
...
...
@@ -8,7 +8,7 @@ import 'package:flutter_tools/src/cache.dart';
import
'package:flutter_tools/src/commands/analyze_base.dart'
;
import
'package:test/test.dart'
;
import
'src/context.dart'
;
import
'
../
src/context.dart'
;
const
String
_kFlutterRoot
=
'/data/flutter'
;
...
...
packages/flutter_tools/test/create_test.dart
→
packages/flutter_tools/test/c
ommands/c
reate_test.dart
View file @
7c9c5a29
...
...
@@ -13,8 +13,8 @@ import 'package:flutter_tools/src/commands/create.dart';
import
'package:flutter_tools/src/dart/sdk.dart'
;
import
'package:test/test.dart'
;
import
'src/common.dart'
;
import
'src/context.dart'
;
import
'
../
src/common.dart'
;
import
'
../
src/context.dart'
;
void
main
(
)
{
group
(
'create'
,
()
{
...
...
packages/flutter_tools/test/daemon_test.dart
→
packages/flutter_tools/test/
commands/
daemon_test.dart
View file @
7c9c5a29
...
...
@@ -13,8 +13,8 @@ import 'package:flutter_tools/src/globals.dart';
import
'package:flutter_tools/src/ios/ios_workflow.dart'
;
import
'package:test/test.dart'
;
import
'src/context.dart'
;
import
'src/mocks.dart'
;
import
'
../
src/context.dart'
;
import
'
../
src/mocks.dart'
;
void
main
(
)
{
Daemon
daemon
;
...
...
packages/flutter_tools/test/devices_test.dart
→
packages/flutter_tools/test/
commands/
devices_test.dart
View file @
7c9c5a29
...
...
@@ -13,8 +13,8 @@ import 'package:mockito/mockito.dart';
import
'package:process/process.dart'
;
import
'package:test/test.dart'
;
import
'src/common.dart'
;
import
'src/context.dart'
;
import
'
../
src/common.dart'
;
import
'
../
src/context.dart'
;
void
main
(
)
{
group
(
'devices'
,
()
{
...
...
packages/flutter_tools/test/doctor_test.dart
→
packages/flutter_tools/test/
commands/
doctor_test.dart
View file @
7c9c5a29
...
...
@@ -6,7 +6,7 @@ import 'package:flutter_tools/src/base/file_system.dart';
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:test/test.dart'
;
import
'src/context.dart'
;
import
'
../
src/context.dart'
;
void
main
(
)
{
group
(
'doctor'
,
()
{
...
...
packages/flutter_tools/test/drive_test.dart
→
packages/flutter_tools/test/
commands/
drive_test.dart
View file @
7c9c5a29
...
...
@@ -17,9 +17,9 @@ import 'package:flutter_tools/src/ios/simulators.dart';
import
'package:mockito/mockito.dart'
;
import
'package:test/test.dart'
;
import
'src/common.dart'
;
import
'src/context.dart'
;
import
'src/mocks.dart'
;
import
'
../
src/common.dart'
;
import
'
../
src/context.dart'
;
import
'
../
src/mocks.dart'
;
void
main
(
)
{
group
(
'drive'
,
()
{
...
...
packages/flutter_tools/test/format_test.dart
→
packages/flutter_tools/test/
commands/
format_test.dart
View file @
7c9c5a29
...
...
@@ -8,8 +8,8 @@ import 'package:flutter_tools/src/cache.dart';
import
'package:flutter_tools/src/commands/format.dart'
;
import
'package:test/test.dart'
;
import
'src/common.dart'
;
import
'src/context.dart'
;
import
'
../
src/common.dart'
;
import
'
../
src/context.dart'
;
void
main
(
)
{
group
(
'format'
,
()
{
...
...
packages/flutter_tools/test/install_test.dart
→
packages/flutter_tools/test/
commands/
install_test.dart
View file @
7c9c5a29
...
...
@@ -6,9 +6,9 @@ import 'package:flutter_tools/src/commands/install.dart';
import
'package:mockito/mockito.dart'
;
import
'package:test/test.dart'
;
import
'src/common.dart'
;
import
'src/context.dart'
;
import
'src/mocks.dart'
;
import
'
../
src/common.dart'
;
import
'
../
src/context.dart'
;
import
'
../
src/mocks.dart'
;
void
main
(
)
{
group
(
'install'
,
()
{
...
...
packages/flutter_tools/test/packages_test.dart
→
packages/flutter_tools/test/
commands/
packages_test.dart
View file @
7c9c5a29
...
...
@@ -10,8 +10,8 @@ import 'package:flutter_tools/src/cache.dart';
import
'package:flutter_tools/src/commands/packages.dart'
;
import
'package:test/test.dart'
;
import
'src/common.dart'
;
import
'src/context.dart'
;
import
'
../
src/common.dart'
;
import
'
../
src/context.dart'
;
void
main
(
)
{
group
(
'packages'
,
()
{
...
...
packages/flutter_tools/test/run_test.dart
→
packages/flutter_tools/test/
commands/
run_test.dart
View file @
7c9c5a29
...
...
@@ -6,9 +6,9 @@ import 'package:flutter_tools/src/base/common.dart';
import
'package:flutter_tools/src/commands/run.dart'
;
import
'package:test/test.dart'
;
import
'src/common.dart'
;
import
'src/context.dart'
;
import
'src/mocks.dart'
;
import
'
../
src/common.dart'
;
import
'
../
src/context.dart'
;
import
'
../
src/mocks.dart'
;
void
main
(
)
{
group
(
'run'
,
()
{
...
...
packages/flutter_tools/test/test_test.dart
→
packages/flutter_tools/test/
commands/
test_test.dart
View file @
7c9c5a29
...
...
@@ -11,7 +11,7 @@ import 'package:flutter_tools/src/cache.dart';
import
'package:flutter_tools/src/dart/sdk.dart'
;
import
'package:test/test.dart'
;
import
'src/context.dart'
;
import
'
../
src/context.dart'
;
// This test depends on some files in ///dev/automated_tests/flutter_test/*
...
...
packages/flutter_tools/test/upgrade_test.dart
→
packages/flutter_tools/test/
commands/
upgrade_test.dart
View file @
7c9c5a29
...
...
@@ -8,8 +8,8 @@ import 'package:flutter_tools/src/cache.dart';
import
'package:flutter_tools/src/commands/upgrade.dart'
;
import
'package:test/test.dart'
;
import
'src/common.dart'
;
import
'src/context.dart'
;
import
'
../
src/common.dart'
;
import
'
../
src/context.dart'
;
void
main
(
)
{
group
(
'upgrade'
,
()
{
...
...
packages/flutter_tools/test/
src/
ios/devices_test.dart
→
packages/flutter_tools/test/ios/devices_test.dart
View file @
7c9c5a29
...
...
@@ -13,7 +13,7 @@ import 'package:platform/platform.dart';
import
'package:process/process.dart'
;
import
'package:test/test.dart'
;
import
'../context.dart'
;
import
'../
src/
context.dart'
;
class
MockProcessManager
extends
Mock
implements
ProcessManager
{}
class
MockFile
extends
Mock
implements
File
{}
...
...
packages/flutter_tools/test/
src/
ios/ios_workflow_test.dart
→
packages/flutter_tools/test/ios/ios_workflow_test.dart
View file @
7c9c5a29
...
...
@@ -13,7 +13,7 @@ import 'package:mockito/mockito.dart';
import
'package:process/process.dart'
;
import
'package:test/test.dart'
;
import
'../context.dart'
;
import
'../
src/
context.dart'
;
void
main
(
)
{
group
(
'iOS Workflow validation'
,
()
{
...
...
packages/flutter_tools/test/
src/
ios/simulators_test.dart
→
packages/flutter_tools/test/ios/simulators_test.dart
View file @
7c9c5a29
...
...
@@ -10,7 +10,7 @@ import 'package:platform/platform.dart';
import
'package:process/process.dart'
;
import
'package:test/test.dart'
;
import
'../context.dart'
;
import
'../
src/
context.dart'
;
class
MockXcode
extends
Mock
implements
Xcode
{}
class
MockFile
extends
Mock
implements
File
{}
...
...
packages/flutter_tools/test/
src/
runner/flutter_command_runner_test.dart
→
packages/flutter_tools/test/runner/flutter_command_runner_test.dart
View file @
7c9c5a29
...
...
@@ -6,8 +6,8 @@ import 'package:flutter_tools/src/version.dart';
import
'package:mockito/mockito.dart'
;
import
'package:test/test.dart'
;
import
'../common.dart'
;
import
'../context.dart'
;
import
'../
src/
common.dart'
;
import
'../
src/
context.dart'
;
import
'flutter_command_test.dart'
;
void
main
(
)
{
...
...
packages/flutter_tools/test/
src/
runner/flutter_command_test.dart
→
packages/flutter_tools/test/runner/flutter_command_test.dart
View file @
7c9c5a29
...
...
@@ -12,7 +12,7 @@ import 'package:mockito/mockito.dart';
import
'package:quiver/time.dart'
;
import
'package:test/test.dart'
;
import
'../context.dart'
;
import
'../
src/
context.dart'
;
void
main
(
)
{
...
...
packages/flutter_tools/test/
src/
version_test.dart
→
packages/flutter_tools/test/version_test.dart
View file @
7c9c5a29
...
...
@@ -16,7 +16,7 @@ import 'package:flutter_tools/src/base/logger.dart';
import
'package:flutter_tools/src/cache.dart'
;
import
'package:flutter_tools/src/version.dart'
;
import
'context.dart'
;
import
'
src/
context.dart'
;
const
JsonEncoder
_kPrettyJsonEncoder
=
const
JsonEncoder
.
withIndent
(
' '
);
final
Clock
_testClock
=
new
Clock
.
fixed
(
new
DateTime
(
2015
,
1
,
1
));
...
...
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