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

Side by Side Diff: content/browser/fileapi/blob_reader_unittest.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "storage/browser/blob/blob_reader.h" 5 #include "storage/browser/blob/blob_reader.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string.h>
9 10
10 #include "base/bind.h" 11 #include "base/bind.h"
11 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
12 #include "base/callback.h" 13 #include "base/callback.h"
13 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
14 #include "base/location.h" 15 #include "base/location.h"
15 #include "base/macros.h" 16 #include "base/macros.h"
16 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
17 #include "base/message_loop/message_loop.h" 18 #include "base/message_loop/message_loop.h"
18 #include "base/run_loop.h" 19 #include "base/run_loop.h"
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 EXPECT_EQ(BlobReader::Status::DONE, 1108 EXPECT_EQ(BlobReader::Status::DONE,
1108 reader_->CalculateSize(base::Bind(&SetValue<int>, &size_result))); 1109 reader_->CalculateSize(base::Bind(&SetValue<int>, &size_result)));
1109 buffer = CreateBuffer(kDataSize + 1); 1110 buffer = CreateBuffer(kDataSize + 1);
1110 EXPECT_EQ(BlobReader::Status::NET_ERROR, 1111 EXPECT_EQ(BlobReader::Status::NET_ERROR,
1111 reader_->SetReadRange(0, kDataSize + 1)); 1112 reader_->SetReadRange(0, kDataSize + 1));
1112 EXPECT_EQ(net::ERR_FILE_NOT_FOUND, reader_->net_error()); 1113 EXPECT_EQ(net::ERR_FILE_NOT_FOUND, reader_->net_error());
1113 } 1114 }
1114 1115
1115 } // namespace 1116 } // namespace
1116 } // namespace storage 1117 } // namespace storage
OLDNEW
« no previous file with comments | « content/browser/device_sensors/data_fetcher_shared_memory_base.cc ('k') | content/browser/gamepad/gamepad_data_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698