summaryrefslogtreecommitdiffstats
path: root/components/autofill/content/renderer/BUILD.gn
blob: de12eaa1ea207b2a4012c91e3a212ee98c643a91 (plain)
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
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

static_library("renderer") {
  sources = [
    "autofill_agent.cc",
    "autofill_agent.h",
    "form_autofill_util.cc",
    "form_autofill_util.h",
    "form_cache.cc",
    "form_cache.h",
    "page_click_listener.h",
    "page_click_tracker.cc",
    "page_click_tracker.h",
    "password_autofill_agent.cc",
    "password_autofill_agent.h",
    "password_form_conversion_utils.cc",
    "password_form_conversion_utils.h",
    "password_generation_agent.cc",
    "password_generation_agent.h",
    "renderer_save_password_progress_logger.cc",
    "renderer_save_password_progress_logger.h",
  ]

  deps = [
    "//base",
    "//base:i18n",
    "//components/autofill/content/common",
    "//components/autofill/core/common",
    "//components/strings",
    "//content/public/common",
    "//content/public/renderer",
    "//google_apis",
    "//ipc",
    "//net",
    "//skia",
    "//third_party/WebKit/public:blink",
    "//third_party/re2",
    "//ui/base",
  ]

  # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
  configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
}

source_set("test_support") {
  testonly = true
  sources = [
    "test_password_autofill_agent.cc",
    "test_password_autofill_agent.h",
    "test_password_generation_agent.cc",
    "test_password_generation_agent.h",
  ]

  public_deps = [
    ":renderer",
    "//base",
  ]
  deps = [
    "//components/autofill/content/renderer",
    "//ipc",
    "//skia",
  ]
}

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

  deps = [
    ":test_support",
    "//components/autofill/content/common",
    "//ipc:test_support",
    "//testing/gtest",
  ]
}