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

Side by Side Diff: storage/browser/fileapi/local_file_stream_reader_unittest.cc

Issue 2775383003: Move some fileapi tests next to the files they cover. (Closed)
Patch Set: Created 3 years, 8 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 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
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
OLDNEW
« no previous file with comments | « storage/browser/fileapi/isolated_context_unittest.cc ('k') | storage/browser/fileapi/local_file_stream_writer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698