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

Unified Diff: chrome/browser/cocoa/infobar_controller_unittest.mm

Issue 3127009: Convert infobar APIs to UTF-16. (Closed)
Patch Set: works Created 10 years, 4 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/cocoa/infobar_controller_unittest.mm
diff --git a/chrome/browser/cocoa/infobar_controller_unittest.mm b/chrome/browser/cocoa/infobar_controller_unittest.mm
index ec7bf1e47be7fef020f359b355447b5610843011..114a94c3edbe6b889bc82ddb442a2cdbe87a202a 100644
--- a/chrome/browser/cocoa/infobar_controller_unittest.mm
+++ b/chrome/browser/cocoa/infobar_controller_unittest.mm
@@ -134,8 +134,8 @@ TEST_F(AlertInfoBarControllerTest, ShowAndDismiss) {
EXPECT_TRUE(delegate_.icon_accessed);
// Check to make sure the infobar message was set properly.
- EXPECT_EQ(std::wstring(kMockAlertInfoBarMessage),
- base::SysNSStringToWide([controller_.get() labelString]));
+ EXPECT_EQ(kMockAlertInfoBarMessage,
+ base::SysNSStringToUTF8([controller_.get() labelString]));
// Check that dismissing the infobar calls InfoBarClosed() on the delegate.
[controller_ dismiss:nil];
@@ -204,8 +204,8 @@ TEST_F(ConfirmInfoBarControllerTest, ShowAndDismiss) {
EXPECT_TRUE(delegate_.icon_accessed);
// Check to make sure the infobar message was set properly.
- EXPECT_EQ(std::wstring(kMockConfirmInfoBarMessage),
- base::SysNSStringToWide([controller_.get() labelString]));
+ EXPECT_EQ(kMockConfirmInfoBarMessage,
+ base::SysNSStringToUTF8([controller_.get() labelString]));
// Check that dismissing the infobar calls InfoBarClosed() on the delegate.
[controller_ dismiss:nil];

Powered by Google App Engine
This is Rietveld 408576698