blob: 190e65e7d7c9829d3778cdf4e231035e9358638a [file] [log] [blame]
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:ffigen/src/config_provider/config.dart';
import 'package:ffigen/src/header_parser.dart';
import 'package:ffigen/src/strings.dart' as strings;
import 'package:logging/logging.dart';
import 'package:test/test.dart';
import 'package:yaml/yaml.dart';
import '../test_utils.dart';
void main() {
group('simple_example_test', () {
setUpAll(() {
test('simple', () {
final config = Config.fromYaml(loadYaml('''
${}: NativeLibrary
${strings.description}: Bindings to `headers/example.h`.
${strings.output}: 'generated_bindings.dart'
- 'example/simple/headers/example.h'
''') as YamlMap);
final library = parse(config);
['test', 'debug_generated', 'example_simple.dart'],
['example', 'simple', config.output],