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

Unified Diff: src/compiler/compiler.gyp

Issue 540823002: Refactor common unit test code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/common-operator-unittest.cc ('k') | src/compiler/compiler-test-utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/compiler.gyp
diff --git a/src/compiler/compiler.gyp b/src/compiler/compiler.gyp
index 4713f30df430eb458c31e14e60b7e5854770b8e5..8935c5f2b856cbacbb2ae5b01b45985e5018a95c 100644
--- a/src/compiler/compiler.gyp
+++ b/src/compiler/compiler.gyp
@@ -12,9 +12,7 @@
'target_name': 'compiler-unittests',
'type': 'executable',
'dependencies': [
- '../../testing/gmock.gyp:gmock',
- '../../testing/gtest.gyp:gtest',
- '../../tools/gyp/v8.gyp:v8_libplatform',
+ '../test/test.gyp:run-all-unittests',
],
'include_dirs': [
'../..',
@@ -22,8 +20,7 @@
'sources': [ ### gcmole(all) ###
'change-lowering-unittest.cc',
'common-operator-unittest.cc',
- 'compiler-unittests.cc',
- 'compiler-unittests.h',
+ 'compiler-test-utils.h',
'graph-unittest.cc',
'graph-unittest.h',
'instruction-selector-unittest.cc',
@@ -53,29 +50,6 @@
'x64/instruction-selector-x64-unittest.cc',
],
}],
- ['component=="shared_library"', {
- # compiler-unittests can't be built against a shared library, so we
- # need to depend on the underlying static target in that case.
- 'conditions': [
- ['v8_use_snapshot=="true"', {
- 'dependencies': ['../../tools/gyp/v8.gyp:v8_snapshot'],
- },
- {
- 'dependencies': [
- '../../tools/gyp/v8.gyp:v8_nosnapshot',
- ],
- }],
- ],
- }, {
- 'dependencies': ['../../tools/gyp/v8.gyp:v8'],
- }],
- ['os_posix == 1', {
- # TODO(svenpanne): This is a temporary work-around to fix the warnings
- # that show up because we use -std=gnu++0x instead of -std=c++11.
- 'cflags!': [
- '-pedantic',
- ],
- }],
],
},
],
« no previous file with comments | « src/compiler/common-operator-unittest.cc ('k') | src/compiler/compiler-test-utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698