blob: df5158b09d5afb2a08b2fd59a33b04d066e9de7a [file] [log] [blame]
// Copyright 2014 The Flutter 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 'dart:async';
import 'dart:io';
import 'package:flutter_devicelab/tasks/perf_tests.dart';
import '../framework/framework.dart';
import '../framework/utils.dart';
class NewGalleryPerfTest extends PerfTest {
NewGalleryPerfTest(this.galleryDir) : super(galleryDir.path, 'test_driver/transitions_perf.dart', 'transitions');
@override
Future<TaskResult> run() async {
// Manually roll the new gallery version for now. If the new gallery repo
// turns out to be updated frequently in the future, we can set up an auto
// roller to update this version.
await getNewGallery('62e633b9e9360ee57dafaaeabbb7fbf85e7642d1', galleryDir);
return await super.run();
}
final Directory galleryDir;
}