2019-11-27 23:04:02 +00:00
|
|
|
// Copyright 2014 The Flutter Authors. All rights reserved.
|
2016-09-14 20:22:53 +00:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
import 'package:flutter_devicelab/framework/framework.dart';
|
2020-10-07 23:37:09 +00:00
|
|
|
import 'package:flutter_devicelab/framework/task_result.dart';
|
2016-09-14 20:22:53 +00:00
|
|
|
|
|
|
|
/// Smoke test of a successful task.
|
2018-10-04 16:44:23 +00:00
|
|
|
Future<void> main() async {
|
2016-09-14 20:22:53 +00:00
|
|
|
await task(() async {
|
2020-04-16 21:36:42 +00:00
|
|
|
return TaskResult.success(<String, dynamic>{
|
|
|
|
'metric1': 42,
|
|
|
|
'metric2': 123,
|
|
|
|
'not_a_metric': 'something',
|
|
|
|
}, benchmarkScoreKeys: <String>[
|
|
|
|
'metric1',
|
|
|
|
'metric2',
|
|
|
|
]);
|
2016-09-14 20:22:53 +00:00
|
|
|
});
|
|
|
|
}
|