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

Unified Diff: content/public/test/sandbox_file_system_test_helper.cc

Issue 137923003: Change fileapi namespace to content for files that are moved under content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/public/test/sandbox_file_system_test_helper.cc
diff --git a/content/public/test/sandbox_file_system_test_helper.cc b/content/public/test/sandbox_file_system_test_helper.cc
index d3176b270c483896cb9c6ce33369123807bd10e5..1e294b785fb019abd15e98d4de3866cb70e4baf9 100644
--- a/content/public/test/sandbox_file_system_test_helper.cc
+++ b/content/public/test/sandbox_file_system_test_helper.cc
@@ -19,7 +19,13 @@
#include "webkit/browser/quota/mock_special_storage_policy.h"
#include "webkit/common/fileapi/file_system_util.h"
-namespace fileapi {
+using fileapi::FileSystemContext;
+using fileapi::FileSystemOperationContext;
+using fileapi::FileSystemOperationRunner;
+using fileapi::FileSystemType;
+using fileapi::FileSystemURL;
+
+namespace content {
SandboxFileSystemTestHelper::SandboxFileSystemTestHelper(
const GURL& origin, FileSystemType type)
@@ -28,7 +34,7 @@ SandboxFileSystemTestHelper::SandboxFileSystemTestHelper(
SandboxFileSystemTestHelper::SandboxFileSystemTestHelper()
: origin_(GURL("http://foo.com")),
- type_(kFileSystemTypeTemporary),
+ type_(fileapi::kFileSystemTypeTemporary),
file_util_(NULL) {
}
@@ -99,7 +105,7 @@ int64 SandboxFileSystemTestHelper::ComputeCurrentOriginUsage() {
usage_cache()->CloseCacheFiles();
int64 size = base::ComputeDirectorySize(GetOriginRootPath());
if (base::PathExists(GetUsageCachePath()))
- size -= FileSystemUsageCache::kUsageFileSize;
+ size -= fileapi::FileSystemUsageCache::kUsageFileSize;
return size;
}
@@ -124,12 +130,12 @@ SandboxFileSystemTestHelper::NewOperationContext() {
}
void SandboxFileSystemTestHelper::AddFileChangeObserver(
- FileChangeObserver* observer) {
+ fileapi::FileChangeObserver* observer) {
file_system_context_->sandbox_backend()->GetQuotaUtil()->
AddFileChangeObserver(type_, observer, NULL);
}
-FileSystemUsageCache* SandboxFileSystemTestHelper::usage_cache() {
+fileapi::FileSystemUsageCache* SandboxFileSystemTestHelper::usage_cache() {
return file_system_context()->sandbox_delegate()->usage_cache();
}
@@ -150,4 +156,4 @@ void SandboxFileSystemTestHelper::SetUpFileSystem() {
usage_cache()->UpdateUsage(usage_cache_path, 0);
}
-} // namespace fileapi
+} // namespace content
« no previous file with comments | « content/public/test/sandbox_file_system_test_helper.h ('k') | content/public/test/test_file_system_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698