OLD | NEW |
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 Loading... |
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 |
OLD | NEW |