// Copyright 2024 The Flutter Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd. import 'dart:async'; import 'package:devtools_shared/src/deeplink/deeplink_manager.dart'; class FakeDeeplinkManager extends DeeplinkManager { String? receivedPath; String? receivedBuildVariant; String? receivedConfiguration; String? receivedTarget; late Map responseForGetAndroidBuildVariants; late Map responseForGetAndroidAppLinkSettings; late Map responseForGetIosBuildOptions; late Map responseForGetIosUniversalLinkSettings; @override Future> getAndroidBuildVariants({ required String rootPath, }) async { receivedPath = rootPath; return responseForGetAndroidBuildVariants; } @override Future> getAndroidAppLinkSettings({ required String rootPath, required String buildVariant, }) async { receivedPath = rootPath; receivedBuildVariant = buildVariant; return responseForGetAndroidAppLinkSettings; } @override Future> getIosBuildOptions({ required String rootPath, }) async { receivedPath = rootPath; return responseForGetIosBuildOptions; } @override Future> getIosUniversalLinkSettings({ required String rootPath, required String configuration, required String target, }) async { receivedPath = rootPath; receivedConfiguration = configuration; receivedTarget = target; return responseForGetIosUniversalLinkSettings; } }