Commit 26339978 authored by dcheng's avatar dcheng Committed by Commit bot

Remove implicit conversions from scoped_refptr to T* in content/browser/fileapi/

This patch was generated by running the rewrite_scoped_refptr clang tool
on a Linux build.

BUG=110610

Review URL: https://codereview.chromium.org/508683002

Cr-Commit-Position: refs/heads/master@{#291941}
parent 7f5a2800
...@@ -148,12 +148,12 @@ class BlobURLRequestJobTest : public testing::Test { ...@@ -148,12 +148,12 @@ class BlobURLRequestJobTest : public testing::Test {
ASSERT_EQ(base::File::FILE_OK, ASSERT_EQ(base::File::FILE_OK,
content::AsyncFileTestHelper::CreateFileWithData( content::AsyncFileTestHelper::CreateFileWithData(
file_system_context_, url, buf, buf_size)); file_system_context_.get(), url, buf, buf_size));
base::File::Info file_info; base::File::Info file_info;
ASSERT_EQ(base::File::FILE_OK, ASSERT_EQ(base::File::FILE_OK,
content::AsyncFileTestHelper::GetMetadata( content::AsyncFileTestHelper::GetMetadata(
file_system_context_, url, &file_info)); file_system_context_.get(), url, &file_info));
if (modification_time) if (modification_time)
*modification_time = file_info.last_modified; *modification_time = file_info.last_modified;
} }
......
...@@ -111,12 +111,12 @@ class FileSystemFileStreamReaderTest : public testing::Test { ...@@ -111,12 +111,12 @@ class FileSystemFileStreamReaderTest : public testing::Test {
ASSERT_EQ(base::File::FILE_OK, ASSERT_EQ(base::File::FILE_OK,
content::AsyncFileTestHelper::CreateFileWithData( content::AsyncFileTestHelper::CreateFileWithData(
file_system_context_, url, buf, buf_size)); file_system_context_.get(), url, buf, buf_size));
base::File::Info file_info; base::File::Info file_info;
ASSERT_EQ(base::File::FILE_OK, ASSERT_EQ(base::File::FILE_OK,
AsyncFileTestHelper::GetMetadata( AsyncFileTestHelper::GetMetadata(
file_system_context_, url, &file_info)); file_system_context_.get(), url, &file_info));
if (modification_time) if (modification_time)
*modification_time = file_info.last_modified; *modification_time = file_info.last_modified;
} }
......
...@@ -121,7 +121,7 @@ class FileSystemQuotaClientTest : public testing::Test { ...@@ -121,7 +121,7 @@ class FileSystemQuotaClientTest : public testing::Test {
GURL(origin_url), type, file_path); GURL(origin_url), type, file_path);
base::File::Error result = base::File::Error result =
AsyncFileTestHelper::CreateDirectory(file_system_context_, url); AsyncFileTestHelper::CreateDirectory(file_system_context_.get(), url);
return result == base::File::FILE_OK; return result == base::File::FILE_OK;
} }
...@@ -138,12 +138,12 @@ class FileSystemQuotaClientTest : public testing::Test { ...@@ -138,12 +138,12 @@ class FileSystemQuotaClientTest : public testing::Test {
GURL(origin_url), type, file_path); GURL(origin_url), type, file_path);
base::File::Error result = base::File::Error result =
AsyncFileTestHelper::CreateFile(file_system_context_, url); AsyncFileTestHelper::CreateFile(file_system_context_.get(), url);
if (result != base::File::FILE_OK) if (result != base::File::FILE_OK)
return false; return false;
result = AsyncFileTestHelper::TruncateFile( result = AsyncFileTestHelper::TruncateFile(
file_system_context_, url, file_size); file_system_context_.get(), url, file_size);
return result == base::File::FILE_OK; return result == base::File::FILE_OK;
} }
......
...@@ -215,8 +215,9 @@ class FileSystemURLRequestJobTest : public testing::Test { ...@@ -215,8 +215,9 @@ class FileSystemURLRequestJobTest : public testing::Test {
GURL("http://remote"), GURL("http://remote"),
storage::kFileSystemTypeTemporary, storage::kFileSystemTypeTemporary,
base::FilePath().AppendASCII(dir_name)); base::FilePath().AppendASCII(dir_name));
ASSERT_EQ(base::File::FILE_OK, AsyncFileTestHelper::CreateDirectory( ASSERT_EQ(
file_system_context_, url)); base::File::FILE_OK,
AsyncFileTestHelper::CreateDirectory(file_system_context_.get(), url));
} }
void WriteFile(const base::StringPiece& file_name, void WriteFile(const base::StringPiece& file_name,
...@@ -227,7 +228,7 @@ class FileSystemURLRequestJobTest : public testing::Test { ...@@ -227,7 +228,7 @@ class FileSystemURLRequestJobTest : public testing::Test {
base::FilePath().AppendASCII(file_name)); base::FilePath().AppendASCII(file_name));
ASSERT_EQ(base::File::FILE_OK, ASSERT_EQ(base::File::FILE_OK,
AsyncFileTestHelper::CreateFileWithData( AsyncFileTestHelper::CreateFileWithData(
file_system_context_, url, buf, buf_size)); file_system_context_.get(), url, buf, buf_size));
} }
GURL CreateFileSystemURL(const std::string& path) { GURL CreateFileSystemURL(const std::string& path) {
......
...@@ -103,7 +103,7 @@ class FileWriterDelegateTest : public PlatformTest { ...@@ -103,7 +103,7 @@ class FileWriterDelegateTest : public PlatformTest {
base::File::Info file_info; base::File::Info file_info;
EXPECT_EQ(base::File::FILE_OK, EXPECT_EQ(base::File::FILE_OK,
AsyncFileTestHelper::GetMetadata( AsyncFileTestHelper::GetMetadata(
file_system_context_, url, &file_info)); file_system_context_.get(), url, &file_info));
return file_info.size; return file_info.size;
} }
...@@ -249,8 +249,8 @@ void FileWriterDelegateTest::SetUp() { ...@@ -249,8 +249,8 @@ void FileWriterDelegateTest::SetUp() {
file_system_context_ = CreateFileSystemContextForTesting( file_system_context_ = CreateFileSystemContextForTesting(
NULL, dir_.path()); NULL, dir_.path());
ASSERT_EQ(base::File::FILE_OK, ASSERT_EQ(base::File::FILE_OK,
AsyncFileTestHelper::CreateFile( AsyncFileTestHelper::CreateFile(file_system_context_.get(),
file_system_context_, GetFileSystemURL("test"))); GetFileSystemURL("test")));
job_factory_.reset(new BlobURLRequestJobFactory(&content_)); job_factory_.reset(new BlobURLRequestJobFactory(&content_));
empty_context_.set_job_factory(job_factory_.get()); empty_context_.set_job_factory(job_factory_.get());
} }
...@@ -347,8 +347,8 @@ TEST_F(FileWriterDelegateTest, WriteSuccessWithoutQuotaLimitConcurrent) { ...@@ -347,8 +347,8 @@ TEST_F(FileWriterDelegateTest, WriteSuccessWithoutQuotaLimitConcurrent) {
scoped_ptr<net::URLRequest> request2; scoped_ptr<net::URLRequest> request2;
ASSERT_EQ(base::File::FILE_OK, ASSERT_EQ(base::File::FILE_OK,
AsyncFileTestHelper::CreateFile( AsyncFileTestHelper::CreateFile(file_system_context_.get(),
file_system_context_, GetFileSystemURL("test2"))); GetFileSystemURL("test2")));
const GURL kBlobURL("blob:nolimitconcurrent"); const GURL kBlobURL("blob:nolimitconcurrent");
const GURL kBlobURL2("blob:nolimitconcurrent2"); const GURL kBlobURL2("blob:nolimitconcurrent2");
......
...@@ -96,12 +96,12 @@ class UploadFileSystemFileElementReaderTest : public testing::Test { ...@@ -96,12 +96,12 @@ class UploadFileSystemFileElementReaderTest : public testing::Test {
ASSERT_EQ(base::File::FILE_OK, ASSERT_EQ(base::File::FILE_OK,
AsyncFileTestHelper::CreateFileWithData( AsyncFileTestHelper::CreateFileWithData(
file_system_context_, url, buf, buf_size)); file_system_context_.get(), url, buf, buf_size));
base::File::Info file_info; base::File::Info file_info;
ASSERT_EQ(base::File::FILE_OK, ASSERT_EQ(base::File::FILE_OK,
AsyncFileTestHelper::GetMetadata( AsyncFileTestHelper::GetMetadata(
file_system_context_, url, &file_info)); file_system_context_.get(), url, &file_info));
*modification_time = file_info.last_modified; *modification_time = file_info.last_modified;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment