blob: c550c77d63bf8b2777c672a29e06415328ac8fa4 [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 {
this.galleryDir, {
String timelineFileName = 'transitions',
String dartDefine = '',
}) : super(
dartDefine: dartDefine,
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('a208eac6e6e8336ae9820e54c572c099231f1da2', galleryDir);
return await;
final Directory galleryDir;