| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| import 'package:flutter_tools/src/dart/pub.dart'; |
| class ThrowingPub implements Pub { |
| Future<void> batch(List<String> arguments, { |
| String failureMessage = 'pub failed', |
| throw UnsupportedError('Attempted to inovke pub during test.'); |
| bool skipIfAbsent = false, |
| bool checkLastModified = true, |
| bool skipPubspecYamlCheck = false, |
| throw UnsupportedError('Attempted to inovke pub during test.'); |
| Future<void> interactively(List<String> arguments, {String directory}) { |
| throw UnsupportedError('Attempted to inovke pub during test.'); |