[Webkit-unassigned] [Bug 179690] [MSE] Use correct range end checks in sourceBufferPrivateDidReceiveSample()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 1 12:12:58 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=179690

Jer Noble <jer.noble at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #328100|review?                     |review+
              Flags|                            |

--- Comment #10 from Jer Noble <jer.noble at apple.com> ---
Comment on attachment 328100
  --> https://bugs.webkit.org/attachment.cgi?id=328100
Patch

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

r=me with nit:

> Tools/TestWebKitAPI/Tests/WebCore/SampleMap.cpp:-232
> -TEST_F(SampleMapTest, findSamplesWithinPresentationRange)
> -{
> -    auto& presentationMap = map.presentationOrder();
> -    auto iterator_range = presentationMap.findSamplesWithinPresentationRange(MediaTime(0, 1), MediaTime(1, 1));
> -    EXPECT_EQ(MediaTime(1, 1), iterator_range.first->second->presentationTime());
> -    EXPECT_EQ(MediaTime(2, 1), iterator_range.second->second->presentationTime());
> -
> -    iterator_range = presentationMap.findSamplesWithinPresentationRange(MediaTime(1, 2), MediaTime(3, 2));
> -    EXPECT_EQ(MediaTime(1, 1), iterator_range.first->second->presentationTime());
> -    EXPECT_EQ(MediaTime(2, 1), iterator_range.second->second->presentationTime());
> -
> -    iterator_range = presentationMap.findSamplesWithinPresentationRange(MediaTime(9, 1), MediaTime(21, 1));
> -    EXPECT_EQ(MediaTime(11, 1), iterator_range.first->second->presentationTime());
> -    EXPECT_TRUE(presentationMap.end() == iterator_range.second);
> -
> -    iterator_range = presentationMap.findSamplesWithinPresentationRange(MediaTime(-1, 1), MediaTime(0, 1));
> -    EXPECT_EQ(MediaTime(0, 1), iterator_range.first->second->presentationTime());
> -    EXPECT_EQ(MediaTime(1, 1), iterator_range.second->second->presentationTime());
> -
> -    iterator_range = presentationMap.findSamplesWithinPresentationRange(MediaTime(10, 1), MediaTime(21, 2));
> -    EXPECT_TRUE(presentationMap.end() == iterator_range.first);
> -    EXPECT_TRUE(presentationMap.end() == iterator_range.second);
> -
> -    iterator_range = presentationMap.findSamplesWithinPresentationRange(MediaTime(20, 1), MediaTime(21, 1));
> -    EXPECT_TRUE(presentationMap.end() == iterator_range.first);
> -    EXPECT_TRUE(presentationMap.end() == iterator_range.second);
> -}
> -

Please restore this test (with the new name and possibly new values) before landing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171201/f1215ca6/attachment.html>


More information about the webkit-unassigned mailing list