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

Unified Diff: webkit/fileapi/file_system_operation_unittest.cc

Issue 6603034: Stop returning the true root path of each filesystem from openFileSystem.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « webkit/fileapi/file_system_operation_context.cc ('k') | webkit/fileapi/file_system_path_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_operation_unittest.cc
===================================================================
--- webkit/fileapi/file_system_operation_unittest.cc (revision 79142)
+++ webkit/fileapi/file_system_operation_unittest.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/scoped_temp_dir.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/fileapi/file_system_callback_dispatcher.h"
+#include "webkit/fileapi/file_system_file_util.h"
#include "webkit/fileapi/file_system_operation.h"
namespace fileapi {
@@ -97,10 +98,16 @@
};
FileSystemOperation* FileSystemOperationTest::operation() {
- return new FileSystemOperation(
+ FileSystemOperation* operation = new FileSystemOperation(
new MockDispatcher(this),
base::MessageLoopProxy::CreateForCurrentThread(),
- NULL);
+ NULL,
+ FileSystemFileUtil::GetInstance());
+ operation->file_system_operation_context()->set_src_type(
+ kFileSystemTypeTemporary);
+ operation->file_system_operation_context()->set_dest_type(
+ kFileSystemTypeTemporary);
+ return operation;
}
TEST_F(FileSystemOperationTest, TestMoveFailureSrcDoesntExist) {
« no previous file with comments | « webkit/fileapi/file_system_operation_context.cc ('k') | webkit/fileapi/file_system_path_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698