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

Unified Diff: content/content_tests.gypi

Issue 221993002: Split content_shell dependencies for layout tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix iOS Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_shell.gypi ('k') | content/test/mock_webclipboard_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/content_tests.gypi
diff --git a/content/content_tests.gypi b/content/content_tests.gypi
index 2289ef4509c1f5c20210adbec1bb932cbdae8a10..1bec1dd371a8ef801ac4ce93fe69a28f3a68ff07 100644
--- a/content/content_tests.gypi
+++ b/content/content_tests.gypi
@@ -5,6 +5,40 @@
{
'targets': [
{
+ 'target_name': 'layouttest_support_content',
+ 'type': 'static_library',
+ 'conditions': [
+ ['OS=="android"', {
+ 'dependencies': [
+ 'layouttest_support_content_jni_headers',
+ ],
+ }],
+ ['OS!="ios"', {
jam 2014/04/03 17:40:20 this whole target, since its not used on ios, shou
Primiano Tucci (use gerrit) 2014/04/03 19:13:44 Hmm, if I nest the entire target inside a conditio
jam 2014/04/03 19:39:33 hmm, are these targets built on ios? they shouldn'
Primiano Tucci (use gerrit) 2014/04/03 19:52:59 all.gyp is including content_shell_and_tests.gyp:*
jam 2014/04/03 20:08:29 ugh, it's unfortunate that these other targets are
+ # layouttest_support_content is not supported nor required on iOS.
+ 'dependencies': [
+ '../skia/skia.gyp:skia',
+ '../v8/tools/gyp/v8.gyp:v8',
+ '../webkit/common/webkit_common.gyp:webkit_common',
+ ],
+ 'include_dirs': [
+ '..',
+ ],
+ 'sources': [
+ 'public/test/layouttest_support.h',
+ 'public/test/nested_message_pump_android.cc',
+ 'public/test/nested_message_pump_android.h',
+ 'test/layouttest_support.cc',
+ 'test/mock_webclipboard_impl.cc',
+ 'test/mock_webclipboard_impl.h',
+ 'test/test_media_stream_client.cc',
+ 'test/test_media_stream_client.h',
+ 'test/test_video_frame_provider.cc',
+ 'test/test_video_frame_provider.h',
+ ],
+ }],
+ ],
+ },
+ {
'target_name': 'test_support_content',
'type': 'static_library',
'dependencies': [
@@ -58,8 +92,6 @@
'public/test/mock_render_thread.h',
'public/test/mock_resource_context.cc',
'public/test/mock_resource_context.h',
- 'public/test/nested_message_pump_android.cc',
- 'public/test/nested_message_pump_android.h',
'public/test/render_view_test.cc',
'public/test/render_view_test.h',
'public/test/render_widget_test.cc',
@@ -128,8 +160,6 @@
'test/mock_keyboard_driver_win.h',
'test/mock_render_process.cc',
'test/mock_render_process.h',
- 'test/mock_webclipboard_impl.cc',
- 'test/mock_webclipboard_impl.h',
'test/mock_webframeclient.h',
'test/mock_weburlloader.cc',
'test/mock_weburlloader.h',
@@ -153,8 +183,6 @@
'test/test_content_client.h',
'test/test_context_provider_factory.cc',
'test/test_context_provider_factory.h',
- 'test/test_media_stream_client.cc',
- 'test/test_media_stream_client.h',
'test/test_render_frame_host.cc',
'test/test_render_frame_host.h',
'test/test_render_frame_host_factory.cc',
@@ -163,8 +191,6 @@
'test/test_render_view_host.h',
'test/test_render_view_host_factory.cc',
'test/test_render_view_host_factory.h',
- 'test/test_video_frame_provider.cc',
- 'test/test_video_frame_provider.h',
'test/test_web_contents.cc',
'test/test_web_contents.h',
'test/test_web_contents_view.cc',
@@ -221,6 +247,7 @@
'content.gyp:content_renderer',
'content.gyp:content_utility',
'content.gyp:content_worker',
+ 'layouttest_support_content',
jam 2014/04/03 17:40:20 this is odd to see, why does test_support_content
Primiano Tucci (use gerrit) 2014/04/03 19:13:44 See the attached drawing. Essentially some of the
jam 2014/04/03 19:39:33 let's look at each of the cc files one by one tes
Primiano Tucci (use gerrit) 2014/04/03 19:52:59 Unfortunately we can't. If I include the .cc file
jam 2014/04/03 20:08:29 huh? why would it be defined twice? content_shell_
Primiano Tucci (use gerrit) 2014/04/03 20:36:29 Twice: in this target (test_support_content) and l
'../cc/cc_tests.gyp:cc_test_support',
'../media/media.gyp:media',
'../ppapi/ppapi_internal.gyp:ppapi_host',
@@ -297,7 +324,6 @@
['OS=="android"', {
'dependencies': [
'../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
- 'test_support_content_jni_headers',
],
}],
],
@@ -306,10 +332,10 @@
'target_name': 'content_unittests',
'type': '<(gtest_target_type)',
'dependencies': [
+ 'browser/speech/proto/speech_proto.gyp:speech_proto',
'content.gyp:content_browser',
'content.gyp:content_common',
'test_support_content',
- 'browser/speech/proto/speech_proto.gyp:speech_proto',
'../base/base.gyp:test_support_base',
'../crypto/crypto.gyp:crypto',
'../net/net.gyp:net_test_support',
@@ -958,6 +984,7 @@
'content_resources.gyp:content_resources',
'content_shell_lib',
'content_shell_pak',
+ 'test_support_content',
Primiano Tucci (use gerrit) 2014/04/03 16:44:28 This is needed because previously content_unittest
'../base/base.gyp:test_support_base',
'../gin/gin.gyp:gin',
'../gpu/gpu.gyp:gpu',
@@ -1585,7 +1612,7 @@
['OS == "android"', {
'targets': [
{
- 'target_name': 'test_support_content_jni_headers',
+ 'target_name': 'layouttest_support_content_jni_headers',
jam 2014/04/03 17:40:20 why the rename? this is also used in content_brows
Primiano Tucci (use gerrit) 2014/04/03 19:13:44 Hmm, not really. THis is only needed by nested_mes
jam 2014/04/03 19:39:33 hmmm, this s used by browser_tests afaik because t
Primiano Tucci (use gerrit) 2014/04/03 19:52:59 Ahh sorry, you're right here. NestedMessagePumpAnd
'type': 'none',
'sources': [
'public/test/android/javatests/src/org/chromium/content/browser/test/NestedSystemMessageHandler.java',
« no previous file with comments | « content/content_shell.gypi ('k') | content/test/mock_webclipboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698