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

Side by Side Diff: content/browser/fileapi/dragged_file_util_unittest.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <map> 7 #include <map>
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 continue; 244 continue;
245 } 245 }
246 base::FilePath relative = GetRelativeVirtualPath(root2, url2); 246 base::FilePath relative = GetRelativeVirtualPath(root2, url2);
247 EXPECT_TRUE(file_set1.find(relative) != file_set1.end()); 247 EXPECT_TRUE(file_set1.find(relative) != file_set1.end());
248 VerifyFilesHaveSameContent(url1, url2); 248 VerifyFilesHaveSameContent(url1, url2);
249 } 249 }
250 } 250 }
251 } 251 }
252 252
253 scoped_ptr<storage::FileSystemOperationContext> GetOperationContext() { 253 scoped_ptr<storage::FileSystemOperationContext> GetOperationContext() {
254 return make_scoped_ptr(new storage::FileSystemOperationContext( 254 return make_scoped_ptr(
255 file_system_context())).Pass(); 255 new storage::FileSystemOperationContext(file_system_context()));
256 } 256 }
257 257
258 258
259 private: 259 private:
260 void SimulateDropFiles() { 260 void SimulateDropFiles() {
261 size_t root_path_index = 0; 261 size_t root_path_index = 0;
262 262
263 storage::IsolatedContext::FileInfoSet toplevels; 263 storage::IsolatedContext::FileInfoSet toplevels;
264 for (size_t i = 0; i < kRegularFileSystemTestCaseSize; ++i) { 264 for (size_t i = 0; i < kRegularFileSystemTestCaseSize; ++i) {
265 const FileSystemTestCaseRecord& test_case = 265 const FileSystemTestCaseRecord& test_case =
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 EXPECT_EQ(base::File::FILE_OK, 546 EXPECT_EQ(base::File::FILE_OK,
547 file_util()->Truncate(GetOperationContext().get(), url, 999)); 547 file_util()->Truncate(GetOperationContext().get(), url, 999));
548 ASSERT_EQ(base::File::FILE_OK, 548 ASSERT_EQ(base::File::FILE_OK,
549 file_util()->GetFileInfo(GetOperationContext().get(), url, 549 file_util()->GetFileInfo(GetOperationContext().get(), url,
550 &info, &platform_path)); 550 &info, &platform_path));
551 EXPECT_EQ(999, info.size); 551 EXPECT_EQ(999, info.size);
552 } 552 }
553 } 553 }
554 554
555 } // namespace content 555 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698