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

Unified Diff: webkit/browser/fileapi/file_system_context_unittest.cc

Issue 16155009: Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
Index: webkit/browser/fileapi/file_system_context_unittest.cc
diff --git a/webkit/browser/fileapi/file_system_context_unittest.cc b/webkit/browser/fileapi/file_system_context_unittest.cc
index c699fd2adad9c0e738ee85171ec1269fa1f1874f..d6ac71a764a72d445e5fbb51089a0f71b6e36e97 100644
--- a/webkit/browser/fileapi/file_system_context_unittest.cc
+++ b/webkit/browser/fileapi/file_system_context_unittest.cc
@@ -49,25 +49,24 @@ class FileSystemContextTest : public testing::Test {
storage_policy_ = new quota::MockSpecialStoragePolicy();
- mock_quota_manager_ = new quota::MockQuotaManager(
- false /* is_incognito */,
- data_dir_.path(),
- base::MessageLoopProxy::current(),
- base::MessageLoopProxy::current(),
- storage_policy_);
+ mock_quota_manager_ =
+ new quota::MockQuotaManager(false /* is_incognito */,
+ data_dir_.path(),
+ base::MessageLoopProxy::current(),
+ base::MessageLoopProxy::current(),
+ storage_policy_.get());
}
protected:
FileSystemContext* CreateFileSystemContextForTest(
ExternalMountPoints* external_mount_points) {
- return new FileSystemContext(
- FileSystemTaskRunners::CreateMockTaskRunners(),
- external_mount_points,
- storage_policy_,
- mock_quota_manager_->proxy(),
- ScopedVector<FileSystemMountPointProvider>(),
- data_dir_.path(),
- CreateAllowFileAccessOptions());
+ return new FileSystemContext(FileSystemTaskRunners::CreateMockTaskRunners(),
+ external_mount_points,
+ storage_policy_.get(),
+ mock_quota_manager_->proxy(),
+ ScopedVector<FileSystemMountPointProvider>(),
+ data_dir_.path(),
+ CreateAllowFileAccessOptions());
}
// Verifies a *valid* filesystem url has expected values.
@@ -186,7 +185,7 @@ TEST_F(FileSystemContextTest, CrackFileSystemURL) {
scoped_refptr<ExternalMountPoints> external_mount_points(
ExternalMountPoints::CreateRefCounted());
scoped_refptr<FileSystemContext> file_system_context(
- CreateFileSystemContextForTest(external_mount_points));
+ CreateFileSystemContextForTest(external_mount_points.get()));
// Register an isolated mount point.
std::string isolated_file_system_name = "root";

Powered by Google App Engine
This is Rietveld 408576698