OLD | NEW |
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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // Not needed for our tests. | 133 // Not needed for our tests. |
134 void NotifyOriginInUse(const GURL& origin) override {} | 134 void NotifyOriginInUse(const GURL& origin) override {} |
135 void NotifyOriginNoLongerInUse(const GURL& origin) override {} | 135 void NotifyOriginNoLongerInUse(const GURL& origin) override {} |
136 void SetUsageCacheEnabled(storage::QuotaClient::ID client_id, | 136 void SetUsageCacheEnabled(storage::QuotaClient::ID client_id, |
137 const GURL& origin, | 137 const GURL& origin, |
138 storage::StorageType type, | 138 storage::StorageType type, |
139 bool enabled) override {} | 139 bool enabled) override {} |
140 void GetUsageAndQuota(base::SequencedTaskRunner* original_task_runner, | 140 void GetUsageAndQuota(base::SequencedTaskRunner* original_task_runner, |
141 const GURL& origin, | 141 const GURL& origin, |
142 storage::StorageType type, | 142 storage::StorageType type, |
143 const GetUsageAndQuotaCallback& callback) override {} | 143 const UsageAndQuotaCallback& callback) override {} |
144 | 144 |
145 void SimulateQuotaManagerDestroyed() { | 145 void SimulateQuotaManagerDestroyed() { |
146 if (registered_client_) { | 146 if (registered_client_) { |
147 registered_client_->OnQuotaManagerDestroyed(); | 147 registered_client_->OnQuotaManagerDestroyed(); |
148 registered_client_ = NULL; | 148 registered_client_ = NULL; |
149 } | 149 } |
150 } | 150 } |
151 | 151 |
152 bool WasAccessNotified(const GURL& origin) { | 152 bool WasAccessNotified(const GURL& origin) { |
153 return accesses_[origin] != 0; | 153 return accesses_[origin] != 0; |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 | 846 |
847 TEST(DatabaseTrackerTest, EmptyDatabaseNameIsValid) { | 847 TEST(DatabaseTrackerTest, EmptyDatabaseNameIsValid) { |
848 DatabaseTracker_TestHelper_Test::EmptyDatabaseNameIsValid(); | 848 DatabaseTracker_TestHelper_Test::EmptyDatabaseNameIsValid(); |
849 } | 849 } |
850 | 850 |
851 TEST(DatabaseTrackerTest, HandleSqliteError) { | 851 TEST(DatabaseTrackerTest, HandleSqliteError) { |
852 DatabaseTracker_TestHelper_Test::HandleSqliteError(); | 852 DatabaseTracker_TestHelper_Test::HandleSqliteError(); |
853 } | 853 } |
854 | 854 |
855 } // namespace content | 855 } // namespace content |
OLD | NEW |