Update To 11.40.268.0
[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_form.cc",
24     "password_form.h",
25     "password_form_fill_data.cc",
26     "password_form_fill_data.h",
27     "password_generation_util.cc",
28     "password_generation_util.h",
29     "save_password_progress_logger.cc",
30     "save_password_progress_logger.h",
31     "web_element_descriptor.cc",
32     "web_element_descriptor.h",
33   ]
34
35   deps = [
36     "//base",
37     "//ui/base",
38     "//ui/gfx",
39     "//url",
40   ]
41
42   if (is_android) {
43     # deps += [ 'autofill_jni_headers' ]  TODO(GYP)
44   }
45 }
46
47 source_set("unit_tests") {
48   testonly = true
49   sources = [
50     "form_data_unittest.cc",
51     "form_field_data_unittest.cc",
52     "password_form_fill_data_unittest.cc",
53     "save_password_progress_logger_unittest.cc",
54   ]
55
56   deps = [
57     ":common",
58     "//testing/gmock",
59     "//testing/gtest",
60   ]
61 }