chromium/chrome/test/data/webui/app_home/BUILD.gn

# Copyright 2022 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")

assert(is_win || is_mac || is_linux)
assert(!is_fuchsia, "Fuchsia shouldn't use anything in //chrome")

build_webui_tests("build") {
  files = [
    "app_list_test.ts",
    "test_app_home_browser_proxy.ts",
  ]

  ts_path_mappings =
      [ "chrome://apps/*|" +
        rebase_path("$root_gen_dir/chrome/browser/resources/app_home/tsc/*",
                    target_gen_dir) ]
  ts_deps = [
    "//chrome/browser/resources/app_home:build_ts",
    "//third_party/lit/v3_0:build_ts",
    "//ui/webui/resources/cr_elements:build_ts",
  ]
  ts_definitions = [ "//tools/typescript/definitions/metrics_private.d.ts" ]
}