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

Side by Side Diff: webkit/dom_storage/dom_storage_context_unittest.cc

Issue 11228005: Fix mem leaks in DomStorageContextTest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « tools/valgrind/memcheck/suppressions.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "base/scoped_temp_dir.h" 9 #include "base/scoped_temp_dir.h"
10 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 context_->SetSaveSessionStorageOnDisk(); 247 context_->SetSaveSessionStorageOnDisk();
248 248
249 // Now there should be no data. 249 // Now there should be no data.
250 context_->CreateSessionNamespace(kSessionStorageNamespaceId, 250 context_->CreateSessionNamespace(kSessionStorageNamespaceId,
251 kPersistentId); 251 kPersistentId);
252 dom_namespace = context_->GetStorageNamespace(kSessionStorageNamespaceId); 252 dom_namespace = context_->GetStorageNamespace(kSessionStorageNamespaceId);
253 area = dom_namespace->OpenStorageArea(kOrigin); 253 area = dom_namespace->OpenStorageArea(kOrigin);
254 read_value = area->GetItem(kKey); 254 read_value = area->GetItem(kKey);
255 EXPECT_TRUE(read_value.is_null()); 255 EXPECT_TRUE(read_value.is_null());
256 dom_namespace->CloseStorageArea(area); 256 dom_namespace->CloseStorageArea(area);
257 context_->Shutdown();
258 context_ = NULL;
259 MessageLoop::current()->RunAllPending();
257 } 260 }
258 261
259 } // namespace dom_storage 262 } // namespace dom_storage
OLDNEW
« no previous file with comments | « tools/valgrind/memcheck/suppressions.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698