Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("//build/config/locales.gni") | 6 import("//build/config/locales.gni") |
| 7 import("//tools/grit/grit_rule.gni") | 7 import("//tools/grit/grit_rule.gni") |
| 8 | 8 |
| 9 config("no-newline-eof-warning") { | 9 config("no-newline-eof-warning") { |
| 10 if (is_clang) { | 10 if (is_clang) { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 | 70 |
| 71 deps = [ | 71 deps = [ |
| 72 ":strings", | 72 ":strings", |
| 73 "//base", | 73 "//base", |
| 74 "//base:i18n", | 74 "//base:i18n", |
| 75 "//third_party/icu", | 75 "//third_party/icu", |
| 76 "//third_party/re2", | 76 "//third_party/re2", |
| 77 ] | 77 ] |
| 78 } | 78 } |
| 79 | 79 |
| 80 if (!is_android || use_aura) { | 80 # This target provides more complicated functionality like pinging servers |
| 81 # This target provides more complicated functionality like pinging servers | 81 # for validation rules. |
| 82 # for validation rules. | 82 static_library("libaddressinput") { |
| 83 static_library("libaddressinput") { | 83 sources = [ |
| 84 sources = [ | 84 "chromium/chrome_address_validator.cc", |
| 85 "chromium/chrome_address_validator.cc", | 85 "chromium/chrome_metadata_source.cc", |
| 86 "chromium/chrome_metadata_source.cc", | 86 "chromium/chrome_storage_impl.cc", |
| 87 "chromium/chrome_storage_impl.cc", | 87 "chromium/fallback_data_store.cc", |
| 88 "chromium/fallback_data_store.cc", | 88 "chromium/input_suggester.cc", |
| 89 "chromium/input_suggester.cc", | 89 "chromium/string_compare.cc", |
| 90 "chromium/string_compare.cc", | 90 "chromium/trie.cc", |
| 91 "chromium/trie.cc", | 91 "src/cpp/src/address_input_helper.cc", |
| 92 "src/cpp/src/address_input_helper.cc", | 92 "src/cpp/src/address_normalizer.cc", |
| 93 "src/cpp/src/address_normalizer.cc", | 93 "src/cpp/src/address_problem.cc", |
| 94 "src/cpp/src/address_problem.cc", | 94 "src/cpp/src/address_validator.cc", |
| 95 "src/cpp/src/address_validator.cc", | 95 "src/cpp/src/null_storage.cc", |
| 96 "src/cpp/src/null_storage.cc", | 96 "src/cpp/src/ondemand_supplier.cc", |
| 97 "src/cpp/src/ondemand_supplier.cc", | 97 "src/cpp/src/ondemand_supply_task.cc", |
| 98 "src/cpp/src/ondemand_supply_task.cc", | 98 "src/cpp/src/post_box_matchers.cc", |
| 99 "src/cpp/src/post_box_matchers.cc", | 99 "src/cpp/src/preload_supplier.cc", |
| 100 "src/cpp/src/preload_supplier.cc", | 100 "src/cpp/src/region_data.cc", |
| 101 "src/cpp/src/region_data.cc", | 101 "src/cpp/src/region_data_builder.cc", |
| 102 "src/cpp/src/region_data_builder.cc", | 102 "src/cpp/src/retriever.cc", |
| 103 "src/cpp/src/retriever.cc", | 103 "src/cpp/src/rule_retriever.cc", |
| 104 "src/cpp/src/rule_retriever.cc", | 104 "src/cpp/src/util/md5.cc", |
| 105 "src/cpp/src/util/md5.cc", | 105 "src/cpp/src/validating_storage.cc", |
| 106 "src/cpp/src/validating_storage.cc", | 106 "src/cpp/src/validating_util.cc", |
| 107 "src/cpp/src/validating_util.cc", | 107 "src/cpp/src/validation_task.cc", |
| 108 "src/cpp/src/validation_task.cc", | 108 ] |
| 109 ] | |
| 110 | 109 |
| 111 configs -= [ "//build/config/compiler:chromium_code" ] | 110 configs -= [ "//build/config/compiler:chromium_code" ] |
| 112 configs += [ "//build/config/compiler:no_chromium_code" ] | 111 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 113 | 112 |
| 114 public_configs = [ ":libaddressinput_config" ] | 113 public_configs = [ ":libaddressinput_config" ] |
| 115 | 114 |
| 116 deps = [ | 115 deps = [ |
| 117 ":strings", | 116 ":strings", |
| 118 ":util", | 117 ":util", |
| 119 "//base", | 118 "//base", |
| 120 "//base:i18n", | 119 "//base:i18n", |
| 121 "//components/prefs", | 120 "//components/prefs", |
| 122 "//net", | 121 "//net", |
| 123 "//third_party/icu", | 122 "//third_party/icu", |
| 124 "//third_party/re2", | 123 "//third_party/re2", |
| 125 ] | 124 ] |
| 125 } | |
| 126 | |
| 127 test("libaddressinput_unittests") { | |
| 128 sources = [ | |
| 129 "chromium/addressinput_util_unittest.cc", | |
| 130 "chromium/chrome_address_validator_unittest.cc", | |
| 131 "chromium/chrome_metadata_source_unittest.cc", | |
| 132 "chromium/chrome_storage_impl_unittest.cc", | |
| 133 "chromium/fallback_data_store_unittest.cc", | |
| 134 "chromium/storage_test_runner.cc", | |
| 135 "chromium/string_compare_unittest.cc", | |
| 136 "chromium/trie_unittest.cc", | |
| 137 "src/cpp/test/address_data_test.cc", | |
| 138 "src/cpp/test/address_field_test.cc", | |
| 139 "src/cpp/test/address_field_util_test.cc", | |
| 140 "src/cpp/test/address_formatter_test.cc", | |
| 141 "src/cpp/test/address_input_helper_test.cc", | |
| 142 "src/cpp/test/address_metadata_test.cc", | |
| 143 "src/cpp/test/address_normalizer_test.cc", | |
| 144 "src/cpp/test/address_problem_test.cc", | |
| 145 "src/cpp/test/address_ui_test.cc", | |
| 146 "src/cpp/test/address_validator_test.cc", | |
| 147 "src/cpp/test/fake_storage.cc", | |
| 148 "src/cpp/test/fake_storage_test.cc", | |
| 149 "src/cpp/test/format_element_test.cc", | |
| 150 "src/cpp/test/language_test.cc", | |
| 151 "src/cpp/test/localization_test.cc", | |
| 152 "src/cpp/test/lookup_key_test.cc", | |
| 153 "src/cpp/test/mock_source.cc", | |
| 154 "src/cpp/test/null_storage_test.cc", | |
| 155 "src/cpp/test/ondemand_supply_task_test.cc", | |
| 156 "src/cpp/test/post_box_matchers_test.cc", | |
| 157 "src/cpp/test/preload_supplier_test.cc", | |
| 158 "src/cpp/test/region_data_builder_test.cc", | |
| 159 "src/cpp/test/region_data_constants_test.cc", | |
| 160 "src/cpp/test/region_data_test.cc", | |
| 161 "src/cpp/test/retriever_test.cc", | |
| 162 "src/cpp/test/rule_retriever_test.cc", | |
| 163 "src/cpp/test/rule_test.cc", | |
| 164 "src/cpp/test/supplier_test.cc", | |
| 165 "src/cpp/test/testdata_source.cc", | |
| 166 "src/cpp/test/testdata_source_test.cc", | |
| 167 "src/cpp/test/util/json_test.cc", | |
| 168 "src/cpp/test/util/md5_unittest.cc", | |
| 169 "src/cpp/test/util/scoped_ptr_unittest.cc", | |
| 170 "src/cpp/test/util/string_compare_test.cc", | |
| 171 "src/cpp/test/util/string_split_unittest.cc", | |
| 172 "src/cpp/test/util/string_util_test.cc", | |
| 173 "src/cpp/test/validating_storage_test.cc", | |
| 174 "src/cpp/test/validating_util_test.cc", | |
| 175 "src/cpp/test/validation_task_test.cc", | |
| 176 ] | |
| 177 | |
| 178 if (is_ios) { | |
| 179 # TODO(rouslan): This tests uses ASSERT_DEATH which is not supported on | |
| 180 # iOS. Re-enable once http://crbug.com/595645 is fixed. | |
| 181 sources -= [ "src/cpp/test/address_data_test.cc" ] | |
| 126 } | 182 } |
| 127 | 183 |
| 128 test("libaddressinput_unittests") { | 184 configs -= [ "//build/config/compiler:chromium_code" ] |
| 129 sources = [ | 185 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 130 "chromium/addressinput_util_unittest.cc", | |
| 131 "chromium/chrome_address_validator_unittest.cc", | |
| 132 "chromium/chrome_metadata_source_unittest.cc", | |
| 133 "chromium/chrome_storage_impl_unittest.cc", | |
| 134 "chromium/fallback_data_store_unittest.cc", | |
| 135 "chromium/storage_test_runner.cc", | |
| 136 "chromium/string_compare_unittest.cc", | |
| 137 "chromium/trie_unittest.cc", | |
| 138 "src/cpp/test/address_data_test.cc", | |
| 139 "src/cpp/test/address_field_test.cc", | |
| 140 "src/cpp/test/address_field_util_test.cc", | |
| 141 "src/cpp/test/address_formatter_test.cc", | |
| 142 "src/cpp/test/address_input_helper_test.cc", | |
| 143 "src/cpp/test/address_metadata_test.cc", | |
| 144 "src/cpp/test/address_normalizer_test.cc", | |
| 145 "src/cpp/test/address_problem_test.cc", | |
| 146 "src/cpp/test/address_ui_test.cc", | |
| 147 "src/cpp/test/address_validator_test.cc", | |
| 148 "src/cpp/test/fake_storage.cc", | |
| 149 "src/cpp/test/fake_storage_test.cc", | |
| 150 "src/cpp/test/format_element_test.cc", | |
| 151 "src/cpp/test/language_test.cc", | |
| 152 "src/cpp/test/localization_test.cc", | |
| 153 "src/cpp/test/lookup_key_test.cc", | |
| 154 "src/cpp/test/mock_source.cc", | |
| 155 "src/cpp/test/null_storage_test.cc", | |
| 156 "src/cpp/test/ondemand_supply_task_test.cc", | |
| 157 "src/cpp/test/post_box_matchers_test.cc", | |
| 158 "src/cpp/test/preload_supplier_test.cc", | |
| 159 "src/cpp/test/region_data_builder_test.cc", | |
| 160 "src/cpp/test/region_data_constants_test.cc", | |
| 161 "src/cpp/test/region_data_test.cc", | |
| 162 "src/cpp/test/retriever_test.cc", | |
| 163 "src/cpp/test/rule_retriever_test.cc", | |
| 164 "src/cpp/test/rule_test.cc", | |
| 165 "src/cpp/test/supplier_test.cc", | |
| 166 "src/cpp/test/testdata_source.cc", | |
| 167 "src/cpp/test/testdata_source_test.cc", | |
| 168 "src/cpp/test/util/json_test.cc", | |
| 169 "src/cpp/test/util/md5_unittest.cc", | |
| 170 "src/cpp/test/util/scoped_ptr_unittest.cc", | |
| 171 "src/cpp/test/util/string_compare_test.cc", | |
| 172 "src/cpp/test/util/string_split_unittest.cc", | |
| 173 "src/cpp/test/util/string_util_test.cc", | |
| 174 "src/cpp/test/validating_storage_test.cc", | |
| 175 "src/cpp/test/validating_util_test.cc", | |
| 176 "src/cpp/test/validation_task_test.cc", | |
| 177 ] | |
| 178 | 186 |
| 179 if (is_ios) { | 187 defines = [ "TEST_DATA_DIR=\"third_party/libaddressinput/src/testdata\"" ] |
|
please use gerrit instead
2016/09/16 22:30:42
Tests on bots run in such a way that you need to m
sebsg
2016/09/22 19:50:40
Done.
| |
| 180 # TODO(rouslan): This tests uses ASSERT_DEATH which is not supported on | |
| 181 # iOS. Re-enable once http://crbug.com/595645 is fixed. | |
| 182 sources -= [ "src/cpp/test/address_data_test.cc" ] | |
| 183 } | |
| 184 | 188 |
| 185 configs -= [ "//build/config/compiler:chromium_code" ] | 189 include_dirs = [ "src/cpp/src" ] |
| 186 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 187 | 190 |
| 188 defines = [ "TEST_DATA_DIR=\"third_party/libaddressinput/src/testdata\"" ] | 191 deps = [ |
| 189 | 192 ":libaddressinput", |
| 190 include_dirs = [ "src/cpp/src" ] | 193 ":strings", |
| 191 | 194 "//base/test:run_all_unittests", |
| 192 deps = [ | 195 "//components/prefs", |
| 193 ":libaddressinput", | 196 "//net:test_support", |
| 194 ":strings", | 197 "//testing/gtest", |
| 195 "//base/test:run_all_unittests", | 198 ] |
| 196 "//components/prefs", | |
| 197 "//net:test_support", | |
| 198 "//testing/gtest", | |
| 199 ] | |
| 200 } | |
| 201 } | 199 } |
| OLD | NEW |