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

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

Issue 1693813003: Revert of [Testing] Run libaddressinput_unittests on bots (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 template("unittests") { 189 test("libaddressinput_unittests") {
190 test(target_name) { 190 sources =
191 sources = 191 rebase_path(gypi_values.libaddressinput_test_files, ".", "src/cpp")
192 rebase_path(gypi_values.libaddressinput_test_files, ".", "src/cpp") 192 sources += [
193 sources += [ 193 "chromium/addressinput_util_unittest.cc",
194 "chromium/addressinput_util_unittest.cc", 194 "chromium/chrome_address_validator_unittest.cc",
195 "chromium/chrome_address_validator_unittest.cc", 195 "chromium/chrome_metadata_source_unittest.cc",
196 "chromium/chrome_metadata_source_unittest.cc", 196 "chromium/chrome_storage_impl_unittest.cc",
197 "chromium/chrome_storage_impl_unittest.cc", 197 "chromium/fallback_data_store_unittest.cc",
198 "chromium/fallback_data_store_unittest.cc", 198 "chromium/storage_test_runner.cc",
199 "chromium/storage_test_runner.cc", 199 "chromium/string_compare_unittest.cc",
200 "chromium/string_compare_unittest.cc", 200 "chromium/trie_unittest.cc",
201 "chromium/trie_unittest.cc", 201 ]
202 ]
203 data = [
204 "src/testdata/",
205 ]
206 202
207 configs -= [ "//build/config/compiler:chromium_code" ] 203 configs -= [ "//build/config/compiler:chromium_code" ]
208 configs += [ "//build/config/compiler:no_chromium_code" ] 204 configs += [ "//build/config/compiler:no_chromium_code" ]
209 205
210 defines = invoker.defines 206 defines = [ "TEST_DATA_DIR=\"third_party/libaddressinput/src/testdata\"" ]
211 207
212 include_dirs = [ "src/cpp/src" ] 208 include_dirs = [ "src/cpp/src" ]
213 209
214 deps = [ 210 deps = [
215 ":libaddressinput", 211 ":libaddressinput",
216 ":strings", 212 ":strings",
217 "//base/test:run_all_unittests", 213 "//base/test:run_all_unittests",
218 "//components/prefs", 214 "//components/prefs",
219 "//net:test_support", 215 "//net:test_support",
220 "//testing/gtest", 216 "//testing/gtest",
221 ] 217 ]
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\"" ]
235 } 218 }
236 } 219 }
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