Chromium Code Reviews| 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 |