File: BUILD.gn

package info (click to toggle)
chromium 139.0.7258.127-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,122,156 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (145 lines) | stat: -rw-r--r-- 3,379 bytes parent folder | download | duplicates (3)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
source_set("browser_binding") {
  visibility = [ "//components/payments/content/*" ]
  public_deps = [
    ":interface",
    ":passkey_browser_binder",
  ]
  if (is_android) {
    deps = [ ":android" ]
  }
}

source_set("interface") {
  sources = [
    "browser_bound_key.h",
    "browser_bound_key_store.h",
  ]
  public_deps = [
    "//base",
    "//device/fido",
  ]
}

source_set("passkey_browser_binder") {
  visibility = [ "//components/payments/content/*" ]
  sources = [
    "passkey_browser_binder.cc",
    "passkey_browser_binder.h",
  ]
  public_deps = [ ":interface" ]
  deps = [
    ":browser_bound_key_metadata",
    "//base",
    "//components/payments/content:utils",
    "//components/payments/core",
    "//components/webdata/common",
  ]
}

source_set("passkey_browser_binder_unittests") {
  testonly = true
  visibility = [ "//components/payments/*" ]
  sources = [ "passkey_browser_binder_unittest.cc" ]
  deps = [
    ":browser_bound_key_metadata",
    ":fake_browser_bound_key_store",
    ":interface",
    ":passkey_browser_binder",
    "//base",
    "//base/test:test_support",
    "//components/payments/content:test_support",
    "//components/payments/core",
    "//content/test:test_support",
    "//device/fido",
    "//testing/gmock",
    "//testing/gtest",
  ]
}

if (is_android) {
  source_set("browser_bound_keys_deleter_factory") {
    sources = [
      "browser_bound_keys_deleter.cc",
      "browser_bound_keys_deleter.h",
      "browser_bound_keys_deleter_factory.cc",
      "browser_bound_keys_deleter_factory.h",
    ]
    public_deps = [
      "//base",  # base/no_destructor.h
      "//components/keyed_service/content",
      "//components/payments/content:utils",
    ]
    deps = [
      ":android",
      ":passkey_browser_binder",
      "//components/keyed_service/content",
      "//components/webauthn/android",
      "//components/webdata_services",
      "//content/public/browser",
    ]
  }

  source_set("android") {
    visibility = [ ":*" ]
    sources = [
      "browser_bound_key_android.cc",
      "browser_bound_key_android.h",
      "browser_bound_key_store_android.cc",
      "browser_bound_key_store_android.h",
    ]
    deps = [
      ":interface",
      "//base",
      "//components/payments/content/android/spc:browser_binding_jni",
      "//device/fido",
      "//third_party/jni_zero",
    ]
  }

  source_set("android_unittests") {
    testonly = true
    sources = [ "browser_bound_key_store_android_unittest.cc" ]
    deps = [
      ":android",
      ":interface",
      "//base",
      "//components/payments/content/android/spc:browser_binding_jni",
      "//testing/gmock",
      "//testing/gtest",
    ]
  }

  source_set("test_support") {
    testonly = true
    sources = [
      "mock_browser_bound_keys_deleter.cc",
      "mock_browser_bound_keys_deleter.h",
    ]
    public_deps = [
      ":browser_bound_keys_deleter_factory",
      "//testing/gmock",
    ]
  }
}

source_set("fake_browser_bound_key_store") {
  testonly = true
  sources = [
    "fake_browser_bound_key.cc",
    "fake_browser_bound_key.h",
    "fake_browser_bound_key_store.cc",
    "fake_browser_bound_key_store.h",
  ]
  deps = [
    ":interface",
    "//base",
    "//device/fido",
  ]
}

source_set("browser_bound_key_metadata") {
  sources = [
    "browser_bound_key_metadata.cc",
    "browser_bound_key_metadata.h",
  ]
}