diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-01 04:16:27 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-01 04:16:27 +0000 |
commit | ad8e04ac88be37d5ccb6c2cf61f52b224dca493c (patch) | |
tree | 9bcb878643bdd9e5af6749fff469b2552e569907 /webkit/blob/blob_url_request_job_unittest.cc | |
parent | 5af8043eb24ad60251d8a4e33192e3e6f59246a3 (diff) | |
download | chromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.zip chromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.tar.gz chromium_src-ad8e04ac88be37d5ccb6c2cf61f52b224dca493c.tar.bz2 |
Convert implicit scoped_refptr constructor calls to explicit ones, part 1
This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2776043/ . I manually fixed a few rough spots of the rewriter output (doh1-3) and fixed all presubmit errors.
BUG=28083
TEST=None
Review URL: http://codereview.chromium.org/4192012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/blob/blob_url_request_job_unittest.cc')
-rw-r--r-- | webkit/blob/blob_url_request_job_unittest.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/webkit/blob/blob_url_request_job_unittest.cc b/webkit/blob/blob_url_request_job_unittest.cc index ad4ecb4..2fb2337 100644 --- a/webkit/blob/blob_url_request_job_unittest.cc +++ b/webkit/blob/blob_url_request_job_unittest.cc @@ -271,13 +271,13 @@ class BlobURLRequestJobTest : public testing::Test { // Test Cases --------------------------------------------------------------- void TestGetSimpleDataRequest() { - scoped_refptr<BlobData> blob_data = new BlobData(); + scoped_refptr<BlobData> blob_data(new BlobData()); blob_data->AppendData(kTestData1); TestSuccessRequest(blob_data, kTestData1); } void TestGetSimpleFileRequest() { - scoped_refptr<BlobData> blob_data = new BlobData(); + scoped_refptr<BlobData> blob_data(new BlobData()); blob_data->AppendFile(temp_file1_, 0, -1, base::Time()); TestSuccessRequest(blob_data, kTestFileData1); } @@ -285,13 +285,13 @@ class BlobURLRequestJobTest : public testing::Test { void TestGetNonExistentFileRequest() { FilePath non_existent_file = temp_file1_.InsertBeforeExtension(FILE_PATH_LITERAL("-na")); - scoped_refptr<BlobData> blob_data = new BlobData(); + scoped_refptr<BlobData> blob_data(new BlobData()); blob_data->AppendFile(non_existent_file, 0, -1, base::Time()); TestErrorRequest(blob_data, 404); } void TestGetChangedFileRequest() { - scoped_refptr<BlobData> blob_data = new BlobData(); + scoped_refptr<BlobData> blob_data(new BlobData()); base::Time old_time = temp_file_modification_time1_ - base::TimeDelta::FromSeconds(10); blob_data->AppendFile(temp_file1_, 0, 3, old_time); @@ -299,21 +299,21 @@ class BlobURLRequestJobTest : public testing::Test { } void TestGetSlicedDataRequest() { - scoped_refptr<BlobData> blob_data = new BlobData(); + scoped_refptr<BlobData> blob_data(new BlobData()); blob_data->AppendData(kTestData2, 2, 4); std::string result(kTestData2 + 2, 4); TestSuccessRequest(blob_data, result); } void TestGetSlicedFileRequest() { - scoped_refptr<BlobData> blob_data = new BlobData(); + scoped_refptr<BlobData> blob_data(new BlobData()); blob_data->AppendFile(temp_file1_, 2, 4, temp_file_modification_time1_); std::string result(kTestFileData1 + 2, 4); TestSuccessRequest(blob_data, result); } scoped_refptr<BlobData> BuildComplicatedData(std::string* expected_result) { - scoped_refptr<BlobData> blob_data = new BlobData(); + scoped_refptr<BlobData> blob_data(new BlobData()); blob_data->AppendData(kTestData1, 1, 2); blob_data->AppendFile(temp_file1_, 2, 3, temp_file_modification_time1_); blob_data->AppendData(kTestData2, 3, 4); @@ -356,7 +356,7 @@ class BlobURLRequestJobTest : public testing::Test { } void TestExtraHeaders() { - scoped_refptr<BlobData> blob_data = new BlobData(); + scoped_refptr<BlobData> blob_data(new BlobData()); blob_data->set_content_type(kTestContentType); blob_data->set_content_disposition(kTestContentDisposition); blob_data->AppendData(kTestData1); |