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

Side by Side Diff: content/browser/streams/stream_unittest.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/streams/stream_registry.h ('k') | content/browser/streams/stream_url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698