910e62b5创建于 1月15日历史提交
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

assert(is_chromeos, "Demo Mode App is ChromeOS only")

static_library("demo_mode_app_ui") {
  sources = [
    "demo_mode_app_delegate.h",
    "demo_mode_app_untrusted_ui.cc",
    "demo_mode_app_untrusted_ui.h",
    "demo_mode_untrusted_page_handler.cc",
    "demo_mode_untrusted_page_handler.h",
    "url_constants.cc",
    "url_constants.h",
  ]

  deps = [
    "//ash",
    "//ash/webui/common:chrome_os_webui_config",
    "//ash/webui/demo_mode_app_ui/mojom",
    "//ash/webui/demo_mode_app_ui/resources",
    "//chromeos/ash/components/install_attributes",
    "//chromeos/constants",
    "//content/public/browser",
    "//ui/views",
    "//ui/webui",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "demo_mode_app_untrusted_ui_unittests.cc",
    "demo_mode_untrusted_page_handler_unittest.cc",
  ]
  deps = [
    ":demo_mode_app_ui",
    "//ash:test_support",
    "//ash/webui/demo_mode_app_ui/mojom",
    "//base",
    "//base/test:test_support",
    "//chromeos/ash/components:test_support",
    "//testing/gtest",
    "//url",
  ]
}