OLD | NEW |
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 Loading... |
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 |
OLD | NEW |