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

Side by Side Diff: sync/sync.gyp

Issue 9691067: Add a new 'run_all_unittests' target in base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « dbus/dbus.gyp ('k') | third_party/cacheinvalidation/cacheinvalidation.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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'targets': [ 9 'targets': [
10 # The core sync library. 10 # The core sync library.
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 # library because the unit test files have to be compiled directly 243 # library because the unit test files have to be compiled directly
244 # into the executable, so we push the target files to the 244 # into the executable, so we push the target files to the
245 # depending executable target via direct_dependent_settings. 245 # depending executable target via direct_dependent_settings.
246 { 246 {
247 'target_name': 'sync_tests', 247 'target_name': 'sync_tests',
248 'type': 'none', 248 'type': 'none',
249 # We only want unit test executables to include this target. 249 # We only want unit test executables to include this target.
250 'suppress_wildcard': 1, 250 'suppress_wildcard': 1,
251 'dependencies': [ 251 'dependencies': [
252 '../base/base.gyp:base', 252 '../base/base.gyp:base',
253 '../base/base.gyp:test_support_base',
Ryan Sleevi 2012/03/16 17:27:30 Is this target really not needed anymore? I'm ass
akalin 2012/03/16 18:53:50 Good point. I audited all the targets and added b
254 '../testing/gmock.gyp:gmock', 253 '../testing/gmock.gyp:gmock',
255 '../testing/gtest.gyp:gtest', 254 '../testing/gtest.gyp:gtest',
256 'sync', 255 'sync',
257 'test_support_sync', 256 'test_support_sync',
258 ], 257 ],
259 'export_dependent_settings': [ 258 'export_dependent_settings': [
260 '../base/base.gyp:base', 259 '../base/base.gyp:base',
261 '../base/base.gyp:test_support_base',
262 '../testing/gmock.gyp:gmock', 260 '../testing/gmock.gyp:gmock',
263 '../testing/gtest.gyp:gtest', 261 '../testing/gtest.gyp:gtest',
264 'sync', 262 'sync',
265 'test_support_sync', 263 'test_support_sync',
266 ], 264 ],
267 'direct_dependent_settings': { 265 'direct_dependent_settings': {
268 'variables': { 'enable_wexit_time_destructors': 1, }, 266 'variables': { 'enable_wexit_time_destructors': 1, },
269 'include_dirs': [ 267 'include_dirs': [
270 '..', 268 '..',
271 ], 269 ],
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 }, 315 },
318 316
319 # The unit test executable for sync tests. Currently this isn't 317 # The unit test executable for sync tests. Currently this isn't
320 # automatically run, as there is already a sync_unit_tests 318 # automatically run, as there is already a sync_unit_tests
321 # executable in chrome.gyp; this is just to make sure that all the 319 # executable in chrome.gyp; this is just to make sure that all the
322 # link-time dependencies for the files in the targets above 320 # link-time dependencies for the files in the targets above
323 # resolve. 321 # resolve.
324 # 322 #
325 # TODO(akalin): Rename this to sync_unit_tests once we've moved 323 # TODO(akalin): Rename this to sync_unit_tests once we've moved
326 # everything from chrome.gyp. 324 # everything from chrome.gyp.
327 #
328 # TODO(akalin): Make base.gyp have a test_main target that
329 # includes run_all_unittests.cc and the possible tcmalloc
330 # dependency and use that everywhere.
331 { 325 {
332 'target_name': 'sync_unit_tests_canary', 326 'target_name': 'sync_unit_tests_canary',
333 'type': 'executable', 327 'type': 'executable',
334 'sources': [
335 '../base/test/run_all_unittests.cc',
336 ],
337 'dependencies': [ 328 'dependencies': [
329 '../base/base.gyp:run_all_unittests',
338 'sync_tests', 330 'sync_tests',
339 ], 331 ],
340 332
341 # TODO(akalin): This is needed because histogram.cc uses 333 # TODO(akalin): This is needed because histogram.cc uses
342 # leak_annotations.h, which pulls this in. Make 'base' 334 # leak_annotations.h, which pulls this in. Make 'base'
343 # propagate this dependency. 335 # propagate this dependency.
344 'conditions': [ 336 'conditions': [
345 ['OS=="linux" and linux_use_tcmalloc==1', { 337 ['OS=="linux" and linux_use_tcmalloc==1', {
346 'dependencies': [ 338 'dependencies': [
347 '../base/allocator/allocator.gyp:allocator', 339 '../base/allocator/allocator.gyp:allocator',
348 ], 340 ],
349 }], 341 }],
350 ], 342 ],
351 }, 343 },
352 ], 344 ],
353 } 345 }
OLDNEW
« no previous file with comments | « dbus/dbus.gyp ('k') | third_party/cacheinvalidation/cacheinvalidation.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698