Commit 7c9c5a29 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Rearrange tests to more closely match code structure (#10043)

parent af4905ff
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import 'package:flutter_tools/src/android/android_device.dart'; import 'package:flutter_tools/src/android/android_device.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/context.dart'; import '../src/context.dart';
void main() { void main() {
group('android_device', () { group('android_device', () {
......
...@@ -7,7 +7,7 @@ import 'package:flutter_tools/src/base/file_system.dart'; ...@@ -7,7 +7,7 @@ import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/version.dart'; import 'package:flutter_tools/src/base/version.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/context.dart'; import '../src/context.dart';
void main() { void main() {
group('android_sdk AndroidSdk', () { group('android_sdk AndroidSdk', () {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:flutter_tools/src/base/common.dart'; import 'package:flutter_tools/src/base/common.dart';
import '../common.dart'; import '../src/common.dart';
void main() { void main() {
group('throwToolExit', () { group('throwToolExit', () {
......
...@@ -7,8 +7,8 @@ import 'package:flutter_tools/src/base/file_system.dart'; ...@@ -7,8 +7,8 @@ import 'package:flutter_tools/src/base/file_system.dart';
import 'package:platform/platform.dart'; import 'package:platform/platform.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import '../common.dart'; import '../src/common.dart';
import '../context.dart'; import '../src/context.dart';
void main() { void main() {
group('ensureDirectoryExists', () { group('ensureDirectoryExists', () {
......
...@@ -9,7 +9,7 @@ import 'package:flutter_tools/src/base/io.dart'; ...@@ -9,7 +9,7 @@ import 'package:flutter_tools/src/base/io.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import '../context.dart'; import '../src/context.dart';
void main() { void main() {
group('ProcessSignal', () { group('ProcessSignal', () {
......
...@@ -6,9 +6,9 @@ import 'package:flutter_tools/src/base/common.dart'; ...@@ -6,9 +6,9 @@ import 'package:flutter_tools/src/base/common.dart';
import 'package:flutter_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/common.dart'; import '../src/common.dart';
import 'src/context.dart'; import '../src/context.dart';
import 'src/mocks.dart'; import '../src/mocks.dart';
void main() { void main() {
group('logs', () { group('logs', () {
......
...@@ -11,7 +11,7 @@ import 'package:platform/platform.dart'; ...@@ -11,7 +11,7 @@ import 'package:platform/platform.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import '../context.dart'; import '../src/context.dart';
const String kExecutable = 'foo'; const String kExecutable = 'foo';
const String kPath1 = '/bar/bin/$kExecutable'; const String kPath1 = '/bar/bin/$kExecutable';
......
...@@ -7,7 +7,7 @@ import 'package:flutter_tools/src/base/os.dart'; ...@@ -7,7 +7,7 @@ import 'package:flutter_tools/src/base/os.dart';
import 'package:flutter_tools/src/base/platform.dart'; import 'package:flutter_tools/src/base/platform.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/context.dart'; import '../src/context.dart';
void main() { void main() {
group('OperatingSystemUtils', () { group('OperatingSystemUtils', () {
......
...@@ -12,7 +12,7 @@ import 'package:platform/platform.dart'; ...@@ -12,7 +12,7 @@ import 'package:platform/platform.dart';
import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/cache.dart';
import 'context.dart'; import 'src/context.dart';
void main() { void main() {
group('$Cache.checkLockAcquired', () { group('$Cache.checkLockAcquired', () {
......
...@@ -12,7 +12,7 @@ import 'package:flutter_tools/src/dart/sdk.dart'; ...@@ -12,7 +12,7 @@ import 'package:flutter_tools/src/dart/sdk.dart';
import 'package:flutter_tools/src/runner/flutter_command_runner.dart'; import 'package:flutter_tools/src/runner/flutter_command_runner.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/context.dart'; import '../src/context.dart';
void main() { void main() {
AnalysisServer server; AnalysisServer server;
......
...@@ -7,9 +7,9 @@ import 'package:flutter_tools/src/base/file_system.dart'; ...@@ -7,9 +7,9 @@ import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/commands/analyze.dart'; import 'package:flutter_tools/src/commands/analyze.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import '../src/common.dart';
import 'src/context.dart'; import '../src/context.dart';
import 'src/mocks.dart'; import '../src/mocks.dart';
void main() { void main() {
Directory tempDir; Directory tempDir;
......
...@@ -13,8 +13,8 @@ import 'package:flutter_tools/src/commands/create.dart'; ...@@ -13,8 +13,8 @@ import 'package:flutter_tools/src/commands/create.dart';
import 'package:flutter_tools/src/runner/flutter_command.dart'; import 'package:flutter_tools/src/runner/flutter_command.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import '../src/common.dart';
import 'src/context.dart'; import '../src/context.dart';
void main() { void main() {
......
...@@ -8,7 +8,7 @@ import 'package:flutter_tools/src/cache.dart'; ...@@ -8,7 +8,7 @@ import 'package:flutter_tools/src/cache.dart';
import 'package:flutter_tools/src/commands/analyze_base.dart'; import 'package:flutter_tools/src/commands/analyze_base.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/context.dart'; import '../src/context.dart';
const String _kFlutterRoot = '/data/flutter'; const String _kFlutterRoot = '/data/flutter';
......
...@@ -13,8 +13,8 @@ import 'package:flutter_tools/src/commands/create.dart'; ...@@ -13,8 +13,8 @@ import 'package:flutter_tools/src/commands/create.dart';
import 'package:flutter_tools/src/dart/sdk.dart'; import 'package:flutter_tools/src/dart/sdk.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import '../src/common.dart';
import 'src/context.dart'; import '../src/context.dart';
void main() { void main() {
group('create', () { group('create', () {
......
...@@ -13,8 +13,8 @@ import 'package:flutter_tools/src/globals.dart'; ...@@ -13,8 +13,8 @@ import 'package:flutter_tools/src/globals.dart';
import 'package:flutter_tools/src/ios/ios_workflow.dart'; import 'package:flutter_tools/src/ios/ios_workflow.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/context.dart'; import '../src/context.dart';
import 'src/mocks.dart'; import '../src/mocks.dart';
void main() { void main() {
Daemon daemon; Daemon daemon;
......
...@@ -13,8 +13,8 @@ import 'package:mockito/mockito.dart'; ...@@ -13,8 +13,8 @@ import 'package:mockito/mockito.dart';
import 'package:process/process.dart'; import 'package:process/process.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import '../src/common.dart';
import 'src/context.dart'; import '../src/context.dart';
void main() { void main() {
group('devices', () { group('devices', () {
......
...@@ -6,7 +6,7 @@ import 'package:flutter_tools/src/base/file_system.dart'; ...@@ -6,7 +6,7 @@ import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/doctor.dart'; import 'package:flutter_tools/src/doctor.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/context.dart'; import '../src/context.dart';
void main() { void main() {
group('doctor', () { group('doctor', () {
......
...@@ -17,9 +17,9 @@ import 'package:flutter_tools/src/ios/simulators.dart'; ...@@ -17,9 +17,9 @@ import 'package:flutter_tools/src/ios/simulators.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import '../src/common.dart';
import 'src/context.dart'; import '../src/context.dart';
import 'src/mocks.dart'; import '../src/mocks.dart';
void main() { void main() {
group('drive', () { group('drive', () {
......
...@@ -8,8 +8,8 @@ import 'package:flutter_tools/src/cache.dart'; ...@@ -8,8 +8,8 @@ import 'package:flutter_tools/src/cache.dart';
import 'package:flutter_tools/src/commands/format.dart'; import 'package:flutter_tools/src/commands/format.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import '../src/common.dart';
import 'src/context.dart'; import '../src/context.dart';
void main() { void main() {
group('format', () { group('format', () {
......
...@@ -6,9 +6,9 @@ import 'package:flutter_tools/src/commands/install.dart'; ...@@ -6,9 +6,9 @@ import 'package:flutter_tools/src/commands/install.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import '../src/common.dart';
import 'src/context.dart'; import '../src/context.dart';
import 'src/mocks.dart'; import '../src/mocks.dart';
void main() { void main() {
group('install', () { group('install', () {
......
...@@ -10,8 +10,8 @@ import 'package:flutter_tools/src/cache.dart'; ...@@ -10,8 +10,8 @@ import 'package:flutter_tools/src/cache.dart';
import 'package:flutter_tools/src/commands/packages.dart'; import 'package:flutter_tools/src/commands/packages.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import '../src/common.dart';
import 'src/context.dart'; import '../src/context.dart';
void main() { void main() {
group('packages', () { group('packages', () {
......
...@@ -6,9 +6,9 @@ import 'package:flutter_tools/src/base/common.dart'; ...@@ -6,9 +6,9 @@ import 'package:flutter_tools/src/base/common.dart';
import 'package:flutter_tools/src/commands/run.dart'; import 'package:flutter_tools/src/commands/run.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import '../src/common.dart';
import 'src/context.dart'; import '../src/context.dart';
import 'src/mocks.dart'; import '../src/mocks.dart';
void main() { void main() {
group('run', () { group('run', () {
......
...@@ -11,7 +11,7 @@ import 'package:flutter_tools/src/cache.dart'; ...@@ -11,7 +11,7 @@ import 'package:flutter_tools/src/cache.dart';
import 'package:flutter_tools/src/dart/sdk.dart'; import 'package:flutter_tools/src/dart/sdk.dart';
import 'package:test/test.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/* // This test depends on some files in ///dev/automated_tests/flutter_test/*
......
...@@ -8,8 +8,8 @@ import 'package:flutter_tools/src/cache.dart'; ...@@ -8,8 +8,8 @@ import 'package:flutter_tools/src/cache.dart';
import 'package:flutter_tools/src/commands/upgrade.dart'; import 'package:flutter_tools/src/commands/upgrade.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import '../src/common.dart';
import 'src/context.dart'; import '../src/context.dart';
void main() { void main() {
group('upgrade', () { group('upgrade', () {
......
...@@ -13,7 +13,7 @@ import 'package:platform/platform.dart'; ...@@ -13,7 +13,7 @@ import 'package:platform/platform.dart';
import 'package:process/process.dart'; import 'package:process/process.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import '../context.dart'; import '../src/context.dart';
class MockProcessManager extends Mock implements ProcessManager {} class MockProcessManager extends Mock implements ProcessManager {}
class MockFile extends Mock implements File {} class MockFile extends Mock implements File {}
......
...@@ -13,7 +13,7 @@ import 'package:mockito/mockito.dart'; ...@@ -13,7 +13,7 @@ import 'package:mockito/mockito.dart';
import 'package:process/process.dart'; import 'package:process/process.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import '../context.dart'; import '../src/context.dart';
void main() { void main() {
group('iOS Workflow validation', () { group('iOS Workflow validation', () {
......
...@@ -10,7 +10,7 @@ import 'package:platform/platform.dart'; ...@@ -10,7 +10,7 @@ import 'package:platform/platform.dart';
import 'package:process/process.dart'; import 'package:process/process.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import '../context.dart'; import '../src/context.dart';
class MockXcode extends Mock implements Xcode {} class MockXcode extends Mock implements Xcode {}
class MockFile extends Mock implements File {} class MockFile extends Mock implements File {}
......
...@@ -6,8 +6,8 @@ import 'package:flutter_tools/src/version.dart'; ...@@ -6,8 +6,8 @@ import 'package:flutter_tools/src/version.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import '../common.dart'; import '../src/common.dart';
import '../context.dart'; import '../src/context.dart';
import 'flutter_command_test.dart'; import 'flutter_command_test.dart';
void main() { void main() {
......
...@@ -12,7 +12,7 @@ import 'package:mockito/mockito.dart'; ...@@ -12,7 +12,7 @@ import 'package:mockito/mockito.dart';
import 'package:quiver/time.dart'; import 'package:quiver/time.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import '../context.dart'; import '../src/context.dart';
void main() { void main() {
......
...@@ -16,7 +16,7 @@ import 'package:flutter_tools/src/base/logger.dart'; ...@@ -16,7 +16,7 @@ import 'package:flutter_tools/src/base/logger.dart';
import 'package:flutter_tools/src/cache.dart'; import 'package:flutter_tools/src/cache.dart';
import 'package:flutter_tools/src/version.dart'; import 'package:flutter_tools/src/version.dart';
import 'context.dart'; import 'src/context.dart';
const JsonEncoder _kPrettyJsonEncoder = const JsonEncoder.withIndent(' '); const JsonEncoder _kPrettyJsonEncoder = const JsonEncoder.withIndent(' ');
final Clock _testClock = new Clock.fixed(new DateTime(2015, 1, 1)); final Clock _testClock = new Clock.fixed(new DateTime(2015, 1, 1));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment