WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 56587
Implement Layout Tests for the Media Stream API
https://bugs.webkit.org/show_bug.cgi?id=56587
Summary
Implement Layout Tests for the Media Stream API
Leandro Graciá Gil
Reported
2011-03-17 13:48:51 PDT
Implement the needed code in the LayoutTestController and provide a StreamClientMock to enable layout testing for the Media Stream API.
Attachments
Patch
(89.21 KB, patch)
2012-02-15 06:41 PST
,
Tommy Widenflycht
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Leandro Graciá Gil
Comment 1
2011-03-23 13:19:36 PDT
Updating the bug platform settings (had the default ones).
Tommy Widenflycht
Comment 2
2012-02-15 06:41:34 PST
Created
attachment 127175
[details]
Patch
Tommy Widenflycht
Comment 3
2012-02-15 06:44:10 PST
I have uploaded a complete implementation for discussion purposes only.
Adam Barth
Comment 4
2012-02-15 15:00:00 PST
Comment on
attachment 127175
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=127175&action=review
The overall structure of this patch looks great.
> Source/WebCore/mediastream/UserMediaClientMock.cpp:47 > + : m_allowAudio(false), m_allowVideo(false)
These should be on separate lines.
> Source/WebCore/mediastream/UserMediaClientMock.cpp:71 > + String id("mock_audio_device"); > + String name("AudioCapture");
We usually just use the assignment form of the constructor.
> Source/WebCore/platform/mediastream/PeerConnectionHandlerMock.cpp:50 > +PeerConnectionHandlerMock::PeerConnectionHandlerMock(PeerConnectionHandlerClient* client, const String& serverConfiguration, PassRefPtr<SecurityOrigin> securityOrigin)
You'll probably need ASSERT_UNUSED for serverConfiguration and securityOrigin to avoid breaking the compile for some ports that don't like unused parameters. (There are a bunch more examples of this comment in this file.)
Adam Barth
Comment 5
2012-02-15 15:01:53 PST
Maybe @fishd would like to take a look at the uber patch? There's a bunch of machinery in the patch that's not needed for the getusermedia-not-allowed.html test. Maybe a good starting point would be to break off whatever chunk is needed for getusermedia-not-allowed.html into a first patch,.
Tommy Widenflycht
Comment 6
2012-02-16 07:00:33 PST
(In reply to
comment #4
)
> (From update of
attachment 127175
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=127175&action=review
> > The overall structure of this patch looks great. > > > Source/WebCore/mediastream/UserMediaClientMock.cpp:47 > > + : m_allowAudio(false), m_allowVideo(false) > > These should be on separate lines. > > > Source/WebCore/mediastream/UserMediaClientMock.cpp:71 > > + String id("mock_audio_device"); > > + String name("AudioCapture"); > > We usually just use the assignment form of the constructor.
Thanks for having a first look! I fixed your comments and uploaded just the UserMediaClientMock related code to
https://bugs.webkit.org/show_bug.cgi?id=61068
Tommy Widenflycht
Comment 7
2012-07-24 05:58:43 PDT
We now have reasonable layout tests and therefore doesn't need this tracking bug anymore.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug