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

Side by Side Diff: webkit/fileapi/local_file_system_operation_unittest.cc

Issue 10870040: Rename FileSystemOperationInterface to FileSystemOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/fileapi/local_file_system_operation.h" 5 #include "webkit/fileapi/local_file_system_operation.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 return url.path(); 255 return url.path();
256 } 256 }
257 257
258 FilePath CreateUniqueDir() { 258 FilePath CreateUniqueDir() {
259 return CreateUniqueDirInDir(FilePath()); 259 return CreateUniqueDirInDir(FilePath());
260 } 260 }
261 261
262 LocalFileSystemTestOriginHelper test_helper_; 262 LocalFileSystemTestOriginHelper test_helper_;
263 263
264 // Callbacks for recording test results. 264 // Callbacks for recording test results.
265 FileSystemOperationInterface::StatusCallback RecordStatusCallback() { 265 FileSystemOperation::StatusCallback RecordStatusCallback() {
266 return base::Bind(&LocalFileSystemOperationTest::DidFinish, AsWeakPtr()); 266 return base::Bind(&LocalFileSystemOperationTest::DidFinish, AsWeakPtr());
267 } 267 }
268 268
269 FileSystemOperationInterface::ReadDirectoryCallback 269 FileSystemOperation::ReadDirectoryCallback
270 RecordReadDirectoryCallback() { 270 RecordReadDirectoryCallback() {
271 return base::Bind(&LocalFileSystemOperationTest::DidReadDirectory, 271 return base::Bind(&LocalFileSystemOperationTest::DidReadDirectory,
272 AsWeakPtr()); 272 AsWeakPtr());
273 } 273 }
274 274
275 FileSystemOperationInterface::GetMetadataCallback RecordMetadataCallback() { 275 FileSystemOperation::GetMetadataCallback RecordMetadataCallback() {
276 return base::Bind(&LocalFileSystemOperationTest::DidGetMetadata, 276 return base::Bind(&LocalFileSystemOperationTest::DidGetMetadata,
277 AsWeakPtr()); 277 AsWeakPtr());
278 } 278 }
279 279
280 FileSystemOperationInterface::SnapshotFileCallback 280 FileSystemOperation::SnapshotFileCallback RecordSnapshotFileCallback() {
281 RecordSnapshotFileCallback() {
282 return base::Bind(&LocalFileSystemOperationTest::DidCreateSnapshotFile, 281 return base::Bind(&LocalFileSystemOperationTest::DidCreateSnapshotFile,
283 AsWeakPtr()); 282 AsWeakPtr());
284 } 283 }
285 284
286 void DidFinish(base::PlatformFileError status) { 285 void DidFinish(base::PlatformFileError status) {
287 status_ = status; 286 status_ = status;
288 } 287 }
289 288
290 void DidReadDirectory( 289 void DidReadDirectory(
291 base::PlatformFileError status, 290 base::PlatformFileError status,
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 EXPECT_EQ(base::PLATFORM_FILE_OK, status()); 1146 EXPECT_EQ(base::PLATFORM_FILE_OK, status());
1148 EXPECT_FALSE(info().is_directory); 1147 EXPECT_FALSE(info().is_directory);
1149 EXPECT_EQ(PlatformPath(file_path), path()); 1148 EXPECT_EQ(PlatformPath(file_path), path());
1150 1149
1151 // The FileSystemOpration implementation does not create a 1150 // The FileSystemOpration implementation does not create a
1152 // shareable file reference. 1151 // shareable file reference.
1153 EXPECT_EQ(NULL, shareable_file_ref()); 1152 EXPECT_EQ(NULL, shareable_file_ref());
1154 } 1153 }
1155 1154
1156 } // namespace fileapi 1155 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/local_file_system_operation.h ('k') | webkit/fileapi/local_file_system_operation_write_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698