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

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

Issue 10829147: Make MediaFileUtil run on thread pool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comment Created 8 years, 4 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 <map> 5 #include <map>
6 #include <set> 6 #include <set>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); 60 ASSERT_TRUE(data_dir_.CreateUniqueTempDir());
61 file_util_.reset(new DraggedFileUtil()); 61 file_util_.reset(new DraggedFileUtil());
62 62
63 // Register the files/directories of RegularTestCases (with random 63 // Register the files/directories of RegularTestCases (with random
64 // root paths) as dropped files. 64 // root paths) as dropped files.
65 SimulateDropFiles(); 65 SimulateDropFiles();
66 66
67 file_system_context_ = new FileSystemContext( 67 file_system_context_ = new FileSystemContext(
68 base::MessageLoopProxy::current(), 68 base::MessageLoopProxy::current(),
69 base::MessageLoopProxy::current(), 69 base::MessageLoopProxy::current(),
70 base::MessageLoopProxy::current(),
70 make_scoped_refptr(new quota::MockSpecialStoragePolicy()), 71 make_scoped_refptr(new quota::MockSpecialStoragePolicy()),
71 NULL /* quota_manager */, 72 NULL /* quota_manager */,
72 data_dir_.path(), 73 data_dir_.path(),
73 CreateAllowFileAccessOptions()); 74 CreateAllowFileAccessOptions());
74 75
75 // For cross-FileUtil copy/move tests. 76 // For cross-FileUtil copy/move tests.
76 other_file_util_.reset(new LocalFileUtil()); 77 other_file_util_.reset(new LocalFileUtil());
77 other_file_util_helper_.SetUp(file_system_context_, other_file_util_.get()); 78 other_file_util_helper_.SetUp(file_system_context_, other_file_util_.get());
78 } 79 }
79 80
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 EXPECT_EQ(base::PLATFORM_FILE_OK, 505 EXPECT_EQ(base::PLATFORM_FILE_OK,
505 file_util()->Truncate(GetOperationContext().get(), url, 999)); 506 file_util()->Truncate(GetOperationContext().get(), url, 999));
506 ASSERT_EQ(base::PLATFORM_FILE_OK, 507 ASSERT_EQ(base::PLATFORM_FILE_OK,
507 file_util()->GetFileInfo(GetOperationContext().get(), url, 508 file_util()->GetFileInfo(GetOperationContext().get(), url,
508 &info, &platform_path)); 509 &info, &platform_path));
509 EXPECT_EQ(999, info.size); 510 EXPECT_EQ(999, info.size);
510 } 511 }
511 } 512 }
512 513
513 } // namespace fileapi 514 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698