570ba55e4d4498f7708b8e5eebf1b010317bb169
[platform/framework/web/crosswalk.git] / src / components / autofill / core / common / BUILD.gn
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.
4
5 static_library("common") {
6   sources = [
7     "autofill_constants.cc",
8     "autofill_constants.h",
9     "autofill_data_validation.cc",
10     "autofill_data_validation.h",
11     "autofill_pref_names.cc",
12     "autofill_pref_names.h",
13     "autofill_switches.cc",
14     "autofill_switches.h",
15     "form_data.cc",
16     "form_data.h",
17     "form_data_predictions.cc",
18     "form_data_predictions.h",
19     "form_field_data.cc",
20     "form_field_data.h",
21     "form_field_data_predictions.cc",
22     "form_field_data_predictions.h",
23     "password_autofill_util.cc",
24     "password_autofill_util.h",
25     "password_form.cc",
26     "password_form.h",
27     "password_form_fill_data.cc",
28     "password_form_fill_data.h",
29     "password_generation_util.cc",
30     "password_generation_util.h",
31     "save_password_progress_logger.cc",
32     "save_password_progress_logger.h",
33     "web_element_descriptor.cc",
34     "web_element_descriptor.h",
35   ]
36
37   deps = [
38     "//base",
39     "//ui/base",
40     "//ui/gfx",
41     "//url",
42   ]
43
44   if (is_android) {
45     # deps += [ 'autofill_jni_headers' ]  TODO(GYP)
46   }
47 }
48
49 source_set("unit_tests") {
50   testonly = true
51   sources = [
52     "form_data_unittest.cc",
53     "form_field_data_unittest.cc",
54     "password_form_fill_data_unittest.cc",
55     "save_password_progress_logger_unittest.cc",
56   ]
57
58   deps = [
59     ":common",
60     "//testing/gmock",
61     "//testing/gtest",
62   ]
63 }