| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/fileapi/file_system_file_stream_reader.h" | 5 #include "storage/browser/fileapi/file_system_file_stream_reader.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <limits> | 10 #include <limits> |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 new net::IOBufferWithSize(kTestDataSize)); | 265 new net::IOBufferWithSize(kTestDataSize)); |
| 266 int rv = reader->Read(buf.get(), buf->size(), base::Bind(&NeverCalled)); | 266 int rv = reader->Read(buf.get(), buf->size(), base::Bind(&NeverCalled)); |
| 267 ASSERT_TRUE(rv == net::ERR_IO_PENDING || rv >= 0); | 267 ASSERT_TRUE(rv == net::ERR_IO_PENDING || rv >= 0); |
| 268 | 268 |
| 269 // Delete immediately. | 269 // Delete immediately. |
| 270 // Should not crash; nor should NeverCalled be callback. | 270 // Should not crash; nor should NeverCalled be callback. |
| 271 reader.reset(); | 271 reader.reset(); |
| 272 } | 272 } |
| 273 | 273 |
| 274 } // namespace content | 274 } // namespace content |
| OLD | NEW |