| 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/files/scoped_temp_dir.h" |    7 #include "base/files/scoped_temp_dir.h" | 
|    8 #include "base/message_loop.h" |    8 #include "base/message_loop/message_loop.h" | 
|    9 #include "base/message_loop/message_loop_proxy.h" |    9 #include "base/message_loop/message_loop_proxy.h" | 
|   10 #include "base/strings/utf_string_conversions.h" |   10 #include "base/strings/utf_string_conversions.h" | 
|   11 #include "base/threading/sequenced_worker_pool.h" |   11 #include "base/threading/sequenced_worker_pool.h" | 
|   12 #include "base/time/time.h" |   12 #include "base/time/time.h" | 
|   13 #include "testing/gtest/include/gtest/gtest.h" |   13 #include "testing/gtest/include/gtest/gtest.h" | 
|   14 #include "webkit/browser/dom_storage/dom_storage_area.h" |   14 #include "webkit/browser/dom_storage/dom_storage_area.h" | 
|   15 #include "webkit/browser/dom_storage/dom_storage_context.h" |   15 #include "webkit/browser/dom_storage/dom_storage_context.h" | 
|   16 #include "webkit/browser/dom_storage/dom_storage_namespace.h" |   16 #include "webkit/browser/dom_storage/dom_storage_namespace.h" | 
|   17 #include "webkit/browser/dom_storage/dom_storage_task_runner.h" |   17 #include "webkit/browser/dom_storage/dom_storage_task_runner.h" | 
|   18 #include "webkit/browser/quota/mock_special_storage_policy.h" |   18 #include "webkit/browser/quota/mock_special_storage_policy.h" | 
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  251   area = dom_namespace->OpenStorageArea(kOrigin); |  251   area = dom_namespace->OpenStorageArea(kOrigin); | 
|  252   read_value = area->GetItem(kKey); |  252   read_value = area->GetItem(kKey); | 
|  253   EXPECT_TRUE(read_value.is_null()); |  253   EXPECT_TRUE(read_value.is_null()); | 
|  254   dom_namespace->CloseStorageArea(area); |  254   dom_namespace->CloseStorageArea(area); | 
|  255   context_->Shutdown(); |  255   context_->Shutdown(); | 
|  256   context_ = NULL; |  256   context_ = NULL; | 
|  257   base::MessageLoop::current()->RunUntilIdle(); |  257   base::MessageLoop::current()->RunUntilIdle(); | 
|  258 } |  258 } | 
|  259  |  259  | 
|  260 }  // namespace dom_storage |  260 }  // namespace dom_storage | 
| OLD | NEW |