OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <stddef.h> |
| 6 |
5 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
6 #include "base/test/test_simple_task_runner.h" | 8 #include "base/test/test_simple_task_runner.h" |
7 #include "content/browser/streams/stream.h" | 9 #include "content/browser/streams/stream.h" |
8 #include "content/browser/streams/stream_read_observer.h" | 10 #include "content/browser/streams/stream_read_observer.h" |
9 #include "content/browser/streams/stream_register_observer.h" | 11 #include "content/browser/streams/stream_register_observer.h" |
10 #include "content/browser/streams/stream_registry.h" | 12 #include "content/browser/streams/stream_registry.h" |
11 #include "content/browser/streams/stream_write_observer.h" | 13 #include "content/browser/streams/stream_write_observer.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
13 | 15 |
14 namespace content { | 16 namespace content { |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 TEST_F(StreamTest, AbortPendingStream) { | 375 TEST_F(StreamTest, AbortPendingStream) { |
374 TestStreamWriter writer; | 376 TestStreamWriter writer; |
375 | 377 |
376 GURL url("blob://stream"); | 378 GURL url("blob://stream"); |
377 registry_->AbortPendingStream(url); | 379 registry_->AbortPendingStream(url); |
378 scoped_refptr<Stream> stream1(new Stream(registry_.get(), &writer, url)); | 380 scoped_refptr<Stream> stream1(new Stream(registry_.get(), &writer, url)); |
379 ASSERT_EQ(nullptr, registry_->GetStream(url).get()); | 381 ASSERT_EQ(nullptr, registry_->GetStream(url).get()); |
380 } | 382 } |
381 | 383 |
382 } // namespace content | 384 } // namespace content |
OLD | NEW |