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

Unified Diff: chrome/browser/autocomplete/history_contents_provider_unittest.cc

Issue 2802010: Revert 49594 - Convert page contents grabbing from wide to UTF16. The current... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/437/src/
Patch Set: Created 10 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/autocomplete/history_contents_provider_unittest.cc
===================================================================
--- chrome/browser/autocomplete/history_contents_provider_unittest.cc (revision 50158)
+++ chrome/browser/autocomplete/history_contents_provider_unittest.cc (working copy)
@@ -20,11 +20,11 @@
struct TestEntry {
const char* url;
const wchar_t* title;
- const char* body;
+ const wchar_t* body;
} test_entries[] = {
- {"http://www.google.com/1", L"PAGEONE 1", "FOO some body text"},
- {"http://www.google.com/2", L"PAGEONE 2", "FOO some more blah blah"},
- {"http://www.google.com/3", L"PAGETHREE 3", "BAR some hello world for you"},
+ {"http://www.google.com/1", L"PAGEONE 1", L"FOO some body text"},
+ {"http://www.google.com/2", L"PAGEONE 2", L"FOO some more blah blah"},
+ {"http://www.google.com/3", L"PAGETHREE 3", L"BAR some hello world for you"},
};
class HistoryContentsProviderTest : public testing::Test,
@@ -73,7 +73,7 @@
history_service->AddPage(url, t, id_scope, i, GURL(),
PageTransition::LINK, history::RedirectList(), false);
history_service->SetPageTitle(url, test_entries[i].title);
- history_service->SetPageContents(url, UTF8ToUTF16(test_entries[i].body));
+ history_service->SetPageContents(url, test_entries[i].body);
}
provider_ = new HistoryContentsProvider(this, profile_.get());

Powered by Google App Engine
This is Rietveld 408576698