File: BUILD.gn

package info (click to toggle)
chromium 138.0.7204.183-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 6,080,960 kB
  • sloc: cpp: 34,937,079; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,954; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,811; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (122 lines) | stat: -rw-r--r-- 3,458 bytes parent folder | download | duplicates (6)
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
# Copyright 2019 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//mojo/public/tools/bindings/mojom.gni")

mojom("mojo_types") {
  generate_java = true
  sources = [ "autofill_types.mojom" ]

  public_deps = [
    "//mojo/public/mojom/base",
    "//ui/gfx/geometry/mojom",
    "//url/mojom:url_mojom_gurl",
    "//url/mojom:url_mojom_origin",
  ]

  cpp_typemaps = [
    {
      types = [
        {
          mojom = "autofill.mojom.Section"
          cpp = "::autofill::Section"
        },
        {
          mojom = "autofill.mojom.FormData"
          cpp = "::autofill::FormData"
        },
        {
          mojom = "autofill.mojom.FormDataPredictions"
          cpp = "::autofill::FormDataPredictions"
        },
        {
          mojom = "autofill.mojom.FormFieldData"
          cpp = "::autofill::FormFieldData"
        },
        {
          mojom = "autofill.mojom.FormFieldData_FillData"
          cpp = "::autofill::FormFieldData::FillData"
        },
        {
          mojom = "autofill.mojom.FormFieldDataPredictions"
          cpp = "::autofill::FormFieldDataPredictions"
        },
        {
          mojom = "autofill.mojom.FormsPredictionsMap"
          cpp = "::autofill::FormsPredictionsMap"
        },
        {
          mojom = "autofill.mojom.FormRendererId"
          cpp = "::autofill::FormRendererId"
          copyable_pass_by_value = true
        },
        {
          mojom = "autofill.mojom.FieldRendererId"
          cpp = "::autofill::FieldRendererId"
          copyable_pass_by_value = true
        },
        {
          mojom = "autofill.mojom.ParsingResult"
          cpp = "::autofill::ParsingResult"
        },
        {
          mojom = "autofill.mojom.PasswordAndMetadata"
          cpp = "::autofill::PasswordAndMetadata"
        },
        {
          mojom = "autofill.mojom.PasswordFormFieldPredictionMap"
          cpp = "::autofill::PasswordFormFieldPredictionMap"
        },
        {
          mojom = "autofill.mojom.PasswordFormFillData"
          cpp = "::autofill::PasswordFormFillData"
        },
        {
          mojom = "autofill.mojom.PasswordFormGenerationData"
          cpp = "::autofill::PasswordFormGenerationData"
        },
        {
          mojom = "autofill.mojom.PasswordGenerationUIData"
          cpp = "::autofill::password_generation::PasswordGenerationUIData"
        },
        {
          mojom = "autofill.mojom.PasswordSuggestionRequest"
          cpp = "::autofill::PasswordSuggestionRequest"
        },
      ]
      traits_headers = [ "autofill_types_mojom_traits.h" ]
      traits_sources = [ "autofill_types_mojom_traits.cc" ]
      traits_public_deps = [
        "//base",
        "//base:i18n",
        "//components/autofill/core/common",
        "//third_party/abseil-cpp:absl",
        "//ui/gfx/geometry/mojom:mojom_traits",
      ]
    },
  ]
}

mojom("mojo_test_types") {
  sources = [ "test_autofill_types.mojom" ]

  public_deps = [ ":mojo_types" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "autofill_types_mojom_traits_unittest.cc" ]

  public_deps = [ ":mojo_test_types" ]

  deps = [
    "//base",
    "//base/test:test_support",
    "//components/autofill/core/browser:test_support",
    "//components/password_manager/core/common",
    "//mojo/public/cpp/bindings",
    "//mojo/public/cpp/test_support:test_utils",
    "//testing/gtest",
  ]
}