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

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

Issue 11747020: Cleanup: Remove using statements from webkit/fileapi header files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/fileapi/file_system_context.cc ('k') | webkit/fileapi/file_system_file_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/file_system_dir_url_request_job.h" 5 #include "webkit/fileapi/file_system_dir_url_request_job.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 context.get(), CreateURL(path), NULL)); 134 context.get(), CreateURL(path), NULL));
135 } 135 }
136 136
137 void TruncateFile(const base::StringPiece file_name, int64 length) { 137 void TruncateFile(const base::StringPiece file_name, int64 length) {
138 FilePath path = FilePath().AppendASCII(file_name); 138 FilePath path = FilePath().AppendASCII(file_name);
139 scoped_ptr<FileSystemOperationContext> context(NewOperationContext()); 139 scoped_ptr<FileSystemOperationContext> context(NewOperationContext());
140 ASSERT_EQ(base::PLATFORM_FILE_OK, file_util()->Truncate( 140 ASSERT_EQ(base::PLATFORM_FILE_OK, file_util()->Truncate(
141 context.get(), CreateURL(path), length)); 141 context.get(), CreateURL(path), length));
142 } 142 }
143 143
144 PlatformFileError GetFileInfo(const FilePath& path, 144 base::PlatformFileError GetFileInfo(const FilePath& path,
145 base::PlatformFileInfo* file_info, 145 base::PlatformFileInfo* file_info,
146 FilePath* platform_file_path) { 146 FilePath* platform_file_path) {
147 scoped_ptr<FileSystemOperationContext> context(NewOperationContext()); 147 scoped_ptr<FileSystemOperationContext> context(NewOperationContext());
148 return file_util()->GetFileInfo(context.get(), 148 return file_util()->GetFileInfo(context.get(),
149 CreateURL(path), 149 CreateURL(path),
150 file_info, platform_file_path); 150 file_info, platform_file_path);
151 } 151 }
152 152
153 void VerifyListingEntry(const std::string& entry_line, 153 void VerifyListingEntry(const std::string& entry_line,
154 const std::string& name, 154 const std::string& name,
155 const std::string& url, 155 const std::string& url,
156 bool is_directory, 156 bool is_directory,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 CreateDirectory("foo"); 286 CreateDirectory("foo");
287 TestRequestNoRun(CreateFileSystemURL("foo/")); 287 TestRequestNoRun(CreateFileSystemURL("foo/"));
288 // Run StartAsync() and only StartAsync(). 288 // Run StartAsync() and only StartAsync().
289 MessageLoop::current()->DeleteSoon(FROM_HERE, request_.release()); 289 MessageLoop::current()->DeleteSoon(FROM_HERE, request_.release());
290 MessageLoop::current()->RunUntilIdle(); 290 MessageLoop::current()->RunUntilIdle();
291 // If we get here, success! we didn't crash! 291 // If we get here, success! we didn't crash!
292 } 292 }
293 293
294 } // namespace (anonymous) 294 } // namespace (anonymous)
295 } // namespace fileapi 295 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_context.cc ('k') | webkit/fileapi/file_system_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698