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

Unified Diff: chrome/browser/search_engines/template_url_parser_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
Index: chrome/browser/search_engines/template_url_parser_unittest.cc
===================================================================
--- chrome/browser/search_engines/template_url_parser_unittest.cc (revision 71499)
+++ chrome/browser/search_engines/template_url_parser_unittest.cc (working copy)
@@ -1,11 +1,10 @@
-// Copyright (c) 2011 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.
#include "base/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
-#include "base/utf_string_conversions.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/search_engines/template_url_parser.h"
#include "chrome/common/chrome_paths.h"
@@ -85,7 +84,7 @@
return;
ParseFile("dictionary.xml", NULL);
ASSERT_TRUE(parse_result_);
- EXPECT_EQ(ASCIIToUTF16("Dictionary.com"), template_url_.short_name());
+ EXPECT_EQ(L"Dictionary.com", template_url_.short_name());
EXPECT_TRUE(template_url_.GetFavIconURL() ==
GURL("http://cache.lexico.com/g/d/favicon.ico"));
EXPECT_TRUE(template_url_.url() != NULL);
@@ -99,7 +98,7 @@
return;
ParseFile("msdn.xml", NULL);
ASSERT_TRUE(parse_result_);
- EXPECT_EQ(ASCIIToUTF16("Search \" MSDN"), template_url_.short_name());
+ EXPECT_EQ(L"Search \" MSDN", template_url_.short_name());
EXPECT_TRUE(template_url_.GetFavIconURL() ==
GURL("http://search.msdn.microsoft.com/search/favicon.ico"));
EXPECT_TRUE(template_url_.url() != NULL);
@@ -113,7 +112,7 @@
return;
ParseFile("wikipedia.xml", NULL);
ASSERT_TRUE(parse_result_);
- EXPECT_EQ(ASCIIToUTF16("Wikipedia (English)"), template_url_.short_name());
+ EXPECT_EQ(L"Wikipedia (English)", template_url_.short_name());
EXPECT_TRUE(template_url_.GetFavIconURL() ==
GURL("http://en.wikipedia.org/favicon.ico"));
EXPECT_TRUE(template_url_.url() != NULL);
@@ -164,7 +163,7 @@
ParamFilterImpl filter("ebay", "ebay");
ParseFile("firefox_ebay.xml", &filter);
ASSERT_TRUE(parse_result_);
- EXPECT_EQ(ASCIIToUTF16("eBay"), template_url_.short_name());
+ EXPECT_EQ(L"eBay", template_url_.short_name());
EXPECT_TRUE(template_url_.url() != NULL);
EXPECT_TRUE(template_url_.url()->SupportsReplacement());
std::string exp_url =
@@ -185,7 +184,7 @@
ParamFilterImpl filter("", "Mozilla");
ParseFile("firefox_webster.xml", &filter);
ASSERT_TRUE(parse_result_);
- EXPECT_EQ(ASCIIToUTF16("Webster"), template_url_.short_name());
+ EXPECT_EQ(L"Webster", template_url_.short_name());
EXPECT_TRUE(template_url_.url() != NULL);
EXPECT_TRUE(template_url_.url()->SupportsReplacement());
EXPECT_EQ("http://www.webster.com/cgi-bin/dictionary?va={searchTerms}",
@@ -203,7 +202,7 @@
ParamFilterImpl filter("", "Mozilla");
ParseFile("firefox_yahoo.xml", &filter);
ASSERT_TRUE(parse_result_);
- EXPECT_EQ(ASCIIToUTF16("Yahoo"), template_url_.short_name());
+ EXPECT_EQ(L"Yahoo", template_url_.short_name());
EXPECT_TRUE(template_url_.url() != NULL);
EXPECT_TRUE(template_url_.url()->SupportsReplacement());
EXPECT_EQ("http://ff.search.yahoo.com/gossip?"
@@ -226,7 +225,7 @@
ParamFilterImpl filter("", "Mozilla");
ParseFile("post_suggestion.xml", &filter);
ASSERT_TRUE(parse_result_);
- EXPECT_EQ(ASCIIToUTF16("Yahoo"), template_url_.short_name());
+ EXPECT_EQ(L"Yahoo", template_url_.short_name());
EXPECT_TRUE(template_url_.url() != NULL);
EXPECT_TRUE(template_url_.url()->SupportsReplacement());
EXPECT_TRUE(template_url_.suggestions_url() == NULL);
« no previous file with comments | « chrome/browser/search_engines/template_url_parser.cc ('k') | chrome/browser/search_engines/template_url_prepopulate_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698