Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Unified Diff: third_party/libaddressinput/BUILD.gn

Issue 2708933003: [Payments] Add timeout to the address_normalizer. (Closed)
Patch Set: Nits Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/payments/address_normalizer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libaddressinput/BUILD.gn
diff --git a/third_party/libaddressinput/BUILD.gn b/third_party/libaddressinput/BUILD.gn
index 5eaa8607baddf54f481c3e8261542aac0dc6c7e7..cea22aeca067f524eeddb5e0f52f5fe2832afae9 100644
--- a/third_party/libaddressinput/BUILD.gn
+++ b/third_party/libaddressinput/BUILD.gn
@@ -124,6 +124,27 @@ static_library("libaddressinput") {
]
}
+# This target provides utilities for tests of libaddressinput.
+source_set("test_support") {
+ testonly = true
+ sources = [
+ "src/cpp/test/fake_storage.cc",
+ "src/cpp/test/mock_source.cc",
+ "src/cpp/test/testdata_source.cc",
+ ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+
+ defines = [ "TEST_DATA_DIR=\"src/third_party/libaddressinput/src/testdata\"" ]
+
+ include_dirs = [ "src/cpp/src" ]
+
+ deps = [
+ ":libaddressinput",
+ ]
+}
+
test("libaddressinput_unittests") {
sources = [
"chromium/addressinput_util_unittest.cc",
@@ -144,13 +165,11 @@ test("libaddressinput_unittests") {
"src/cpp/test/address_problem_test.cc",
"src/cpp/test/address_ui_test.cc",
"src/cpp/test/address_validator_test.cc",
- "src/cpp/test/fake_storage.cc",
"src/cpp/test/fake_storage_test.cc",
"src/cpp/test/format_element_test.cc",
"src/cpp/test/language_test.cc",
"src/cpp/test/localization_test.cc",
"src/cpp/test/lookup_key_test.cc",
- "src/cpp/test/mock_source.cc",
"src/cpp/test/null_storage_test.cc",
"src/cpp/test/ondemand_supply_task_test.cc",
"src/cpp/test/post_box_matchers_test.cc",
@@ -162,7 +181,6 @@ test("libaddressinput_unittests") {
"src/cpp/test/rule_retriever_test.cc",
"src/cpp/test/rule_test.cc",
"src/cpp/test/supplier_test.cc",
- "src/cpp/test/testdata_source.cc",
"src/cpp/test/testdata_source_test.cc",
"src/cpp/test/util/json_test.cc",
"src/cpp/test/util/md5_unittest.cc",
@@ -184,13 +202,12 @@ test("libaddressinput_unittests") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
- defines = [ "TEST_DATA_DIR=\"src/third_party/libaddressinput/src/testdata\"" ]
-
include_dirs = [ "src/cpp/src" ]
deps = [
":libaddressinput",
":strings",
+ ":test_support",
"//base/test:run_all_unittests",
"//components/prefs",
"//net:test_support",
« no previous file with comments | « components/payments/address_normalizer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698