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

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

Issue 16010007: Move webkit/quota files to webkit/browser/quota or webkit/common/quota (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | « webkit/dom_storage/dom_storage_context.cc ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | 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/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "webkit/browser/quota/mock_special_storage_policy.h"
14 #include "webkit/dom_storage/dom_storage_area.h" 15 #include "webkit/dom_storage/dom_storage_area.h"
15 #include "webkit/dom_storage/dom_storage_context.h" 16 #include "webkit/dom_storage/dom_storage_context.h"
16 #include "webkit/dom_storage/dom_storage_namespace.h" 17 #include "webkit/dom_storage/dom_storage_namespace.h"
17 #include "webkit/dom_storage/dom_storage_task_runner.h" 18 #include "webkit/dom_storage/dom_storage_task_runner.h"
18 #include "webkit/dom_storage/dom_storage_types.h" 19 #include "webkit/dom_storage/dom_storage_types.h"
19 #include "webkit/quota/mock_special_storage_policy.h"
20 20
21 namespace dom_storage { 21 namespace dom_storage {
22 22
23 class DomStorageContextTest : public testing::Test { 23 class DomStorageContextTest : public testing::Test {
24 public: 24 public:
25 DomStorageContextTest() 25 DomStorageContextTest()
26 : kOrigin(GURL("http://dom_storage/")), 26 : kOrigin(GURL("http://dom_storage/")),
27 kKey(ASCIIToUTF16("key")), 27 kKey(ASCIIToUTF16("key")),
28 kValue(ASCIIToUTF16("value")), 28 kValue(ASCIIToUTF16("value")),
29 kDontIncludeFileInfo(false), 29 kDontIncludeFileInfo(false),
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 area = dom_namespace->OpenStorageArea(kOrigin); 249 area = dom_namespace->OpenStorageArea(kOrigin);
250 read_value = area->GetItem(kKey); 250 read_value = area->GetItem(kKey);
251 EXPECT_TRUE(read_value.is_null()); 251 EXPECT_TRUE(read_value.is_null());
252 dom_namespace->CloseStorageArea(area); 252 dom_namespace->CloseStorageArea(area);
253 context_->Shutdown(); 253 context_->Shutdown();
254 context_ = NULL; 254 context_ = NULL;
255 base::MessageLoop::current()->RunUntilIdle(); 255 base::MessageLoop::current()->RunUntilIdle();
256 } 256 }
257 257
258 } // namespace dom_storage 258 } // namespace dom_storage
OLDNEW
« no previous file with comments | « webkit/dom_storage/dom_storage_context.cc ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698