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
ash / webui / scanning / mojom / 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("//mojo/public/tools/bindings/mojom.gni")
assert(is_chromeos_ash)
mojom("mojom") {
sources = [ "scanning.mojom" ]
webui_module_path = "/ash/webui/scanning"
public_deps = [ "//mojo/public/mojom/base" ]
cpp_typemaps = [
{
types = [
{
mojom = "ash.scanning.mojom.ScanResult"
cpp = "::lorgnette::ScanFailureMode"
},
]
traits_headers = [
"scanning_type_converters.h",
"//chromeos/ash/components/dbus/lorgnette/lorgnette_service.pb.h",
]
traits_sources = [ "scanning_type_converters.cc" ]
traits_public_deps =
[ "//chromeos/ash/components/dbus/lorgnette_manager:lorgnette_proto" ]
},
]
}
source_set("unit_tests") {
testonly = true
sources = [ "scanning_type_converters_unittest.cc" ]
deps = [
":mojom",
"//base",
"//base/test:test_support",
"//chromeos/ash/components/dbus/lorgnette_manager:lorgnette_proto",
"//content/test:test_support",
"//services/data_decoder/public/cpp:test_support",
"//services/device/public/cpp:test_support",
"//testing/gtest",
"//ui/gfx",
"//ui/shell_dialogs",
"//ui/webui",
]
}