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

Unified Diff: chrome/browser/importer/importer_unittest.cc

Issue 6291003: Revert 71485 - Remove wstring from TemplateURL and friends.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « chrome/browser/importer/importer_messages.h ('k') | chrome/browser/importer/profile_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/importer_unittest.cc
===================================================================
--- chrome/browser/importer/importer_unittest.cc (revision 71499)
+++ chrome/browser/importer/importer_unittest.cc (working copy)
@@ -637,10 +637,9 @@
// The order might not be deterministic, look in the expected list for
// that template URL.
bool found = false;
- string16 keyword = template_urls[i]->keyword();
+ std::wstring keyword = template_urls[i]->keyword();
for (size_t j = 0; j < arraysize(kFirefox2Keywords); ++j) {
- if (template_urls[i]->keyword() ==
- WideToUTF16Hack(kFirefox2Keywords[j].keyword)) {
+ if (template_urls[i]->keyword() == kFirefox2Keywords[j].keyword) {
EXPECT_EQ(kFirefox2Keywords[j].url, template_urls[i]->url()->url());
found = true;
break;
@@ -653,7 +652,7 @@
if (default_keyword_index != -1) {
EXPECT_LT(default_keyword_index, static_cast<int>(template_urls.size()));
TemplateURL* default_turl = template_urls[default_keyword_index];
- default_keyword_ = UTF16ToWideHack(default_turl->keyword());
+ default_keyword_ = default_turl->keyword();
default_keyword_url_ = default_turl->url()->url();
}
@@ -845,10 +844,9 @@
// The order might not be deterministic, look in the expected list for
// that template URL.
bool found = false;
- string16 keyword = template_urls[i]->keyword();
+ std::wstring keyword = template_urls[i]->keyword();
for (size_t j = 0; j < arraysize(kFirefox3Keywords); ++j) {
- if (template_urls[i]->keyword() ==
- WideToUTF16Hack(kFirefox3Keywords[j].keyword)) {
+ if (template_urls[i]->keyword() == kFirefox3Keywords[j].keyword) {
EXPECT_EQ(kFirefox3Keywords[j].url, template_urls[i]->url()->url());
found = true;
break;
@@ -861,7 +859,7 @@
if (default_keyword_index != -1) {
EXPECT_LT(default_keyword_index, static_cast<int>(template_urls.size()));
TemplateURL* default_turl = template_urls[default_keyword_index];
- default_keyword_ = UTF16ToWideHack(default_turl->keyword());
+ default_keyword_ = default_turl->keyword();
default_keyword_url_ = default_turl->url()->url();
}
« no previous file with comments | « chrome/browser/importer/importer_messages.h ('k') | chrome/browser/importer/profile_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698