Changeset 205961 in webkit


Ignore:
Timestamp:
Sep 15, 2016 1:47:35 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

[WebRTC][OpenWebRTC] crash in maybeHandleChangeMutedState
https://bugs.webkit.org/show_bug.cgi?id=161619

Source/WebCore:

Added OpenWebRTC support to the RealtimeMediaSource mock class.

Patch by Alejandro G. Castro <alex@igalia.com> on 2016-09-15
Reviewed by Eric Carlson.

Fixed tests.

  • platform/mediastream/openwebrtc/RealtimeMediaSourceOwr.h:

(WebCore::RealtimeMediaSourceOwr::RealtimeMediaSourceOwr): Allowed
inheritance of the class, required to use it when creating the
mock class. Added a new constructor to create the class with null
mediastream.

  • platform/mock/MockRealtimeMediaSource.cpp:

(WebCore::MockRealtimeMediaSource::MockRealtimeMediaSource): Use
the new BaseRealtimeMediaSourceClass in the constructor.

  • platform/mock/MockRealtimeMediaSource.h: Added a new

BaseRealtimeMediaSourceClass defined using the
RealtimeMediaSourceOwr class for OpenWebRTC platform.

LayoutTests:

Patch by Alejandro G. Castro <alex@igalia.com> on 2016-09-15
Reviewed by Eric Carlson.

  • platform/gtk/TestExpectations: Modify the expectations, the

tests do not crash anymore.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r205960 r205961  
     12016-09-15  Alejandro G. Castro  <alex@igalia.com>
     2
     3        [WebRTC][OpenWebRTC] crash in maybeHandleChangeMutedState
     4        https://bugs.webkit.org/show_bug.cgi?id=161619
     5
     6        Reviewed by Eric Carlson.
     7
     8        * platform/gtk/TestExpectations: Modify the expectations, the
     9        tests do not crash anymore.
     10
    1112016-09-15  Sergio Villar Senin  <svillar@igalia.com>
    212
  • trunk/LayoutTests/platform/gtk/TestExpectations

    r205849 r205961  
    797797webkit.org/b/153937 http/tests/misc/detach-during-notifyDone.html [ Crash Pass ]
    798798
    799 webkit.org/b/161619 fast/mediastream/MediaStream-video-element-displays-buffer.html [ Crash ]
    800 webkit.org/b/161619 fast/mediastream/MediaStream-video-element-video-tracks-disabled.html [ Crash ]
     799webkit.org/b/161956 fast/mediastream/MediaStream-video-element-displays-buffer.html [ Timeout ]
    801800
    802801#////////////////////////////////////////////////////////////////////////////////////////
  • trunk/Source/WebCore/ChangeLog

    r205960 r205961  
     12016-09-15  Alejandro G. Castro  <alex@igalia.com>
     2
     3        [WebRTC][OpenWebRTC] crash in maybeHandleChangeMutedState
     4        https://bugs.webkit.org/show_bug.cgi?id=161619
     5
     6        Added OpenWebRTC support to the RealtimeMediaSource mock class.
     7
     8        Reviewed by Eric Carlson.
     9
     10        Fixed tests.
     11
     12        * platform/mediastream/openwebrtc/RealtimeMediaSourceOwr.h:
     13        (WebCore::RealtimeMediaSourceOwr::RealtimeMediaSourceOwr): Allowed
     14        inheritance of the class, required to use it when creating the
     15        mock class. Added a new constructor to create the class with null
     16        mediastream.
     17        * platform/mock/MockRealtimeMediaSource.cpp:
     18        (WebCore::MockRealtimeMediaSource::MockRealtimeMediaSource): Use
     19        the new BaseRealtimeMediaSourceClass in the constructor.
     20        * platform/mock/MockRealtimeMediaSource.h: Added a new
     21        BaseRealtimeMediaSourceClass defined using the
     22        RealtimeMediaSourceOwr class for OpenWebRTC platform.
     23
    1242016-09-15  Sergio Villar Senin  <svillar@igalia.com>
    225
  • trunk/Source/WebCore/platform/mediastream/openwebrtc/RealtimeMediaSourceOwr.h

    r192954 r205961  
    4949class RealtimeMediaSourceCapabilities;
    5050
    51 class RealtimeMediaSourceOwr final : public RealtimeMediaSource {
     51class RealtimeMediaSourceOwr : public RealtimeMediaSource {
    5252public:
    5353RealtimeMediaSourceOwr(OwrMediaSource* mediaSource, const String& id, RealtimeMediaSource::Type type, const String& name)
    5454    : RealtimeMediaSource(id, type, name)
    5555    , m_mediaSource(mediaSource)
     56    {
     57    }
     58
     59RealtimeMediaSourceOwr(const String& id, RealtimeMediaSource::Type type, const String& name)
     60    : RealtimeMediaSource(id, type, name)
     61    , m_mediaSource(nullptr)
    5662    {
    5763    }
  • trunk/Source/WebCore/platform/mock/MockRealtimeMediaSource.cpp

    r205929 r205961  
    8383
    8484MockRealtimeMediaSource::MockRealtimeMediaSource(const String& id, RealtimeMediaSource::Type type, const String& name)
    85     : RealtimeMediaSource(id, type, name)
     85    : BaseRealtimeMediaSourceClass(id, type, name)
    8686{
    8787    if (type == RealtimeMediaSource::Audio)
  • trunk/Source/WebCore/platform/mock/MockRealtimeMediaSource.h

    r205929 r205961  
    3636#include "RealtimeMediaSource.h"
    3737
     38#if USE(OPENWEBRTC)
     39#include "RealtimeMediaSourceOwr.h"
     40#endif
     41
    3842namespace WebCore {
    3943
    4044class CaptureDevice;
    4145
    42 class MockRealtimeMediaSource : public RealtimeMediaSource {
     46#if USE(OPENWEBRTC)
     47using BaseRealtimeMediaSourceClass = RealtimeMediaSourceOwr;
     48#else
     49using BaseRealtimeMediaSourceClass = RealtimeMediaSource;
     50#endif
     51
     52class MockRealtimeMediaSource : public BaseRealtimeMediaSourceClass {
    4353public:
    4454    virtual ~MockRealtimeMediaSource() { }
Note: See TracChangeset for help on using the changeset viewer.