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

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

Issue 345673002: Fully qualify all references to fileapi::FileSystemType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FileSystemType instances I missed Created 6 years, 6 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
« no previous file with comments | « content/public/test/sandbox_file_system_test_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_file_system_backend.cc
diff --git a/content/public/test/test_file_system_backend.cc b/content/public/test/test_file_system_backend.cc
index 8c37a9e525597de50b138525da269c82a50ff50b..aa14959cbb6e3885f0a6dae656b8a3bc05b31c0c 100644
--- a/content/public/test/test_file_system_backend.cc
+++ b/content/public/test/test_file_system_backend.cc
@@ -26,7 +26,6 @@
using fileapi::FileSystemContext;
using fileapi::FileSystemOperation;
using fileapi::FileSystemOperationContext;
-using fileapi::FileSystemType;
using fileapi::FileSystemURL;
namespace content {
@@ -71,27 +70,27 @@ class TestFileSystemBackend::QuotaUtil
FileSystemContext* context,
quota::QuotaManagerProxy* proxy,
const GURL& origin_url,
- FileSystemType type) OVERRIDE {
+ fileapi::FileSystemType type) OVERRIDE {
NOTREACHED();
return base::File::FILE_OK;
}
virtual scoped_refptr<fileapi::QuotaReservation>
- CreateQuotaReservationOnFileTaskRunner(
- const GURL& origin_url,
- FileSystemType type) OVERRIDE {
+ CreateQuotaReservationOnFileTaskRunner(
+ const GURL& origin_url,
+ fileapi::FileSystemType type) OVERRIDE {
NOTREACHED();
return scoped_refptr<fileapi::QuotaReservation>();
}
virtual void GetOriginsForTypeOnFileTaskRunner(
- FileSystemType type,
+ fileapi::FileSystemType type,
std::set<GURL>* origins) OVERRIDE {
NOTREACHED();
}
virtual void GetOriginsForHostOnFileTaskRunner(
- FileSystemType type,
+ fileapi::FileSystemType type,
const std::string& host,
std::set<GURL>* origins) OVERRIDE {
NOTREACHED();
@@ -100,43 +99,43 @@ class TestFileSystemBackend::QuotaUtil
virtual int64 GetOriginUsageOnFileTaskRunner(
FileSystemContext* context,
const GURL& origin_url,
- FileSystemType type) OVERRIDE {
+ fileapi::FileSystemType type) OVERRIDE {
return usage_;
}
virtual void AddFileUpdateObserver(
- FileSystemType type,
+ fileapi::FileSystemType type,
FileUpdateObserver* observer,
base::SequencedTaskRunner* task_runner) OVERRIDE {
NOTIMPLEMENTED();
}
virtual void AddFileChangeObserver(
- FileSystemType type,
+ fileapi::FileSystemType type,
fileapi::FileChangeObserver* observer,
base::SequencedTaskRunner* task_runner) OVERRIDE {
change_observers_ = change_observers_.AddObserver(observer, task_runner);
}
virtual void AddFileAccessObserver(
- FileSystemType type,
+ fileapi::FileSystemType type,
fileapi::FileAccessObserver* observer,
base::SequencedTaskRunner* task_runner) OVERRIDE {
NOTIMPLEMENTED();
}
virtual const fileapi::UpdateObserverList* GetUpdateObservers(
- FileSystemType type) const OVERRIDE {
+ fileapi::FileSystemType type) const OVERRIDE {
return &update_observers_;
}
virtual const fileapi::ChangeObserverList* GetChangeObservers(
- FileSystemType type) const OVERRIDE {
+ fileapi::FileSystemType type) const OVERRIDE {
return &change_observers_;
}
virtual const fileapi::AccessObserverList* GetAccessObservers(
- FileSystemType type) const OVERRIDE {
+ fileapi::FileSystemType type) const OVERRIDE {
return NULL;
}
@@ -171,7 +170,7 @@ TestFileSystemBackend::TestFileSystemBackend(
TestFileSystemBackend::~TestFileSystemBackend() {
}
-bool TestFileSystemBackend::CanHandleType(FileSystemType type) const {
+bool TestFileSystemBackend::CanHandleType(fileapi::FileSystemType type) const {
return (type == fileapi::kFileSystemTypeTest);
}
@@ -187,13 +186,14 @@ void TestFileSystemBackend::ResolveURL(const FileSystemURL& url,
}
fileapi::AsyncFileUtil* TestFileSystemBackend::GetAsyncFileUtil(
- FileSystemType type) {
+ fileapi::FileSystemType type) {
return file_util_.get();
}
fileapi::CopyOrMoveFileValidatorFactory*
TestFileSystemBackend::GetCopyOrMoveFileValidatorFactory(
- FileSystemType type, base::File::Error* error_code) {
+ fileapi::FileSystemType type,
+ base::File::Error* error_code) {
DCHECK(error_code);
*error_code = base::File::FILE_OK;
if (require_copy_or_move_validator_) {
@@ -253,7 +253,7 @@ fileapi::FileSystemQuotaUtil* TestFileSystemBackend::GetQuotaUtil() {
}
const fileapi::UpdateObserverList* TestFileSystemBackend::GetUpdateObservers(
- FileSystemType type) const {
+ fileapi::FileSystemType type) const {
return quota_util_->GetUpdateObservers(type);
}
« no previous file with comments | « content/public/test/sandbox_file_system_test_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698