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

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: assert null 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
« no previous file with comments | « Source/core/html/TimeRanges.cpp ('k') | Source/core/platform/graphics/MediaSourcePrivate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/html/TimeRanges.cpp ('k') | Source/core/platform/graphics/MediaSourcePrivate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698