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
|
# 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.
source_set("digital_asset_links") {
sources = [
"digital_asset_links_handler.cc",
"digital_asset_links_handler.h",
]
deps = [
"//base",
"//content/public/browser",
"//net",
"//services/data_decoder/public/cpp",
"//services/network/public/cpp",
"//url",
]
if (is_android) {
sources += [
"origin_verifier.cc",
"origin_verifier.h",
]
deps += [ "//components/digital_asset_links/android:jni_headers" ]
}
}
source_set("unit_tests") {
testonly = true
sources = [ "digital_asset_links_handler_unittest.cc" ]
deps = [
":digital_asset_links",
"//base",
"//content/test:test_support",
"//net",
"//services/data_decoder/public/cpp:test_support",
"//services/network:test_support",
"//testing/gtest",
]
}
if (is_android) {
import("//build/config/android/rules.gni")
android_library("java") {
deps = [ "//third_party/androidx:androidx_annotation_annotation_java" ]
srcjar_deps = [ "//components/digital_asset_links:enums_srcjar" ]
}
java_cpp_enum("enums_srcjar") {
sources = [ "digital_asset_links_handler.h" ]
}
}
|