BUILD.gn revision 5f1c94371a64b3196d4be9466099bb892df9b88e
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
5static_library("common") {
6  sources = [
7    # TODO(brettw) why are these "browser" files in the "common" target?
8    "../browser/android/auxiliary_profile_loader_android.cc",
9    "../browser/android/auxiliary_profile_loader_android.h",
10    "../browser/android/auxiliary_profiles_android.cc",
11    "../browser/android/auxiliary_profiles_android.h",
12    "../browser/android/component_jni_registrar.cc",
13    "../browser/android/component_jni_registrar.h",
14    "../browser/android/personal_data_manager_android.cc",
15    "autofill_constants.cc",
16    "autofill_constants.h",
17    "autofill_data_validation.cc",
18    "autofill_data_validation.h",
19    "autofill_pref_names.cc",
20    "autofill_pref_names.h",
21    "autofill_switches.cc",
22    "autofill_switches.h",
23    "form_data.cc",
24    "form_data.h",
25    "form_data_predictions.cc",
26    "form_data_predictions.h",
27    "form_field_data.cc",
28    "form_field_data.h",
29    "form_field_data_predictions.cc",
30    "form_field_data_predictions.h",
31    "password_autofill_util.cc",
32    "password_autofill_util.h",
33    "password_form.cc",
34    "password_form.h",
35    "password_form_fill_data.cc",
36    "password_form_fill_data.h",
37    "password_generation_util.cc",
38    "password_generation_util.h",
39    "save_password_progress_logger.cc",
40    "save_password_progress_logger.h",
41    "web_element_descriptor.cc",
42    "web_element_descriptor.h",
43  ]
44
45  deps = [
46    "//base",
47    "//ui/base",
48    "//ui/gfx",
49    "//url",
50  ]
51
52  if (is_android) {
53    # deps += [ 'autofill_jni_headers' ]  TODO(GYP)
54  }
55}
56
57source_set("unit_tests") {
58  sources = [
59    "form_data_unittest.cc",
60    "form_field_data_unittest.cc",
61    "password_form_fill_data_unittest.cc",
62    "save_password_progress_logger_unittest.cc",
63  ]
64
65  deps = [
66    ":common",
67    "//testing/gmock",
68    "//testing/gtest",
69  ]
70}
71