diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-16 17:35:53 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-16 17:35:53 +0000 |
commit | 7ade66ee96e10961c139f7dca3d5d1a2533d384b (patch) | |
tree | 4e88b1ca1756274613e3d19673d5c916c8b170f3 /content/browser/fileapi/recursive_operation_delegate_unittest.cc | |
parent | 9387be62811e69378718bd7c2e4c8ef837efd0dc (diff) | |
download | chromium_src-7ade66ee96e10961c139f7dca3d5d1a2533d384b.zip chromium_src-7ade66ee96e10961c139f7dca3d5d1a2533d384b.tar.gz chromium_src-7ade66ee96e10961c139f7dca3d5d1a2533d384b.tar.bz2 |
Change fileapi namespace to content for test files that are moved under content/
Note that this temporarily adds some content:: notion in webkit/ (mostly for friend'ing / forward decls)
This also includes some refactoring in some test code (namely obfuscated_file_util_unittest.cc) to work around
cross-namespace friend'ing.
BUG=265769
TEST=build
TBR=mmenke
Review URL: https://codereview.chromium.org/137923003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245232 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/fileapi/recursive_operation_delegate_unittest.cc')
-rw-r--r-- | content/browser/fileapi/recursive_operation_delegate_unittest.cc | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/content/browser/fileapi/recursive_operation_delegate_unittest.cc b/content/browser/fileapi/recursive_operation_delegate_unittest.cc index d3671fe..397041f 100644 --- a/content/browser/fileapi/recursive_operation_delegate_unittest.cc +++ b/content/browser/fileapi/recursive_operation_delegate_unittest.cc @@ -19,10 +19,14 @@ #include "webkit/browser/fileapi/file_system_operation.h" #include "webkit/browser/fileapi/file_system_operation_runner.h" -namespace fileapi { +using fileapi::FileSystemContext; +using fileapi::FileSystemOperationContext; +using fileapi::FileSystemURL; + +namespace content { namespace { -class LoggingRecursiveOperation : public RecursiveOperationDelegate { +class LoggingRecursiveOperation : public fileapi::RecursiveOperationDelegate { public: struct LogEntry { enum Type { @@ -37,7 +41,7 @@ class LoggingRecursiveOperation : public RecursiveOperationDelegate { LoggingRecursiveOperation(FileSystemContext* file_system_context, const FileSystemURL& root, const StatusCallback& callback) - : RecursiveOperationDelegate(file_system_context), + : fileapi::RecursiveOperationDelegate(file_system_context), root_(root), callback_(callback), weak_factory_(this) { @@ -113,7 +117,8 @@ void ReportStatus(base::PlatformFileError* out_error, // To test the Cancel() during operation, calls Cancel() of |operation| // after |counter| times message posting. -void CallCancelLater(RecursiveOperationDelegate* operation, int counter) { +void CallCancelLater(fileapi::RecursiveOperationDelegate* operation, + int counter) { if (counter > 0) { base::MessageLoopProxy::current()->PostTask( FROM_HERE, @@ -145,7 +150,7 @@ class RecursiveOperationDelegateTest : public testing::Test { return make_scoped_ptr(context); } - FileSystemFileUtil* file_util() { + fileapi::FileSystemFileUtil* file_util() { return sandbox_file_system_.file_util(); } @@ -277,4 +282,4 @@ TEST_F(RecursiveOperationDelegateTest, Cancel) { ASSERT_EQ(base::PLATFORM_FILE_ERROR_ABORT, error); } -} // namespace fileapi +} // namespace content |