| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1209 reader_->Read(buffer.get(), kDataSize, &bytes_read, | 1209 reader_->Read(buffer.get(), kDataSize, &bytes_read, |
| 1210 base::Bind(&SetValue<int>, &async_bytes_read))); | 1210 base::Bind(&SetValue<int>, &async_bytes_read))); |
| 1211 EXPECT_EQ(net::OK, reader_->net_error()); | 1211 EXPECT_EQ(net::OK, reader_->net_error()); |
| 1212 EXPECT_EQ(kDataSize, static_cast<size_t>(bytes_read)); | 1212 EXPECT_EQ(kDataSize, static_cast<size_t>(bytes_read)); |
| 1213 EXPECT_EQ(0, async_bytes_read); | 1213 EXPECT_EQ(0, async_bytes_read); |
| 1214 EXPECT_EQ(kData, std::string(buffer->data(), kDataSize)); | 1214 EXPECT_EQ(kData, std::string(buffer->data(), kDataSize)); |
| 1215 EXPECT_EQ(net::OK, size_result); | 1215 EXPECT_EQ(net::OK, size_result); |
| 1216 } | 1216 } |
| 1217 | 1217 |
| 1218 } // namespace storage | 1218 } // namespace storage |
| OLD | NEW |