summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 22:14:53 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 22:14:53 +0000
commit1e5ae8646926d820f3f30f1eb2f60c91442e0130 (patch)
tree22392a4237025850161fd67902a9b02b838fa0fd /net
parent6710446191c03a7098753cb81989a699b1b54736 (diff)
downloadchromium_src-1e5ae8646926d820f3f30f1eb2f60c91442e0130.zip
chromium_src-1e5ae8646926d820f3f30f1eb2f60c91442e0130.tar.gz
chromium_src-1e5ae8646926d820f3f30f1eb2f60c91442e0130.tar.bz2
Coverity: check file_util::WriteFile return.
CID=5730,5731,5732 BUG=none TEST=none Review URL: http://codereview.chromium.org/271027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29040 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/url_request/url_request_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc
index 2f68957..07caaac 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -748,7 +748,7 @@ TEST_F(URLRequestTest, FileTestFullSpecifiedRange) {
FilePath temp_path;
EXPECT_TRUE(file_util::CreateTemporaryFile(&temp_path));
GURL temp_url = net::FilePathToFileURL(temp_path);
- file_util::WriteFile(temp_path, buffer.get(), buffer_size);
+ EXPECT_TRUE(file_util::WriteFile(temp_path, buffer.get(), buffer_size));
int64 file_size;
EXPECT_TRUE(file_util::GetFileSize(temp_path, &file_size));
@@ -789,7 +789,7 @@ TEST_F(URLRequestTest, FileTestHalfSpecifiedRange) {
FilePath temp_path;
EXPECT_TRUE(file_util::CreateTemporaryFile(&temp_path));
GURL temp_url = net::FilePathToFileURL(temp_path);
- file_util::WriteFile(temp_path, buffer.get(), buffer_size);
+ EXPECT_TRUE(file_util::WriteFile(temp_path, buffer.get(), buffer_size));
int64 file_size;
EXPECT_TRUE(file_util::GetFileSize(temp_path, &file_size));
@@ -829,7 +829,7 @@ TEST_F(URLRequestTest, FileTestMultipleRanges) {
FilePath temp_path;
EXPECT_TRUE(file_util::CreateTemporaryFile(&temp_path));
GURL temp_url = net::FilePathToFileURL(temp_path);
- file_util::WriteFile(temp_path, buffer.get(), buffer_size);
+ EXPECT_TRUE(file_util::WriteFile(temp_path, buffer.get(), buffer_size));
int64 file_size;
EXPECT_TRUE(file_util::GetFileSize(temp_path, &file_size));