• Ian Hickson's avatar
    Increase verbosity on bots during setup and other minor cleanup (#19526) · 35346b49
    Ian Hickson authored
    The verbosity change is to help track down timeouts that currently look like:
    
    ```
    C:\Windows\Temp\flutter sdk>call bin\flutter.bat config --no-analytics
    Checking Dart SDK version...
    Downloading Dart SDK from Flutter engine c5a63d28bf3735569c8187753bc490d8351a8363...
    Unzipping Dart SDK...
    Updating flutter tool...
    ```
    35346b49
scheduler_tester.dart 609 Bytes
// Copyright 2017 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/scheduler.dart';

@Deprecated('scheduler_tester is not compatible with dart:async')
class Future { } // so that people can't import us and dart:async

void tick(Duration duration) {
  // We don't bother running microtasks between these two calls
  // because we don't use Futures in these tests and so don't care.
  SchedulerBinding.instance.handleBeginFrame(duration);
  SchedulerBinding.instance.handleDrawFrame();
}