blob: f9df5dfdb43895b69614c4c28d0cc4bb7778aada [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
import api
class RepoUtilTestApi(recipe_test_api.RecipeTestApi):
def flutter_environment_data(self):
"""Provides flutter environment data for tests."""
checkout_path = self.m.path['checkout']
dart_bin = checkout_path.join('bin', 'cache', 'dart-sdk', 'bin')
flutter_bin = checkout_path.join('bin')
return self.m.path.exists(dart_bin, flutter_bin)