summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-23 23:08:15 +0000
committerahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-23 23:08:15 +0000
commite5e120fd42f4131aa67f8e80cb950d39c3f0dbf0 (patch)
tree7339c624737395a013f3c475cd297d7562c52ad3 /chrome
parent02d2d5327ba803a8faa1a7952c1d13dfd105923c (diff)
downloadchromium_src-e5e120fd42f4131aa67f8e80cb950d39c3f0dbf0.zip
chromium_src-e5e120fd42f4131aa67f8e80cb950d39c3f0dbf0.tar.gz
chromium_src-e5e120fd42f4131aa67f8e80cb950d39c3f0dbf0.tar.bz2
Fix potential issue with BaseFile::AppendDataToFile().
Split from CL 7134019. BUG=None TEST=None Review URL: http://codereview.chromium.org/7778005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102608 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/download/download_manager_unittest.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/download/download_manager_unittest.cc b/chrome/browser/download/download_manager_unittest.cc
index 5c578a8..f93c140 100644
--- a/chrome/browser/download/download_manager_unittest.cc
+++ b/chrome/browser/download/download_manager_unittest.cc
@@ -619,12 +619,13 @@ TEST_F(DownloadManagerTest, DownloadFileErrorTest) {
EXPECT_EQ(DownloadItem::INTERRUPTED, download->state());
// Check the download shelf's information.
- size_t error_size = kTestDataLen * 3;
+ size_t error_size = kTestDataLen * 2;
+ size_t total_size = kTestDataLen * 3;
ui::DataUnits amount_units = ui::GetByteDisplayUnits(kTestDataLen);
string16 simple_size =
ui::FormatBytesWithUnits(error_size, amount_units, false);
string16 simple_total = base::i18n::GetDisplayStringInLTRDirectionality(
- ui::FormatBytesWithUnits(error_size, amount_units, true));
+ ui::FormatBytesWithUnits(total_size, amount_units, true));
EXPECT_EQ(l10n_util::GetStringFUTF16(IDS_DOWNLOAD_STATUS_INTERRUPTED,
simple_size,
simple_total),