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

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

Issue 2813353003: Move some File API backend unit tests next to the files that 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698