Reorganise flutter driver implementation sources (#13163)
This patch reorganises flutter_driver's lib/src directory into three subdirectories: * driver: sources transitively imported/exported by flutter_driver.dart, which defines the API used by driver tests executed on the host machine. * extension: sources transitively imported/exported by driver_extension.dart, which defines the API used to instrument a Flutter app running on the target device for use with a driver test. * common: sources common to both driver and extension code. This makes rolling Flutter into repositories that use Bazel (or Bazel-like build systems) significantly more robust, due to the simpler glob patterns involved.
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter/scheduler.dart';
|
||||
import 'package:flutter_driver/src/extension.dart';
|
||||
import 'package:flutter_driver/src/find.dart';
|
||||
import 'package:flutter_driver/src/request_data.dart';
|
||||
import 'package:flutter_driver/src/common/find.dart';
|
||||
import 'package:flutter_driver/src/common/request_data.dart';
|
||||
import 'package:flutter_driver/src/extension/extension.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
import 'dart:convert' show JSON;
|
||||
|
||||
import 'package:file/file.dart';
|
||||
import 'package:flutter_driver/flutter_driver.dart';
|
||||
import 'package:flutter_driver/src/driver/common.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:test/test.dart';
|
||||
import 'package:flutter_driver/src/common.dart';
|
||||
import 'package:flutter_driver/flutter_driver.dart';
|
||||
|
||||
void main() {
|
||||
group('TimelineSummary', () {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:test/test.dart';
|
||||
import 'package:flutter_driver/src/timeline.dart';
|
||||
import 'package:flutter_driver/src/driver/timeline.dart';
|
||||
|
||||
void main() {
|
||||
group('Timeline', () {
|
||||
|
||||
Reference in New Issue
Block a user