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

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

Issue 678073006: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bogus formatting Created 6 years, 1 month 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 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 <algorithm> 5 #include <algorithm>
6 #include <set> 6 #include <set>
7 #include <sstream> 7 #include <sstream>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 typedef QuotaManager::QuotaTableEntry QuotaTableEntry; 71 typedef QuotaManager::QuotaTableEntry QuotaTableEntry;
72 typedef QuotaManager::QuotaTableEntries QuotaTableEntries; 72 typedef QuotaManager::QuotaTableEntries QuotaTableEntries;
73 typedef QuotaManager::OriginInfoTableEntries OriginInfoTableEntries; 73 typedef QuotaManager::OriginInfoTableEntries OriginInfoTableEntries;
74 74
75 public: 75 public:
76 QuotaManagerTest() 76 QuotaManagerTest()
77 : mock_time_counter_(0), 77 : mock_time_counter_(0),
78 weak_factory_(this) { 78 weak_factory_(this) {
79 } 79 }
80 80
81 virtual void SetUp() { 81 void SetUp() override {
82 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); 82 ASSERT_TRUE(data_dir_.CreateUniqueTempDir());
83 mock_special_storage_policy_ = new MockSpecialStoragePolicy; 83 mock_special_storage_policy_ = new MockSpecialStoragePolicy;
84 ResetQuotaManager(false /* is_incognito */); 84 ResetQuotaManager(false /* is_incognito */);
85 } 85 }
86 86
87 virtual void TearDown() { 87 void TearDown() override {
88 // Make sure the quota manager cleans up correctly. 88 // Make sure the quota manager cleans up correctly.
89 quota_manager_ = NULL; 89 quota_manager_ = NULL;
90 base::RunLoop().RunUntilIdle(); 90 base::RunLoop().RunUntilIdle();
91 } 91 }
92 92
93 protected: 93 protected:
94 void ResetQuotaManager(bool is_incognito) { 94 void ResetQuotaManager(bool is_incognito) {
95 quota_manager_ = new QuotaManager(is_incognito, 95 quota_manager_ = new QuotaManager(is_incognito,
96 data_dir_.path(), 96 data_dir_.path(),
97 MessageLoopProxy::current().get(), 97 MessageLoopProxy::current().get(),
(...skipping 2081 matching lines...) Expand 10 before | Expand all | Expand 10 after
2179 EXPECT_EQ(QuotaManager::kIncognitoDefaultQuotaLimit, quota()); 2179 EXPECT_EQ(QuotaManager::kIncognitoDefaultQuotaLimit, quota());
2180 2180
2181 GetUsageAndQuotaForWebApps(GURL("http://foo.com/"), kTemp); 2181 GetUsageAndQuotaForWebApps(GURL("http://foo.com/"), kTemp);
2182 base::RunLoop().RunUntilIdle(); 2182 base::RunLoop().RunUntilIdle();
2183 EXPECT_EQ(kQuotaStatusOk, status()); 2183 EXPECT_EQ(kQuotaStatusOk, status());
2184 EXPECT_EQ(10, usage()); 2184 EXPECT_EQ(10, usage());
2185 EXPECT_EQ(QuotaManager::kIncognitoDefaultQuotaLimit, quota()); 2185 EXPECT_EQ(QuotaManager::kIncognitoDefaultQuotaLimit, quota());
2186 } 2186 }
2187 2187
2188 } // namespace content 2188 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/quota/quota_backend_impl_unittest.cc ('k') | content/browser/quota/quota_reservation_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698