Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / autofill / content / renderer / BUILD.gn
blob3e6888a73e6c308b55954fb4fa3f168290fd1ad8
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 static_library("renderer") {
6   sources = [
7     "autofill_agent.cc",
8     "autofill_agent.h",
9     "form_autofill_util.cc",
10     "form_autofill_util.h",
11     "form_cache.cc",
12     "form_cache.h",
13     "page_click_listener.h",
14     "page_click_tracker.cc",
15     "page_click_tracker.h",
16     "password_autofill_agent.cc",
17     "password_autofill_agent.h",
18     "password_form_conversion_utils.cc",
19     "password_form_conversion_utils.h",
20     "password_generation_agent.cc",
21     "password_generation_agent.h",
22     "renderer_save_password_progress_logger.cc",
23     "renderer_save_password_progress_logger.h",
24   ]
26   deps = [
27     "//base",
28     "//base:i18n",
29     "//components/autofill/content/common",
30     "//components/autofill/core/common",
31     "//components/strings",
32     "//content/public/common",
33     "//content/public/renderer",
34     "//google_apis",
35     "//ipc",
36     "//net",
37     "//skia",
38     "//third_party/icu",
39     "//third_party/WebKit/public:blink",
40     "//ui/base",
41   ]
43   # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
44   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
47 source_set("test_support") {
48   testonly = true
49   sources = [
50     "test_password_autofill_agent.cc",
51     "test_password_autofill_agent.h",
52     "test_password_generation_agent.cc",
53     "test_password_generation_agent.h",
54   ]
56   public_deps = [
57     ":renderer",
58     "//base",
59   ]
60   deps = [
61     "//components/autofill/content/renderer",
62     "//ipc",
63     "//skia",
64   ]
67 source_set("unit_tests") {
68   testonly = true
69   sources = [
70     "renderer_save_password_progress_logger_unittest.cc",
71   ]
73   deps = [
74     ":test_support",
75     "//components/autofill/content/common",
76     "//ipc:test_support",
77     "//testing/gtest",
78   ]