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

Unified Diff: views/focus/focus_manager_unittest.cc

Issue 3159031: Remove wstrings from bookmarks, part 12. (Closed)
Patch Set: rebased ToT 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
« no previous file with comments | « views/examples/combobox_example.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/focus/focus_manager_unittest.cc
diff --git a/views/focus/focus_manager_unittest.cc b/views/focus/focus_manager_unittest.cc
index f786b1d18accf6b582a9246ecefcc2175cc30d12..a711538c3607953f632e88a6ac195941e8c356e8 100644
--- a/views/focus/focus_manager_unittest.cc
+++ b/views/focus/focus_manager_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -7,6 +7,7 @@
#include "app/combobox_model.h"
#include "base/keyboard_codes.h"
#include "base/logging.h"
+#include "base/string16.h"
#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
#include "gfx/rect.h"
@@ -322,8 +323,8 @@ class DummyComboboxModel : public ComboboxModel {
public:
virtual int GetItemCount() { return 10; }
- virtual std::wstring GetItemAt(int index) {
- return L"Item " + UTF16ToWideHack(base::IntToString16(index));
+ virtual string16 GetItemAt(int index) {
+ return ASCIIToUTF16("Item ") + base::IntToString16(index);
}
};
@@ -907,8 +908,8 @@ class TestCombobox : public Combobox, public ComboboxModel {
virtual int GetItemCount() {
return 10;
}
- virtual std::wstring GetItemAt(int index) {
- return L"Hello combo";
+ virtual string16 GetItemAt(int index) {
+ return ASCIIToUTF16("Hello combo");
}
};
« no previous file with comments | « views/examples/combobox_example.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698