Changeset 142289 in webkit


Ignore:
Timestamp:
Feb 8, 2013 9:05:28 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Source/WebCore: Fix and test for missing return statement

RTCPeerConnection.getStats() failed when remote stats were instantiated.
https://bugs.webkit.org/show_bug.cgi?id=109292

Patch by Harald Alvestrand <hta@google.com> on 2013-02-08
Reviewed by Adam Barth.

Tested by extending the existing mock's behaviour.

  • Modules/mediastream/RTCStatsReport.cpp:

(WebCore::RTCStatsReport::addElement):

Tools: Fix and test for missing return

RTCPeerConnection.getStats() fails when remote stats are instantiated.
https://bugs.webkit.org/show_bug.cgi?id=109292

Patch by Harald Alvestrand <hta@google.com> on 2013-02-08
Reviewed by Adam Barth.

  • DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:

(MockWebRTCPeerConnectionHandler::getStats):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r142287 r142289  
     12013-02-08  Harald Alvestrand  <hta@google.com>
     2
     3        Fix and test for missing return statement
     4
     5        RTCPeerConnection.getStats() failed when remote stats were instantiated.
     6        https://bugs.webkit.org/show_bug.cgi?id=109292
     7
     8        Reviewed by Adam Barth.
     9
     10        Tested by extending the existing mock's behaviour.
     11
     12        * Modules/mediastream/RTCStatsReport.cpp:
     13        (WebCore::RTCStatsReport::addElement):
     14
    1152013-02-08  Anton Vayvod  <avayvod@chromium.org>
    216
  • trunk/Source/WebCore/Modules/mediastream/RTCStatsReport.cpp

    r130768 r142289  
    4545        ASSERT(!m_local);
    4646        m_local = RTCStatsElement::create(timestamp);
     47        return;
    4748    }
    4849    ASSERT(!m_remote);
  • trunk/Tools/ChangeLog

    r142288 r142289  
     12013-02-08  Harald Alvestrand  <hta@google.com>
     2
     3        Fix and test for missing return
     4
     5        RTCPeerConnection.getStats() fails when remote stats are instantiated.
     6        https://bugs.webkit.org/show_bug.cgi?id=109292
     7
     8        Reviewed by Adam Barth.
     9
     10        * DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp:
     11        (MockWebRTCPeerConnectionHandler::getStats):
     12
    1132013-02-08  Tommy Widenflycht  <tommyw@google.com>
    214
  • trunk/Tools/DumpRenderTree/chromium/MockWebRTCPeerConnectionHandler.cpp

    r142288 r142289  
    283283            response.addElement(reportIndex, true, currentDate);
    284284            response.addStatistic(reportIndex, true, "type", "video");
     285            // We add an empty remote report element.
     286            response.addElement(reportIndex, false, currentDate);
    285287        }
    286288    }
Note: See TracChangeset for help on using the changeset viewer.