chromium/ash/webui/color_internals/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/config/chromeos/ui_mode.gni")
import("//chrome/test/base/ash/js2gtest.gni")
import("//third_party/closure_compiler/compile_js.gni")
import("//ui/webui/resources/tools/generate_grd.gni")

assert(is_chromeos_ash, "Color Internals is ash-chrome only")

static_library("color_internals") {
  sources = [
    "color_internals_ui.cc",
    "color_internals_ui.h",
    "url_constants.cc",
    "url_constants.h",
    "wallpaper_colors_handler_impl.cc",
    "wallpaper_colors_handler_impl.h",
  ]

  deps = [
    "//ash/webui/color_internals/mojom",
    "//ash/webui/color_internals/resources:resources",
    "//content/public/browser",
    "//ui/webui",
  ]
}

js2gtest("browser_tests_js") {
  test_type = "mojo_webui"

  sources = [ "test/color_internals_browsertest.js" ]

  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
}