Bug 86922 - [Chromium-Android] Run DumpRenderTree as an apk (C++ and gyp part)
Summary: [Chromium-Android] Run DumpRenderTree as an apk (C++ and gyp part)
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Xianzhu Wang
URL:
Keywords:
Depends on:
Blocks: 86862
  Show dependency treegraph
 
Reported: 2012-05-18 16:36 PDT by Xianzhu Wang
Modified: 2012-05-22 21:13 PDT (History)
8 users (show)

See Also:


Attachments
patch (36.78 KB, patch)
2012-05-18 16:53 PDT, Xianzhu Wang
tkent: review+
tkent: commit-queue-
Details | Formatted Diff | Diff
patch for landing (42.49 KB, patch)
2012-05-22 14:15 PDT, Xianzhu Wang
no flags Details | Formatted Diff | Diff
patch for landing (44.04 KB, patch)
2012-05-22 15:19 PDT, Xianzhu Wang
no flags Details | Formatted Diff | Diff
patch v4 (41.82 KB, patch)
2012-05-22 15:53 PDT, Xianzhu Wang
tkent: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
last patch hopefully (41.77 KB, patch)
2012-05-22 16:26 PDT, Xianzhu Wang
no flags Details | Formatted Diff | Diff
Yet another last patch (resolved conflicts) (41.87 KB, patch)
2012-05-22 17:51 PDT, Xianzhu Wang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xianzhu Wang 2012-05-18 16:36:58 PDT
C++ and gyp part of patch for bug 86862.
Comment 1 Xianzhu Wang 2012-05-18 16:53:27 PDT
Created attachment 142821 [details]
patch
Comment 2 Kent Tamura 2012-05-20 18:28:48 PDT
Comment on attachment 142821 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=142821&action=review

Looks ok.

> Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:83
> +                'ImageDiff',
> +                'TestNetscapePlugIn',
> +                'copy_TestNetscapePlugIn',

Why did you move them to here?  It looks a unnecessary change.

> Tools/DumpRenderTree/chromium/TestShellAndroid.cpp:45
> +const char optionInFifo[] = "--in-fifo=";
> +const char optionOutFifo[] = "--out-fifo=";

should be optionInFIFO and optionOutFIFO.
http://www.webkit.org/coding/coding-style.html#names-basic

> Tools/DumpRenderTree/chromium/TestShellAndroid.cpp:87
> +    const char* inFifo = 0;
> +    const char* outFifo = 0;

should be inFIFO and outFIFO.
Comment 3 Tony Chang 2012-05-21 10:05:22 PDT
Comment on attachment 142821 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=142821&action=review

> Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:196
> +                ['os_posix!=1 or OS=="mac"', {
> +                    'sources/': [
> +                        ['exclude', 'Posix\\.cpp$'],

It's confusing to have os_posix include mac but the Posix.cpp file exclude mac, but I'm not sure of a better name for Linux or Android.

> Tools/DumpRenderTree/chromium/TestShellX11.cpp:36
>  #if USE(GTK)

Is this file used by aura and gtk? Should we merge TestShellGtk.cpp into this file (it's only like 12 lines of code) and put it behind an #if USE(GTK)?
Comment 4 Xianzhu Wang 2012-05-22 14:15:47 PDT
Created attachment 143359 [details]
patch for landing
Comment 5 Xianzhu Wang 2012-05-22 14:16:31 PDT
Comment on attachment 142821 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=142821&action=review

>> Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:83
>> +                'copy_TestNetscapePlugIn',
> 
> Why did you move them to here?  It looks a unnecessary change.

These had been there before http://trac.webkit.org/changeset/95171. We put the dependencies into the 'else' part of OS=="android" because at some time gyp didn't support excluding from dependencies. Now it is supported so I changed this to 'include all then exclude' style which is clearer and normally used in gyp files.

>> Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:196
>> +                        ['exclude', 'Posix\\.cpp$'],
> 
> It's confusing to have os_posix include mac but the Posix.cpp file exclude mac, but I'm not sure of a better name for Linux or Android.

In chromium there are also some places using such style (on mac some posix source files are excluded).
Actually the code in Posix.cpp file works on Mac. It is excluded just because Mac has a better implementation.

>> Tools/DumpRenderTree/chromium/TestShellAndroid.cpp:45
>> +const char optionOutFifo[] = "--out-fifo=";
> 
> should be optionInFIFO and optionOutFIFO.
> http://www.webkit.org/coding/coding-style.html#names-basic

Done.

>> Tools/DumpRenderTree/chromium/TestShellAndroid.cpp:87
>> +    const char* outFifo = 0;
> 
> should be inFIFO and outFIFO.

Done.

>> Tools/DumpRenderTree/chromium/TestShellX11.cpp:36
>>  #if USE(GTK)
> 
> Is this file used by aura and gtk? Should we merge TestShellGtk.cpp into this file (it's only like 12 lines of code) and put it behind an #if USE(GTK)?

I think so. Done.
Comment 6 Xianzhu Wang 2012-05-22 15:10:44 PDT
Comment on attachment 143359 [details]
patch for landing

Will soon upload a new patch containing latest downstream changes.
Comment 7 Xianzhu Wang 2012-05-22 15:19:21 PDT
Created attachment 143375 [details]
patch for landing
Comment 8 Kent Tamura 2012-05-22 15:30:42 PDT
Comment on attachment 143375 [details]
patch for landing

View in context: https://bugs.webkit.org/attachment.cgi?id=143375&action=review

> Tools/DumpRenderTree/DumpRenderTree.gypi:57
>              'chromium/WebPreferences.h',
> +            'chromium/WebThemeControlDRTWin.cpp',
> +            'chromium/WebThemeControlDRTWin.h',
> +            'chromium/WebThemeEngineDRTMac.mm',
> +            'chromium/WebThemeEngineDRTMac.h',
> +            'chromium/WebThemeEngineDRTWin.cpp',
> +            'chromium/WebThemeEngineDRTWin.h',
>              'chromium/WebUserMediaClientMock.cpp',

This patch includes a change which was not in the reviewed patch.
Comment 9 Xianzhu Wang 2012-05-22 15:34:35 PDT
Comment on attachment 143375 [details]
patch for landing

Sorry. I should request another review. Thanks.
Comment 10 Kent Tamura 2012-05-22 15:38:21 PDT
(In reply to comment #8)
> (From update of attachment 143375 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=143375&action=review
> 
> > Tools/DumpRenderTree/DumpRenderTree.gypi:57
> >              'chromium/WebPreferences.h',
> > +            'chromium/WebThemeControlDRTWin.cpp',
> > +            'chromium/WebThemeControlDRTWin.h',
> > +            'chromium/WebThemeEngineDRTMac.mm',
> > +            'chromium/WebThemeEngineDRTMac.h',
> > +            'chromium/WebThemeEngineDRTWin.cpp',
> > +            'chromium/WebThemeEngineDRTWin.h',
> >              'chromium/WebUserMediaClientMock.cpp',
> 
> This patch includes a change which was not in the reviewed patch.

Please change this in another patch.  It is unrelated to "Run DumpRenderTree as an apk", and we shouldn't do it in this bug.
Comment 11 Xianzhu Wang 2012-05-22 15:53:51 PDT
Created attachment 143385 [details]
patch v4

Will file another bug for the conditions in DumpRenderTree.gypi.
Comment 12 WebKit Review Bot 2012-05-22 16:20:34 PDT
Comment on attachment 143385 [details]
patch v4

Attachment 143385 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12767058
Comment 13 Xianzhu Wang 2012-05-22 16:26:10 PDT
Created attachment 143394 [details]
last patch hopefully

Will commit-queue+ after passing ews.
Comment 14 Xianzhu Wang 2012-05-22 17:51:17 PDT
Created attachment 143418 [details]
Yet another last patch (resolved conflicts)
Comment 15 WebKit Review Bot 2012-05-22 21:13:28 PDT
Comment on attachment 143418 [details]
Yet another last patch (resolved conflicts)

Clearing flags on attachment: 143418

Committed r118115: <http://trac.webkit.org/changeset/118115>
Comment 16 WebKit Review Bot 2012-05-22 21:13:34 PDT
All reviewed patches have been landed.  Closing bug.