# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("../build_webui_tests.gni")

build_webui_tests("build") {
  cc_test_files = [ "flags_browsertest.cc" ]

  files = [
    "app_test.ts",
    "deprecated_test.ts",
    "experiment_test.ts",
    "test_flags_browser_proxy.ts",
    "url_test.ts",
  ]

  ts_path_mappings =
      [ "chrome://flags/*|" +
        rebase_path("$root_gen_dir/components/webui/flags/resources/tsc/*",
                    target_gen_dir) ]

  ts_deps = [
    "//components/webui/flags/resources:build_ts",
    "//ui/webui/resources/cr_elements:build_ts",
    "//ui/webui/resources/js:build_ts",
  ]
}
