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

Unified Diff: chrome/browser/history/history_querying_unittest.cc

Issue 776903002: Cleanup: Remove some unneeded string allocations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win Created 6 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
Index: chrome/browser/history/history_querying_unittest.cc
diff --git a/chrome/browser/history/history_querying_unittest.cc b/chrome/browser/history/history_querying_unittest.cc
index 9cd9b28feceeedd18a8b75babed3a0a12941ada1..da0a34bc9f4bb875285323efd28f5f0a8588f44d 100644
--- a/chrome/browser/history/history_querying_unittest.cc
+++ b/chrome/browser/history/history_querying_unittest.cc
@@ -401,7 +401,7 @@ TEST_F(HistoryQueryTest, TextSearchIDN) {
} queries[] = {
{ "bad query", 0 },
{ std::string("xn--d1abbgf6aiiy.xn--p1ai"), 1 },
- { base::WideToUTF8(std::wstring(L"\u043f\u0440\u0435\u0437") +
+ { base::WideToUTF8(L"\u043f\u0440\u0435\u0437"
L"\u0438\u0434\u0435\u043d\u0442.\u0440\u0444"), 1, },
};

Powered by Google App Engine
This is Rietveld 408576698