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

Side by Side Diff: webkit/browser/quota/quota_manager_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/browser/quota/quota_manager.cc ('k') | webkit/browser/quota/quota_task.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 <set> 5 #include <set>
6 #include <sstream> 6 #include <sstream>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/message_loop_proxy.h" 15 #include "base/message_loop_proxy.h"
16 #include "base/stl_util.h" 16 #include "base/stl_util.h"
17 #include "base/sys_info.h" 17 #include "base/sys_info.h"
18 #include "base/time.h" 18 #include "base/time.h"
19 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 #include "webkit/quota/mock_special_storage_policy.h" 21 #include "webkit/browser/quota/mock_special_storage_policy.h"
22 #include "webkit/quota/mock_storage_client.h" 22 #include "webkit/browser/quota/mock_storage_client.h"
23 #include "webkit/quota/quota_database.h" 23 #include "webkit/browser/quota/quota_database.h"
24 #include "webkit/quota/quota_manager.h" 24 #include "webkit/browser/quota/quota_manager.h"
25 25
26 using base::MessageLoopProxy; 26 using base::MessageLoopProxy;
27 27
28 namespace quota { 28 namespace quota {
29 29
30 namespace { 30 namespace {
31 31
32 // For shorter names. 32 // For shorter names.
33 const StorageType kTemp = kStorageTypeTemporary; 33 const StorageType kTemp = kStorageTypeTemporary;
34 const StorageType kPerm = kStorageTypePersistent; 34 const StorageType kPerm = kStorageTypePersistent;
(...skipping 2121 matching lines...) Expand 10 before | Expand all | Expand 10 after
2156 EXPECT_EQ(QuotaManager::kIncognitoDefaultQuotaLimit, quota()); 2156 EXPECT_EQ(QuotaManager::kIncognitoDefaultQuotaLimit, quota());
2157 2157
2158 GetUsageAndQuotaForWebApps(GURL("http://foo.com/"), kTemp); 2158 GetUsageAndQuotaForWebApps(GURL("http://foo.com/"), kTemp);
2159 base::MessageLoop::current()->RunUntilIdle(); 2159 base::MessageLoop::current()->RunUntilIdle();
2160 EXPECT_EQ(kQuotaStatusOk, status()); 2160 EXPECT_EQ(kQuotaStatusOk, status());
2161 EXPECT_EQ(10, usage()); 2161 EXPECT_EQ(10, usage());
2162 EXPECT_EQ(QuotaManager::kIncognitoDefaultQuotaLimit, quota()); 2162 EXPECT_EQ(QuotaManager::kIncognitoDefaultQuotaLimit, quota());
2163 } 2163 }
2164 2164
2165 } // namespace quota 2165 } // namespace quota
OLDNEW
« no previous file with comments | « webkit/browser/quota/quota_manager.cc ('k') | webkit/browser/quota/quota_task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698