| # Copyright 2019 The Fuchsia 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("//build/dart/dart_library.gni") |
| import("//topaz/runtime/dart/flutter_test.gni") |
| |
| dart_library("settings") { |
| package_name = "settings" |
| |
| sources = [ |
| "settings.dart", |
| "src/battery.dart", |
| "src/bluetooth.dart", |
| "src/brightness.dart", |
| "src/datetime.dart", |
| "src/memory.dart", |
| "src/timezone.dart", |
| "src/volume.dart", |
| "src/weather.dart", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.bluetooth.control", |
| "//sdk/fidl/fuchsia.intl", |
| "//sdk/fidl/fuchsia.media", |
| "//sdk/fidl/fuchsia.memory", |
| "//sdk/fidl/fuchsia.power", |
| "//sdk/fidl/fuchsia.settings", |
| "//sdk/fidl/fuchsia.ui.brightness", |
| "//src/experiences/lib/quickui", |
| "//src/experiences/session_shells/ermine/internationalization", |
| "//third_party/dart-pkg/git/flutter/packages/flutter", |
| "//topaz/public/dart/fuchsia_services", |
| ] |
| } |
| |
| flutter_test("ermine_settings_unittests") { |
| sources = [ |
| "battery_test.dart", |
| "bluetooth_test.dart", |
| "brightness_test.dart", |
| "datetime_test.dart", |
| "memory_test.dart", |
| "timezone_test.dart", |
| "volume_test.dart", |
| "weather_test.dart", |
| ] |
| |
| deps = [ |
| ":settings", |
| "//third_party/dart-pkg/git/flutter/packages/flutter_test", |
| "//third_party/dart-pkg/pub/mockito", |
| ] |
| } |