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

Side by Side Diff: content/browser/dom_storage/dom_storage_context_impl_unittest.cc

Issue 2368913003: Populate storage_unittests target. (Closed)
Patch Set: Removed unnecessary include from storage/browser/blob/blob_storage_context_unittest.cc. Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/files/file_util.h" 6 #include "base/files/file_util.h"
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/threading/sequenced_worker_pool.h" 12 #include "base/threading/sequenced_worker_pool.h"
13 #include "base/threading/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "content/browser/dom_storage/dom_storage_area.h" 15 #include "content/browser/dom_storage/dom_storage_area.h"
16 #include "content/browser/dom_storage/dom_storage_context_impl.h" 16 #include "content/browser/dom_storage/dom_storage_context_impl.h"
17 #include "content/browser/dom_storage/dom_storage_namespace.h" 17 #include "content/browser/dom_storage/dom_storage_namespace.h"
18 #include "content/browser/dom_storage/dom_storage_task_runner.h" 18 #include "content/browser/dom_storage/dom_storage_task_runner.h"
19 #include "content/public/browser/local_storage_usage_info.h" 19 #include "content/public/browser/local_storage_usage_info.h"
20 #include "content/public/browser/session_storage_usage_info.h" 20 #include "content/public/browser/session_storage_usage_info.h"
21 #include "content/public/test/mock_special_storage_policy.h" 21 #include "storage/browser/test/mock_special_storage_policy.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 using base::ASCIIToUTF16; 24 using base::ASCIIToUTF16;
25 25
26 namespace content { 26 namespace content {
27 27
28 class DOMStorageContextImplTest : public testing::Test { 28 class DOMStorageContextImplTest : public testing::Test {
29 public: 29 public:
30 DOMStorageContextImplTest() 30 DOMStorageContextImplTest()
31 : kOrigin(GURL("http://dom_storage/")), 31 : kOrigin(GURL("http://dom_storage/")),
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 area2->CommitChanges(area2->commit_batch_.get()); 291 area2->CommitChanges(area2->commit_batch_.get());
292 area2->commit_batch_ = nullptr; 292 area2->commit_batch_ = nullptr;
293 293
294 // PURGE_AGGRESSIVE clears the cache in the open area. 294 // PURGE_AGGRESSIVE clears the cache in the open area.
295 EXPECT_NE(0u, dom_namespace->GetUsageStatistics().total_cache_size); 295 EXPECT_NE(0u, dom_namespace->GetUsageStatistics().total_cache_size);
296 context_->PurgeMemory(DOMStorageContextImpl::PURGE_AGGRESSIVE); 296 context_->PurgeMemory(DOMStorageContextImpl::PURGE_AGGRESSIVE);
297 EXPECT_EQ(0u, dom_namespace->GetUsageStatistics().total_cache_size); 297 EXPECT_EQ(0u, dom_namespace->GetUsageStatistics().total_cache_size);
298 } 298 }
299 299
300 } // namespace content 300 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/database_tracker_unittest.cc ('k') | content/browser/fileapi/copy_or_move_file_validator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698