smoke_test_success.dart 593 Bytes
Newer Older
Ian Hickson's avatar
Ian Hickson committed
1
// Copyright 2014 The Flutter Authors. All rights reserved.
2 3 4 5
// 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';
6
import 'package:flutter_devicelab/framework/task_result.dart';
7 8

/// Smoke test of a successful task.
9
Future<void> main() async {
10
  await task(() async {
11 12 13 14 15 16 17 18
    return TaskResult.success(<String, dynamic>{
      'metric1': 42,
      'metric2': 123,
      'not_a_metric': 'something',
    }, benchmarkScoreKeys: <String>[
      'metric1',
      'metric2',
    ]);
19 20
  });
}