1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65

ash / webui / scanning / BUILD.gn [blame]

# Copyright 2020 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("//testing/test.gni")

assert(is_chromeos_ash, "Scanning App is ash-chrome only")

static_library("scanning") {
  sources = [
    "scanning_app_delegate.h",
    "scanning_handler.cc",
    "scanning_handler.h",
    "scanning_metrics_handler.cc",
    "scanning_metrics_handler.h",
    "scanning_ui.cc",
    "scanning_ui.h",
    "scanning_uma.cc",
    "scanning_uma.h",
  ]

  public_deps = [ ":url_constants" ]

  deps = [
    "//ash/constants",
    "//ash/webui/common:chrome_os_webui_config",
    "//ash/webui/common:trusted_types_util",
    "//ash/webui/common/backend:backend",
    "//ash/webui/common/mojom",
    "//ash/webui/scanning/mojom",
    "//ash/webui/scanning/resources:resources",
    "//chromeos/strings/",
    "//content/public/browser",
    "//ui/base",
    "//ui/gfx",
    "//ui/shell_dialogs",
    "//ui/webui",
    "//ui/webui/resources",
  ]
}

# Url constants pulled out to enable depending on production url constants in
# browser tests.
source_set("url_constants") {
  sources = [
    "url_constants.cc",
    "url_constants.h",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "scanning_handler_unittest.cc" ]

  deps = [
    ":scanning",
    "//ash/constants",
    "//base",
    "//content/test:test_support",
    "//testing/gtest",
    "//ui/shell_dialogs",
  ]
}