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

Side by Side Diff: content/browser/quota/usage_tracker_unittest.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/run_loop.h" 6 #include "base/run_loop.h"
7 #include "content/public/test/mock_special_storage_policy.h" 7 #include "content/public/test/mock_special_storage_policy.h"
8 #include "net/base/net_util.h" 8 #include "net/base/net_util.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "webkit/browser/quota/usage_tracker.h" 10 #include "storage/browser/quota/usage_tracker.h"
11 11
12 using quota::kQuotaStatusOk; 12 using quota::kQuotaStatusOk;
13 using quota::kStorageTypeTemporary; 13 using quota::kStorageTypeTemporary;
14 using quota::QuotaClient; 14 using quota::QuotaClient;
15 using quota::QuotaClientList; 15 using quota::QuotaClientList;
16 using quota::SpecialStoragePolicy; 16 using quota::SpecialStoragePolicy;
17 using quota::StorageType; 17 using quota::StorageType;
18 using quota::UsageTracker; 18 using quota::UsageTracker;
19 19
20 namespace content { 20 namespace content {
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 327
328 GetGlobalLimitedUsage(&limited_usage); 328 GetGlobalLimitedUsage(&limited_usage);
329 GetGlobalUsage(&total_usage, &unlimited_usage); 329 GetGlobalUsage(&total_usage, &unlimited_usage);
330 EXPECT_EQ(1 + 16, limited_usage); 330 EXPECT_EQ(1 + 16, limited_usage);
331 EXPECT_EQ(1 + 2 + 16 + 32, total_usage); 331 EXPECT_EQ(1 + 2 + 16 + 32, total_usage);
332 EXPECT_EQ(2 + 32, unlimited_usage); 332 EXPECT_EQ(2 + 32, unlimited_usage);
333 } 333 }
334 334
335 335
336 } // namespace content 336 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/quota/storage_monitor_unittest.cc ('k') | content/browser/quota_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698