OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 static_library("core") { | 5 static_library("core") { |
6 sources = [ | 6 sources = [ |
7 "address_normalizer.h", | 7 "address_normalizer.h", |
8 "address_normalizer_impl.cc", | 8 "address_normalizer_impl.cc", |
9 "address_normalizer_impl.h", | 9 "address_normalizer_impl.h", |
10 "autofill_payment_instrument.cc", | 10 "autofill_payment_instrument.cc", |
(...skipping 29 matching lines...) Expand all Loading... |
40 "//ui/base", | 40 "//ui/base", |
41 "//url", | 41 "//url", |
42 ] | 42 ] |
43 | 43 |
44 public_deps = [ | 44 public_deps = [ |
45 "//third_party/icu", | 45 "//third_party/icu", |
46 "//third_party/libaddressinput", | 46 "//third_party/libaddressinput", |
47 ] | 47 ] |
48 } | 48 } |
49 | 49 |
| 50 static_library("test_support") { |
| 51 testonly = true |
| 52 sources = [ |
| 53 "test_address_normalizer.cc", |
| 54 "test_address_normalizer.h", |
| 55 "test_payment_request_delegate.cc", |
| 56 "test_payment_request_delegate.h", |
| 57 ] |
| 58 |
| 59 deps = [ |
| 60 ":core", |
| 61 ] |
| 62 } |
| 63 |
50 source_set("unit_tests") { | 64 source_set("unit_tests") { |
51 testonly = true | 65 testonly = true |
52 sources = [ | 66 sources = [ |
53 "address_normalizer_impl_unittest.cc", | 67 "address_normalizer_impl_unittest.cc", |
54 "autofill_payment_instrument_unittest.cc", | 68 "autofill_payment_instrument_unittest.cc", |
55 "basic_card_response_unittest.cc", | 69 "basic_card_response_unittest.cc", |
56 "currency_formatter_unittest.cc", | 70 "currency_formatter_unittest.cc", |
57 "journey_logger_unittest.cc", | 71 "journey_logger_unittest.cc", |
58 "payment_address_unittest.cc", | 72 "payment_address_unittest.cc", |
59 "payment_method_data_unittest.cc", | 73 "payment_method_data_unittest.cc", |
60 "payment_request_data_util_unittest.cc", | 74 "payment_request_data_util_unittest.cc", |
61 "profile_util_unittest.cc", | 75 "profile_util_unittest.cc", |
62 ] | 76 ] |
63 | 77 |
64 deps = [ | 78 deps = [ |
65 ":core", | 79 ":core", |
| 80 ":test_support", |
66 "//base", | 81 "//base", |
67 "//base/test:test_support", | 82 "//base/test:test_support", |
68 "//components/autofill/core/browser", | 83 "//components/autofill/core/browser", |
69 "//components/autofill/core/browser:test_support", | 84 "//components/autofill/core/browser:test_support", |
70 "//components/metrics/proto", | 85 "//components/metrics/proto", |
71 "//components/strings:components_strings_grit", | 86 "//components/strings:components_strings_grit", |
72 "//components/ukm", | 87 "//components/ukm", |
73 "//components/ukm:test_support", | 88 "//components/ukm:test_support", |
74 "//testing/gmock", | 89 "//testing/gmock", |
75 "//testing/gtest", | 90 "//testing/gtest", |
76 "//third_party/libaddressinput:test_support", | 91 "//third_party/libaddressinput:test_support", |
77 "//ui/base", | 92 "//ui/base", |
78 ] | 93 ] |
79 } | 94 } |
OLD | NEW |