Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1105)

Unified Diff: Source/core/html/TimeRangesTest.cpp

Issue 61603006: Remove MediaSourcePrivate/SourceBufferPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/TimeRangesTest.cpp
diff --git a/Source/core/html/TimeRangesTest.cpp b/Source/core/html/TimeRangesTest.cpp
index 9c92149210db53530cbaa0de258c9a22bda6d4ad..584761c36ea4fa221a9764b229772002b28da9c6 100644
--- a/Source/core/html/TimeRangesTest.cpp
+++ b/Source/core/html/TimeRangesTest.cpp
@@ -61,6 +61,16 @@ TEST(TimeRanges, SingleRange)
ASSERT_RANGE("{ [1,2) }", TimeRanges::create(1, 2));
}
+TEST(TimeRanges, CreateFromWebTimeRanges)
+{
+ blink::WebTimeRanges webRanges(static_cast<size_t>(2));
+ webRanges[0].start = 0;
+ webRanges[0].end = 1;
+ webRanges[1].start = 2;
+ webRanges[1].end = 3;
+ ASSERT_RANGE("{ [0,1) [2,3) }", TimeRanges::create(webRanges));
+}
+
TEST(TimeRanges, AddOrder)
{
RefPtr<TimeRanges> rangeA = TimeRanges::create();

Powered by Google App Engine
This is Rietveld 408576698