[libaddressinput] Make build system pass gn check

There were some missing headers that gn check found in
third_party/ced instead (string_util.h is a common name) and
then complained that libaddressinput can't include files from
third_party/ced. This adds those headers and some more.

It doesn't add the public headers since those have no natural
position in the dependency tree (used externally, and by util).

Bug: 898837
Change-Id: Iec0d622c0da861d149f86267eebafa63221d3906
Reviewed-on: https://chromium-review.googlesource.com/c/1299000
Reviewed-by: Mathieu Perreault <mathp@chromium.org>
Commit-Queue: Daniel Bratell <bratell@opera.com>
Cr-Commit-Position: refs/heads/master@{#602712}
diff --git a/third_party/libaddressinput/BUILD.gn b/third_party/libaddressinput/BUILD.gn
index f540dee..a1de923 100644
--- a/third_party/libaddressinput/BUILD.gn
+++ b/third_party/libaddressinput/BUILD.gn
@@ -43,23 +43,39 @@
 # This target provides basic functionality which is cooked into the build.
 static_library("util") {
   sources = [
-    "chromium/addressinput_util.cc",
     "chromium/json.cc",
     "src/cpp/src/address_data.cc",
     "src/cpp/src/address_field.cc",
     "src/cpp/src/address_field_util.cc",
+    "src/cpp/src/address_field_util.h",
     "src/cpp/src/address_formatter.cc",
     "src/cpp/src/address_metadata.cc",
     "src/cpp/src/address_ui.cc",
     "src/cpp/src/format_element.cc",
+    "src/cpp/src/format_element.h",
+    "src/cpp/src/grit.h",
     "src/cpp/src/language.cc",
+    "src/cpp/src/language.h",
     "src/cpp/src/localization.cc",
     "src/cpp/src/lookup_key.cc",
+    "src/cpp/src/lookup_key.h",
     "src/cpp/src/region_data_constants.cc",
+    "src/cpp/src/region_data_constants.h",
     "src/cpp/src/rule.cc",
+    "src/cpp/src/rule.h",
     "src/cpp/src/util/cctype_tolower_equal.cc",
+    "src/cpp/src/util/cctype_tolower_equal.h",
+    "src/cpp/src/util/json.h",
+    "src/cpp/src/util/lru_cache_using_std.h",
+    "src/cpp/src/util/md5.cc",
+    "src/cpp/src/util/md5.h",
+    "src/cpp/src/util/re2ptr.h",
+    "src/cpp/src/util/size.h",
+    "src/cpp/src/util/string_compare.h",
     "src/cpp/src/util/string_split.cc",
+    "src/cpp/src/util/string_split.h",
     "src/cpp/src/util/string_util.cc",
+    "src/cpp/src/util/string_util.h",
   ]
 
   configs -= [ "//build/config/compiler:chromium_code" ]
@@ -85,6 +101,8 @@
 # for validation rules.
 static_library("libaddressinput") {
   sources = [
+    "chromium/addressinput_util.cc",
+    "chromium/addressinput_util.h",
     "chromium/chrome_address_validator.cc",
     "chromium/chrome_address_validator.h",
     "chromium/chrome_metadata_source.cc",
@@ -95,6 +113,7 @@
     "chromium/fallback_data_store.h",
     "chromium/input_suggester.cc",
     "chromium/input_suggester.h",
+    "chromium/storage_test_runner.h",
     "chromium/string_compare.cc",
     "chromium/trie.cc",
     "chromium/trie.h",
@@ -105,16 +124,25 @@
     "src/cpp/src/null_storage.cc",
     "src/cpp/src/ondemand_supplier.cc",
     "src/cpp/src/ondemand_supply_task.cc",
+    "src/cpp/src/ondemand_supply_task.h",
     "src/cpp/src/post_box_matchers.cc",
+    "src/cpp/src/post_box_matchers.h",
     "src/cpp/src/preload_supplier.cc",
     "src/cpp/src/region_data.cc",
     "src/cpp/src/region_data_builder.cc",
     "src/cpp/src/retriever.cc",
+    "src/cpp/src/retriever.h",
     "src/cpp/src/rule_retriever.cc",
-    "src/cpp/src/util/md5.cc",
+    "src/cpp/src/rule_retriever.h",
     "src/cpp/src/validating_storage.cc",
+    "src/cpp/src/validating_storage.h",
     "src/cpp/src/validating_util.cc",
+    "src/cpp/src/validating_util.h",
     "src/cpp/src/validation_task.cc",
+    "src/cpp/src/validation_task.h",
+    "src/cpp/test/fake_storage.h",
+    "src/cpp/test/mock_source.h",
+    "src/cpp/test/testdata_source.h",
   ]
 
   configs -= [ "//build/config/compiler:chromium_code" ]
@@ -242,6 +270,7 @@
     ":libaddressinput",
     ":strings",
     ":test_support",
+    ":util",
     "//base/test:run_all_unittests",
     "//components/prefs",
     "//mojo/core/embedder",