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

Unified Diff: Source/core/streams/ReadableStreamTest.cpp

Issue 1001233002: Streams Implementation Update: Reader name and Stream methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months 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/streams/ReadableStreamReaderTest.cpp ('k') | Source/modules/fetch/Body.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/streams/ReadableStreamTest.cpp
diff --git a/Source/core/streams/ReadableStreamTest.cpp b/Source/core/streams/ReadableStreamTest.cpp
index 95fb82815c3927734577ad91cba555d5511e7b65..7221ee4d319bb1ddb1a132480d96b71e3ebfa430 100644
--- a/Source/core/streams/ReadableStreamTest.cpp
+++ b/Source/core/streams/ReadableStreamTest.cpp
@@ -13,8 +13,8 @@
#include "core/dom/DOMException.h"
#include "core/dom/Document.h"
#include "core/dom/ExceptionCode.h"
-#include "core/streams/ExclusiveStreamReader.h"
#include "core/streams/ReadableStreamImpl.h"
+#include "core/streams/ReadableStreamReader.h"
#include "core/streams/UnderlyingSource.h"
#include "core/testing/DummyPageHolder.h"
#include <gmock/gmock.h>
@@ -806,18 +806,18 @@ TEST_F(ReadableStreamTest, BackpressureOnReading)
stream->error(DOMException::create(AbortError, "done"));
}
-// Note: Detailed tests are on ExclusiveStreamReaderTest.
-TEST_F(ReadableStreamTest, ExclusiveStreamReader)
+// Note: Detailed tests are on ReadableStreamReaderTest.
+TEST_F(ReadableStreamTest, ReadableStreamReader)
{
StringStream* stream = construct();
- ExclusiveStreamReader* reader = stream->getReader(m_exceptionState);
+ ReadableStreamReader* reader = stream->getReader(m_exceptionState);
ASSERT_TRUE(reader);
EXPECT_FALSE(m_exceptionState.hadException());
EXPECT_TRUE(reader->isActive());
EXPECT_TRUE(stream->isLockedTo(reader));
- ExclusiveStreamReader* another = stream->getReader(m_exceptionState);
+ ReadableStreamReader* another = stream->getReader(m_exceptionState);
ASSERT_EQ(nullptr, another);
EXPECT_TRUE(m_exceptionState.hadException());
EXPECT_TRUE(reader->isActive());
« no previous file with comments | « Source/core/streams/ReadableStreamReaderTest.cpp ('k') | Source/modules/fetch/Body.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698