blob: 9e5725f5c68a91ecf0e0043d934d7f8ac9d8e23e [file] [log] [blame]
# Copyright 2020 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.
from recipe_engine import recipe_test_api
class RepoUtilTestApi(recipe_test_api.RecipeTestApi):
def flutter_environment_data(self, checkout_dir=''):
"""Provides flutter environment data for tests."""
checkout_path = checkout_dir or self.m.path.checkout_dir
dart_bin = checkout_path / 'bin/cache/dart-sdk/bin'
flutter_bin = checkout_path / 'bin'
return self.m.path.exists(dart_bin, flutter_bin)