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

Unified Diff: chrome/browser/download/download_manager_unittest.cc

Issue 7189076: Localize strings, speeds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright dates Created 9 years, 6 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: chrome/browser/download/download_manager_unittest.cc
diff --git a/chrome/browser/download/download_manager_unittest.cc b/chrome/browser/download/download_manager_unittest.cc
index 8b6fcfeeef47d388ce421446038aeed7267ae29d..1b80445e90c552215797197ff0336beb71e35949 100644
--- a/chrome/browser/download/download_manager_unittest.cc
+++ b/chrome/browser/download/download_manager_unittest.cc
@@ -33,6 +33,7 @@
#include "testing/gmock_mutant.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/base/text/bytes_formatting.h"
class DownloadManagerTest : public testing::Test {
public:
@@ -447,10 +448,11 @@ TEST_F(DownloadManagerTest, DownloadInterruptTest) {
EXPECT_FALSE(observer->was_opened());
EXPECT_FALSE(download->file_externally_removed());
EXPECT_EQ(DownloadItem::INTERRUPTED, download->state());
- DataUnits amount_units = GetByteDisplayUnits(kTestDataLen);
- const string16 simple_size = FormatBytes(error_size, amount_units, false);
+ ui::DataUnits amount_units = ui::GetByteDisplayUnits(kTestDataLen);
+ string16 simple_size =
+ ui::FormatBytesWithUnits(error_size, amount_units, false);
string16 simple_total = base::i18n::GetDisplayStringInLTRDirectionality(
- FormatBytes(kTestDataLen, amount_units, true));
+ ui::FormatBytesWithUnits(kTestDataLen, amount_units, true));
EXPECT_EQ(download_item_model->GetStatusText(),
l10n_util::GetStringFUTF16(IDS_DOWNLOAD_STATUS_INTERRUPTED,
simple_size,

Powered by Google App Engine
This is Rietveld 408576698