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

Unified Diff: ui/views/window/dialog_delegate_unittest.cc

Issue 117983002: Prefix string16 with base:: in ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years 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
« no previous file with comments | « ui/views/window/dialog_client_view.cc ('k') | ui/views/window/non_client_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_delegate_unittest.cc
diff --git a/ui/views/window/dialog_delegate_unittest.cc b/ui/views/window/dialog_delegate_unittest.cc
index f56073affac3a218209810b278c35a5e30d59728..5398ed08afa3e8447db88359173db51af569465d 100644
--- a/ui/views/window/dialog_delegate_unittest.cc
+++ b/ui/views/window/dialog_delegate_unittest.cc
@@ -38,7 +38,7 @@ class TestDialog : public DialogDelegateView, public ButtonListener {
// DialogDelegateView overrides:
virtual gfx::Size GetPreferredSize() OVERRIDE { return gfx::Size(200, 200); }
- virtual string16 GetWindowTitle() const OVERRIDE { return title_; }
+ virtual base::string16 GetWindowTitle() const OVERRIDE { return title_; }
// ButtonListener override:
virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE {
@@ -73,7 +73,7 @@ class TestDialog : public DialogDelegateView, public ButtonListener {
GetWidget()->Close();
}
- void set_title(const string16& title) { title_ = title; }
+ void set_title(const base::string16& title) { title_ = title; }
private:
bool canceled_;
@@ -81,7 +81,7 @@ class TestDialog : public DialogDelegateView, public ButtonListener {
// Prevent the dialog from closing, for repeated ok and cancel button clicks.
bool closeable_;
Button* last_pressed_button_;
- string16 title_;
+ base::string16 title_;
DISALLOW_COPY_AND_ASSIGN(TestDialog);
};
@@ -121,21 +121,21 @@ TEST_F(DialogTest, DefaultButtons) {
dialog()->PressEnterAndCheckStates(ok_button);
// Focus another button in the dialog, it should become the default.
- LabelButton* button_1 = new LabelButton(dialog(), string16());
+ LabelButton* button_1 = new LabelButton(dialog(), base::string16());
client_view->AddChildView(button_1);
client_view->OnWillChangeFocus(ok_button, button_1);
EXPECT_TRUE(button_1->is_default());
dialog()->PressEnterAndCheckStates(button_1);
// Focus a Checkbox (not a push button), OK should become the default again.
- Checkbox* checkbox = new Checkbox(string16());
+ Checkbox* checkbox = new Checkbox(base::string16());
client_view->AddChildView(checkbox);
client_view->OnWillChangeFocus(button_1, checkbox);
EXPECT_FALSE(button_1->is_default());
dialog()->PressEnterAndCheckStates(ok_button);
// Focus yet another button in the dialog, it should become the default.
- LabelButton* button_2 = new LabelButton(dialog(), string16());
+ LabelButton* button_2 = new LabelButton(dialog(), base::string16());
client_view->AddChildView(button_2);
client_view->OnWillChangeFocus(checkbox, button_2);
EXPECT_FALSE(button_1->is_default());
« no previous file with comments | « ui/views/window/dialog_client_view.cc ('k') | ui/views/window/non_client_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698