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

Unified Diff: content/browser/streams/stream_unittest.cc

Issue 759823003: Introduce StreamRegistry::NotifyReaderAbortedBeforeRegistration() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « content/browser/streams/stream_registry.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/streams/stream_unittest.cc
diff --git a/content/browser/streams/stream_unittest.cc b/content/browser/streams/stream_unittest.cc
index 6008e81af9a2691a3faf0d57892e6211f1a5ddf6..1a325d2882d6b42009ad3d49bbd79e8f4d649844 100644
--- a/content/browser/streams/stream_unittest.cc
+++ b/content/browser/streams/stream_unittest.cc
@@ -370,4 +370,13 @@ TEST_F(StreamTest, Flush) {
EXPECT_EQ(stream.get(), registry_->GetStream(url).get());
}
+TEST_F(StreamTest, ReaderAbortedBeforeRegistration) {
+ TestStreamWriter writer;
+
+ GURL url("blob://stream");
+ registry_->NotifyReaderAbortedBeforeRegistration(url);
+ scoped_refptr<Stream> stream1(new Stream(registry_.get(), &writer, url));
+ ASSERT_EQ(nullptr, registry_->GetStream(url).get());
tyoshino (SeeGerritForStatus) 2014/11/26 09:29:12 please also update NULLs in this file to nullptr
horo 2014/11/26 09:54:10 Done.
+}
+
} // namespace content
« no previous file with comments | « content/browser/streams/stream_registry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698