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

Unified Diff: webkit/chromeos/fileapi/memory_file_util_unittest.cc

Issue 9007006: Delete stream after the operation is done in MemoryFileUtil (fix for r115094) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/chromeos/fileapi/memory_file_util_unittest.cc
diff --git a/webkit/chromeos/fileapi/memory_file_util_unittest.cc b/webkit/chromeos/fileapi/memory_file_util_unittest.cc
index 2853b4d989e03ae170f7056b8ef748394831dfe4..8011de244757cc80ab06a3d6ac711c327f127ba6 100644
--- a/webkit/chromeos/fileapi/memory_file_util_unittest.cc
+++ b/webkit/chromeos/fileapi/memory_file_util_unittest.cc
@@ -216,12 +216,13 @@ class MemoryFileUtilTest : public testing::Test {
int length,
PlatformFileError result,
AsyncFileStream* stream) {
+ DCHECK(status_map_.find(request_id) == status_map_.end());
CallbackStatus status;
status.type = CALLBACK_TYPE_OPEN;
status.result = result;
+ status.file_stream = stream;
status_map_[request_id] = status;
stream->Write(data, length, GetReadWriteCallback(GetNextRequestId()));
- delete stream;
}
scoped_ptr<MemoryFileUtil> file_util_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698