mirror of
https://github.com/flutter/flutter
synced 2024-11-05 18:37:51 +00:00
32 lines
976 B
Dart
32 lines
976 B
Dart
// 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:io';
|
|
|
|
import 'package:flutter_devicelab/framework/devices.dart';
|
|
import 'package:flutter_devicelab/framework/framework.dart';
|
|
import 'package:flutter_devicelab/framework/utils.dart';
|
|
import 'package:flutter_devicelab/tasks/new_gallery.dart';
|
|
import 'package:path/path.dart' as path;
|
|
|
|
Future<void> main() async {
|
|
deviceOperatingSystem = DeviceOperatingSystem.android;
|
|
|
|
final Directory galleryParentDir =
|
|
Directory.systemTemp.createTempSync('flutter_new_gallery_test.');
|
|
final Directory galleryDir =
|
|
Directory(path.join(galleryParentDir.path, 'gallery'));
|
|
|
|
try {
|
|
await task(
|
|
NewGalleryPerfTest(
|
|
galleryDir,
|
|
timelineFileName: 'transitions-crane',
|
|
dartDefine: 'onlyCrane=true',
|
|
).run,
|
|
);
|
|
} finally {
|
|
rmTree(galleryParentDir);
|
|
}
|
|
}
|