| # Copyright 2018 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("service") { |
| package_name = "lib_setui_service" |
| |
| sources = [ |
| "service.dart", |
| "src/setui_setting_controller.dart", |
| "src/network_controller.dart", |
| "src/intl_controller.dart", |
| "src/connectivity_controller.dart", |
| "src/timezone_controller.dart", |
| "src/intl/intl_settings_util.dart", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.netstack", |
| "//sdk/fidl/fuchsia.setui", |
| "//sdk/fidl/fuchsia.stash", |
| "//sdk/fidl/fuchsia.timezone", |
| "//sdk/fidl/fuchsia.wlan.service", |
| "//topaz/lib/settings:lib.settings", |
| "//topaz/lib/setui/settings/common:common", |
| "//topaz/public/dart/fidl", |
| "//topaz/public/dart/widgets:lib.widgets", |
| "//topaz/public/lib/app/dart", |
| "//zircon/public/fidl/fuchsia-net:fuchsia-net", |
| ] |
| } |
| |
| flutter_test("lib_setui_service_test") { |
| sources = [ |
| "intl/intl_settings_util_test.dart", |
| |
| # STOPSHIP(brycelee): add test back once migration to new api is complete. |
| # "network_controller_test.dart", |
| "intl_controller_test.dart", |
| ] |
| |
| deps = [ |
| ":service", |
| "//third_party/dart-pkg/git/flutter/packages/flutter_test", |
| "//third_party/dart-pkg/pub/mockito", |
| "//third_party/dart-pkg/pub/test", |
| ] |
| } |