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

Side by Side Diff: third_party/libaddressinput/BUILD.gn

Issue 1695663005: [Testing] Version 2: Run libaddressinput_unittests on bots Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial Created 4 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 unified diff | Download patch
« no previous file with comments | « testing/buildbot/gn_isolate_map.pyl ('k') | third_party/libaddressinput/libaddressinput.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//tools/grit/grit_rule.gni") 6 import("//tools/grit/grit_rule.gni")
7 7
8 libaddressinput_util_files = [ 8 libaddressinput_util_files = [
9 "src/cpp/src/address_data.cc", 9 "src/cpp/src/address_data.cc",
10 "src/cpp/src/address_field.cc", 10 "src/cpp/src/address_field.cc",
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 deps = [ 179 deps = [
180 ":strings", 180 ":strings",
181 ":util", 181 ":util",
182 "//base", 182 "//base",
183 "//base:i18n", 183 "//base:i18n",
184 "//third_party/icu", 184 "//third_party/icu",
185 "//third_party/re2", 185 "//third_party/re2",
186 ] 186 ]
187 } 187 }
188 188
189 test("libaddressinput_unittests") { 189 template("unittests") {
190 sources = 190 test(target_name) {
191 rebase_path(gypi_values.libaddressinput_test_files, ".", "src/cpp") 191 sources =
192 sources += [ 192 rebase_path(gypi_values.libaddressinput_test_files, ".", "src/cpp")
193 "chromium/addressinput_util_unittest.cc", 193 sources += [
194 "chromium/chrome_address_validator_unittest.cc", 194 "chromium/addressinput_util_unittest.cc",
195 "chromium/chrome_metadata_source_unittest.cc", 195 "chromium/chrome_address_validator_unittest.cc",
196 "chromium/chrome_storage_impl_unittest.cc", 196 "chromium/chrome_metadata_source_unittest.cc",
197 "chromium/fallback_data_store_unittest.cc", 197 "chromium/chrome_storage_impl_unittest.cc",
198 "chromium/storage_test_runner.cc", 198 "chromium/fallback_data_store_unittest.cc",
199 "chromium/string_compare_unittest.cc", 199 "chromium/storage_test_runner.cc",
200 "chromium/trie_unittest.cc", 200 "chromium/string_compare_unittest.cc",
201 ] 201 "chromium/trie_unittest.cc",
202 ]
203 data = [
204 "src/testdata/",
205 ]
202 206
203 configs -= [ "//build/config/compiler:chromium_code" ] 207 configs -= [ "//build/config/compiler:chromium_code" ]
204 configs += [ "//build/config/compiler:no_chromium_code" ] 208 configs += [ "//build/config/compiler:no_chromium_code" ]
205 209
206 defines = [ "TEST_DATA_DIR=\"third_party/libaddressinput/src/testdata\"" ] 210 defines = invoker.defines
207 211
208 include_dirs = [ "src/cpp/src" ] 212 include_dirs = [ "src/cpp/src" ]
209 213
210 deps = [ 214 deps = [
211 ":libaddressinput", 215 ":libaddressinput",
212 ":strings", 216 ":strings",
213 "//base/test:run_all_unittests", 217 "//base/test:run_all_unittests",
214 "//components/prefs", 218 "//components/prefs",
215 "//net:test_support", 219 "//net:test_support",
216 "//testing/gtest", 220 "//testing/gtest",
217 ] 221 ]
222 }
223 }
224
225 # Can be used to run tests locally, from the checkout directory (not src).
226 unittests("libaddressinput_unittests_local") {
227 defines =
228 [ "TEST_DATA_DIR=\"src/third_party/libaddressinput/src/testdata\"" ]
229 }
230
231 # Used only for swarming.
232 unittests("libaddressinput_unittests") {
233 defines = [ "TEST_DATA_DIR=\"" + rebase_path("../..", root_out_dir) +
234 "/third_party/libaddressinput/src/testdata\"" ]
218 } 235 }
219 } 236 }
OLDNEW
« no previous file with comments | « testing/buildbot/gn_isolate_map.pyl ('k') | third_party/libaddressinput/libaddressinput.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698