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

Side by Side Diff: net/base/elements_upload_data_stream_unittest.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 | « net/base/elements_upload_data_stream.h ('k') | net/base/escape.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 "net/base/elements_upload_data_stream.h" 5 #include "net/base/elements_upload_data_stream.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <limits> 10 #include <limits>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h"
14 #include "base/bind.h" 13 #include "base/bind.h"
15 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
16 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
17 #include "base/files/scoped_temp_dir.h" 16 #include "base/files/scoped_temp_dir.h"
18 #include "base/location.h" 17 #include "base/location.h"
19 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
20 #include "base/message_loop/message_loop.h" 19 #include "base/message_loop/message_loop.h"
21 #include "base/run_loop.h" 20 #include "base/run_loop.h"
22 #include "base/single_thread_task_runner.h" 21 #include "base/single_thread_task_runner.h"
23 #include "base/thread_task_runner_handle.h" 22 #include "base/thread_task_runner_handle.h"
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 wrapped_buffer2.get(), buf2.size(), read_callback2.callback())); 797 wrapped_buffer2.get(), buf2.size(), read_callback2.callback()));
799 EXPECT_EQ(static_cast<int>(buf2.size()), read_callback2.WaitForResult()); 798 EXPECT_EQ(static_cast<int>(buf2.size()), read_callback2.WaitForResult());
800 EXPECT_EQ(expected_data, buf2); 799 EXPECT_EQ(expected_data, buf2);
801 EXPECT_TRUE(stream->IsEOF()); 800 EXPECT_TRUE(stream->IsEOF());
802 801
803 // Make sure callbacks are not called for cancelled operations. 802 // Make sure callbacks are not called for cancelled operations.
804 EXPECT_FALSE(read_callback1.have_result()); 803 EXPECT_FALSE(read_callback1.have_result());
805 } 804 }
806 805
807 } // namespace net 806 } // namespace net
OLDNEW
« no previous file with comments | « net/base/elements_upload_data_stream.h ('k') | net/base/escape.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698