forked from firka/flutter
MockPub -> FakePub (#75759)
This commit is contained in:
@@ -14,8 +14,10 @@ import 'package:flutter_tools/src/base/logger.dart';
|
||||
import 'package:flutter_tools/src/base/os.dart';
|
||||
import 'package:flutter_tools/src/cache.dart';
|
||||
import 'package:flutter_tools/src/convert.dart';
|
||||
import 'package:flutter_tools/src/dart/pub.dart';
|
||||
import 'package:flutter_tools/src/device.dart';
|
||||
import 'package:flutter_tools/src/ios/plist_parser.dart';
|
||||
import 'package:test/fake.dart';
|
||||
|
||||
/// A fake implementation of the [DeviceLogReader].
|
||||
class FakeDeviceLogReader extends DeviceLogReader {
|
||||
@@ -427,3 +429,17 @@ class FakeBotDetector implements BotDetector {
|
||||
|
||||
final bool _isRunningOnBot;
|
||||
}
|
||||
|
||||
class FakePub extends Fake implements Pub {
|
||||
@override
|
||||
Future<void> get({
|
||||
PubContext context,
|
||||
String directory,
|
||||
bool skipIfAbsent = false,
|
||||
bool upgrade = false,
|
||||
bool offline = false,
|
||||
bool generateSyntheticPackage = false,
|
||||
String flutterRootOverride,
|
||||
bool checkUpToDate = false,
|
||||
}) async { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user