Bug 170173 - [OWR] Fix class structure for the OWR mock classes after last modifications
Summary: [OWR] Fix class structure for the OWR mock classes after last modifications
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alejandro G. Castro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-28 03:07 PDT by Alejandro G. Castro
Modified: 2017-04-03 05:24 PDT (History)
4 users (show)

See Also:


Attachments
Patch (1.84 KB, patch)
2017-03-28 03:12 PDT, Alejandro G. Castro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro G. Castro 2017-03-28 03:07:45 PDT
In case of OWR MockRealtimeMediaSource.h inherits from RealtimeMediaSourceOwr, so we have to change some of the definitions.
Comment 1 Alejandro G. Castro 2017-03-28 03:12:06 PDT
Created attachment 305581 [details]
Patch
Comment 2 youenn fablet 2017-03-28 07:56:47 PDT
Comment on attachment 305581 [details]
Patch

To make things cleaner, the mock owr source could just implement RealtimeMediaSource and forwards calls to a member field inheriting from RealtimeMediaSourceOwr. Future refactoring?

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

> Source/WebCore/platform/mock/MockRealtimeMediaSource.h:64
> +#if !USE(OPENWEBRTC)

Or you could add a noop implementation here or in mock owr subclasses
Comment 3 Alejandro G. Castro 2017-03-30 05:06:22 PDT
Thanks for the review!

(In reply to youenn fablet from comment #2)
> Comment on attachment 305581 [details]
> Patch
> 
> To make things cleaner, the mock owr source could just implement
> RealtimeMediaSource and forwards calls to a member field inheriting from
> RealtimeMediaSourceOwr. Future refactoring?
> 

Yeah, we want to review the whole mock class for webrtc at some point.

> View in context:
> https://bugs.webkit.org/attachment.cgi?id=305581&action=review
> 
> > Source/WebCore/platform/mock/MockRealtimeMediaSource.h:64
> > +#if !USE(OPENWEBRTC)
> 
> Or you could add a noop implementation here or in mock owr subclasses

Actually the OWR is a super class of Mock, it is a noop already there, I would need to override in that case and don't do it for other platforms.
Comment 4 WebKit Commit Bot 2017-04-03 05:24:26 PDT
Comment on attachment 305581 [details]
Patch

Clearing flags on attachment: 305581

Committed r214772: <http://trac.webkit.org/changeset/214772>
Comment 5 WebKit Commit Bot 2017-04-03 05:24:27 PDT
All reviewed patches have been landed.  Closing bug.