OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/local_file_stream_reader.h" | 5 #include "storage/browser/fileapi/local_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 <memory> | 10 #include <memory> |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 int rv = reader->Read(buf.get(), buf->size(), base::Bind(&NeverCalled)); | 274 int rv = reader->Read(buf.get(), buf->size(), base::Bind(&NeverCalled)); |
275 ASSERT_TRUE(rv == net::ERR_IO_PENDING || rv >= 0); | 275 ASSERT_TRUE(rv == net::ERR_IO_PENDING || rv >= 0); |
276 | 276 |
277 // Delete immediately. | 277 // Delete immediately. |
278 // Should not crash; nor should NeverCalled be callback. | 278 // Should not crash; nor should NeverCalled be callback. |
279 reader.reset(); | 279 reader.reset(); |
280 EnsureFileTaskFinished(); | 280 EnsureFileTaskFinished(); |
281 } | 281 } |
282 | 282 |
283 } // namespace content | 283 } // namespace content |
OLD | NEW |