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

Unified Diff: gpu/gpu.gyp

Issue 595012: Added unit tests for gpu libraries to build. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/all.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gpu.gyp
===================================================================
--- gpu/gpu.gyp (revision 39125)
+++ gpu/gpu.gyp (working copy)
@@ -8,7 +8,7 @@
# This is defined here because we need to compile this set of files
# twice with different defines. Once so it calls real GL, again so it
# calls mock GL for the unit tests.
- 'gpu_source_files': [
+ 'gpu_service_source_files': [
'command_buffer/service/gles2_cmd_decoder.h',
'command_buffer/service/gles2_cmd_decoder_autogen.h',
'command_buffer/service/gles2_cmd_decoder.cc',
@@ -175,23 +175,6 @@
],
},
{
- 'target_name': 'command_buffer_common_unittests',
- 'type': 'none',
- 'include_dirs': [
- 'command_buffer/common',
- ],
- 'dependencies': [
- 'gles2_lib',
- 'gles2_implementation',
- 'gles2_cmd_helper',
- ],
- 'direct_dependent_settings': {
- 'sources': [
- 'command_buffer/common/bitfield_helpers_test.cc',
- ],
- },
- },
- {
'target_name': 'command_buffer_client',
'type': 'static_library',
'dependencies': [
@@ -207,17 +190,6 @@
],
},
{
- 'target_name': 'command_buffer_client_unittests',
- 'type': 'none',
- 'direct_dependent_settings': {
- 'sources': [
- 'command_buffer/client/cmd_buffer_helper_test.cc',
- 'command_buffer/client/fenced_allocator_test.cc',
- 'command_buffer/client/id_allocator_test.cc',
- ],
- },
- },
- {
'target_name': 'command_buffer_service_impl',
'type': 'static_library',
'include_dirs': [
@@ -294,34 +266,10 @@
'gl_libs',
],
'sources': [
- '<@(gpu_source_files)',
+ '<@(gpu_service_source_files)',
],
},
{
- 'target_name': 'command_buffer_service_unittests',
- 'type': 'none',
- 'direct_dependent_settings': {
- 'sources': [
- '<@(gpu_source_files)',
- 'command_buffer/service/cmd_parser_test.cc',
- 'command_buffer/service/command_buffer_service_unittest.cc',
- 'command_buffer/service/common_decoder_unittest.cc',
- 'command_buffer/service/gpu_processor_unittest.cc',
- 'command_buffer/service/resource_test.cc',
- 'command_buffer/service/gl_interface.h',
- 'command_buffer/service/gl_interface.cc',
- 'command_buffer/service/gl_mock.h',
- 'command_buffer/service/gl_mock.cc',
- 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
- 'command_buffer/service/gles2_cmd_decoder_unittest_autogen.h',
- 'command_buffer/common/gles2_cmd_format_test.cc',
- 'command_buffer/common/gles2_cmd_format_test_autogen.h',
- 'command_buffer/common/gles2_cmd_id_test.cc',
- 'command_buffer/common/gles2_cmd_id_test_autogen.h',
- ],
- },
- },
- {
'target_name': 'gpu_plugin',
'type': 'static_library',
'dependencies': [
@@ -342,19 +290,44 @@
],
},
{
- 'target_name': 'gpu_all_unittests',
+ 'target_name': 'gpu_tests',
'type': 'executable',
+ 'include_dirs': [
+ 'command_buffer/common',
+ ],
'dependencies': [
'../testing/gmock.gyp:gmock',
'../testing/gmock.gyp:gmockmain',
'../testing/gtest.gyp:gtest',
'command_buffer_client',
- 'command_buffer_client_unittests',
'command_buffer_common',
- 'command_buffer_common_unittests',
'command_buffer_service_impl',
- 'command_buffer_service_unittests',
+ 'gles2_lib',
+ 'gles2_implementation',
+ 'gles2_cmd_helper',
],
+ 'sources': [
+ '<@(gpu_service_source_files)',
+ 'command_buffer/client/cmd_buffer_helper_test.cc',
+ 'command_buffer/client/fenced_allocator_test.cc',
+ 'command_buffer/client/id_allocator_test.cc',
+ 'command_buffer/common/bitfield_helpers_test.cc',
+ 'command_buffer/common/gles2_cmd_format_test.cc',
+ 'command_buffer/common/gles2_cmd_format_test_autogen.h',
+ 'command_buffer/common/gles2_cmd_id_test.cc',
+ 'command_buffer/common/gles2_cmd_id_test_autogen.h',
+ 'command_buffer/service/cmd_parser_test.cc',
+ 'command_buffer/service/command_buffer_service_unittest.cc',
+ 'command_buffer/service/common_decoder_unittest.cc',
+ 'command_buffer/service/gpu_processor_unittest.cc',
+ 'command_buffer/service/resource_test.cc',
+ 'command_buffer/service/gl_interface.h',
+ 'command_buffer/service/gl_interface.cc',
+ 'command_buffer/service/gl_mock.h',
+ 'command_buffer/service/gl_mock.cc',
+ 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_autogen.h',
+ ],
},
{
'target_name': 'gles2_demo_lib',
« no previous file with comments | « build/all.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698