| Index: content/browser/quota/quota_backend_impl_unittest.cc
|
| diff --git a/content/browser/quota/quota_backend_impl_unittest.cc b/content/browser/quota/quota_backend_impl_unittest.cc
|
| index 201fab093759d2d122d2e22001f92195f268260f..a7d15fa7d1b75b6413c428bbbaebd877f6863c4a 100644
|
| --- a/content/browser/quota/quota_backend_impl_unittest.cc
|
| +++ b/content/browser/quota/quota_backend_impl_unittest.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "webkit/browser/fileapi/quota/quota_backend_impl.h"
|
| +#include "storage/browser/fileapi/quota/quota_backend_impl.h"
|
|
|
| #include <string>
|
|
|
| @@ -11,14 +11,14 @@
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "third_party/leveldatabase/src/helpers/memenv/memenv.h"
|
| #include "third_party/leveldatabase/src/include/leveldb/env.h"
|
| -#include "webkit/browser/fileapi/file_system_usage_cache.h"
|
| -#include "webkit/browser/fileapi/obfuscated_file_util.h"
|
| -#include "webkit/browser/quota/quota_manager_proxy.h"
|
| +#include "storage/browser/fileapi/file_system_usage_cache.h"
|
| +#include "storage/browser/fileapi/obfuscated_file_util.h"
|
| +#include "storage/browser/quota/quota_manager_proxy.h"
|
|
|
| -using fileapi::FileSystemUsageCache;
|
| -using fileapi::ObfuscatedFileUtil;
|
| -using fileapi::QuotaBackendImpl;
|
| -using fileapi::SandboxFileSystemBackendDelegate;
|
| +using storage::FileSystemUsageCache;
|
| +using storage::ObfuscatedFileUtil;
|
| +using storage::QuotaBackendImpl;
|
| +using storage::SandboxFileSystemBackendDelegate;
|
|
|
| namespace content {
|
|
|
| @@ -115,7 +115,7 @@ class QuotaBackendImplTest : public testing::Test {
|
|
|
| protected:
|
| void InitializeForOriginAndType(const GURL& origin,
|
| - fileapi::FileSystemType type) {
|
| + storage::FileSystemType type) {
|
| ASSERT_TRUE(file_util_->InitOriginDatabase(origin, true /* create */));
|
| ASSERT_TRUE(file_util_->origin_database_ != NULL);
|
|
|
| @@ -135,7 +135,7 @@ class QuotaBackendImplTest : public testing::Test {
|
| }
|
|
|
| base::FilePath GetUsageCachePath(const GURL& origin,
|
| - fileapi::FileSystemType type) {
|
| + storage::FileSystemType type) {
|
| base::FilePath path;
|
| base::File::Error error =
|
| backend_->GetUsageCachePath(origin, type, &path);
|
| @@ -157,7 +157,7 @@ class QuotaBackendImplTest : public testing::Test {
|
| };
|
|
|
| TEST_F(QuotaBackendImplTest, ReserveQuota_Basic) {
|
| - fileapi::FileSystemType type = fileapi::kFileSystemTypeTemporary;
|
| + storage::FileSystemType type = storage::kFileSystemTypeTemporary;
|
| InitializeForOriginAndType(GURL(kOrigin), type);
|
| quota_manager_proxy_->set_quota(10000);
|
|
|
| @@ -183,7 +183,7 @@ TEST_F(QuotaBackendImplTest, ReserveQuota_Basic) {
|
| }
|
|
|
| TEST_F(QuotaBackendImplTest, ReserveQuota_NoSpace) {
|
| - fileapi::FileSystemType type = fileapi::kFileSystemTypeTemporary;
|
| + storage::FileSystemType type = storage::kFileSystemTypeTemporary;
|
| InitializeForOriginAndType(GURL(kOrigin), type);
|
| quota_manager_proxy_->set_quota(100);
|
|
|
| @@ -201,7 +201,7 @@ TEST_F(QuotaBackendImplTest, ReserveQuota_NoSpace) {
|
| }
|
|
|
| TEST_F(QuotaBackendImplTest, ReserveQuota_Revert) {
|
| - fileapi::FileSystemType type = fileapi::kFileSystemTypeTemporary;
|
| + storage::FileSystemType type = storage::kFileSystemTypeTemporary;
|
| InitializeForOriginAndType(GURL(kOrigin), type);
|
| quota_manager_proxy_->set_quota(10000);
|
|
|
| @@ -219,7 +219,7 @@ TEST_F(QuotaBackendImplTest, ReserveQuota_Revert) {
|
| }
|
|
|
| TEST_F(QuotaBackendImplTest, ReleaseReservedQuota) {
|
| - fileapi::FileSystemType type = fileapi::kFileSystemTypeTemporary;
|
| + storage::FileSystemType type = storage::kFileSystemTypeTemporary;
|
| InitializeForOriginAndType(GURL(kOrigin), type);
|
| const int64 kInitialUsage = 2000;
|
| quota_manager_proxy_->set_usage(kInitialUsage);
|
| @@ -233,7 +233,7 @@ TEST_F(QuotaBackendImplTest, ReleaseReservedQuota) {
|
| }
|
|
|
| TEST_F(QuotaBackendImplTest, CommitQuotaUsage) {
|
| - fileapi::FileSystemType type = fileapi::kFileSystemTypeTemporary;
|
| + storage::FileSystemType type = storage::kFileSystemTypeTemporary;
|
| InitializeForOriginAndType(GURL(kOrigin), type);
|
| quota_manager_proxy_->set_quota(10000);
|
| base::FilePath path = GetUsageCachePath(GURL(kOrigin), type);
|
| @@ -256,7 +256,7 @@ TEST_F(QuotaBackendImplTest, CommitQuotaUsage) {
|
| }
|
|
|
| TEST_F(QuotaBackendImplTest, DirtyCount) {
|
| - fileapi::FileSystemType type = fileapi::kFileSystemTypeTemporary;
|
| + storage::FileSystemType type = storage::kFileSystemTypeTemporary;
|
| InitializeForOriginAndType(GURL(kOrigin), type);
|
| base::FilePath path = GetUsageCachePath(GURL(kOrigin), type);
|
|
|
|
|