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

Side by Side Diff: content/browser/byte_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
« no previous file with comments | « content/browser/byte_stream.cc ('k') | content/browser/cache_storage/cache_storage.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/byte_stream.h" 5 #include "content/browser/byte_stream.h"
6 6
7 #include <stddef.h>
8
7 #include <deque> 9 #include <deque>
8 #include <limits> 10 #include <limits>
9 11
10 #include "base/bind.h" 12 #include "base/bind.h"
11 #include "base/callback.h" 13 #include "base/callback.h"
12 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
13 #include "base/test/test_simple_task_runner.h" 15 #include "base/test/test_simple_task_runner.h"
14 #include "net/base/io_buffer.h" 16 #include "net/base/io_buffer.h"
15 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
16 18
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 590
589 // The first write is below PostToPeer threshold. We shouldn't get anything 591 // The first write is below PostToPeer threshold. We shouldn't get anything
590 // from the output. 592 // from the output.
591 scoped_refptr<net::IOBuffer> output_io_buffer; 593 scoped_refptr<net::IOBuffer> output_io_buffer;
592 size_t output_length; 594 size_t output_length;
593 EXPECT_EQ(ByteStreamReader::STREAM_EMPTY, 595 EXPECT_EQ(ByteStreamReader::STREAM_EMPTY,
594 byte_stream_output->Read(&output_io_buffer, &output_length)); 596 byte_stream_output->Read(&output_io_buffer, &output_length));
595 } 597 }
596 598
597 } // namespace content 599 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/byte_stream.cc ('k') | content/browser/cache_storage/cache_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698