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

Unified Diff: chrome/browser/ui/cocoa/search_engine_list_model_unittest.mm

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/ui/cocoa/search_engine_list_model_unittest.mm
===================================================================
--- chrome/browser/ui/cocoa/search_engine_list_model_unittest.mm (revision 71499)
+++ chrome/browser/ui/cocoa/search_engine_list_model_unittest.mm (working copy)
@@ -1,9 +1,8 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 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/scoped_nsobject.h"
-#include "base/utf_string_conversions.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/search_engines/template_url_model.h"
@@ -33,14 +32,14 @@
template_model_.reset(new TemplateURLModel(helper_.profile()));
TemplateURL* t_url = new TemplateURL();
t_url->SetURL("http://www.google.com/?q={searchTerms}", 0, 0);
- t_url->set_keyword(ASCIIToUTF16("keyword"));
- t_url->set_short_name(ASCIIToUTF16("google"));
+ t_url->set_keyword(L"keyword");
+ t_url->set_short_name(L"google");
t_url->set_show_in_default_list(true);
template_model_->Add(t_url);
t_url = new TemplateURL();
t_url->SetURL("http://www.google2.com/?q={searchTerms}", 0, 0);
- t_url->set_keyword(ASCIIToUTF16("keyword2"));
- t_url->set_short_name(ASCIIToUTF16("google2"));
+ t_url->set_keyword(L"keyword2");
+ t_url->set_short_name(L"google2");
t_url->set_show_in_default_list(true);
template_model_->Add(t_url);
EXPECT_EQ(template_model_->GetTemplateURLs().size(), 2U);
@@ -84,14 +83,14 @@
// Add two more URLs, neither of which are shown in the default list.
TemplateURL* t_url = new TemplateURL();
t_url->SetURL("http://www.google3.com/?q={searchTerms}", 0, 0);
- t_url->set_keyword(ASCIIToUTF16("keyword3"));
- t_url->set_short_name(ASCIIToUTF16("google3 not eligible"));
+ t_url->set_keyword(L"keyword3");
+ t_url->set_short_name(L"google3 not eligible");
t_url->set_show_in_default_list(false);
template_model_->Add(t_url);
t_url = new TemplateURL();
t_url->SetURL("http://www.google4.com/?q={searchTerms}", 0, 0);
- t_url->set_keyword(ASCIIToUTF16("keyword4"));
- t_url->set_short_name(ASCIIToUTF16("google4"));
+ t_url->set_keyword(L"keyword4");
+ t_url->set_short_name(L"google4");
t_url->set_show_in_default_list(false);
template_model_->Add(t_url);
@@ -117,14 +116,14 @@
// Add two more URLs, the first one not shown in the default list.
TemplateURL* t_url = new TemplateURL();
t_url->SetURL("http://www.google3.com/?q={searchTerms}", 0, 0);
- t_url->set_keyword(ASCIIToUTF16("keyword3"));
- t_url->set_short_name(ASCIIToUTF16("google3 not eligible"));
+ t_url->set_keyword(L"keyword3");
+ t_url->set_short_name(L"google3 not eligible");
t_url->set_show_in_default_list(false);
template_model_->Add(t_url);
t_url = new TemplateURL();
t_url->SetURL("http://www.google4.com/?q={searchTerms}", 0, 0);
- t_url->set_keyword(ASCIIToUTF16("keyword4"));
- t_url->set_short_name(ASCIIToUTF16("google4"));
+ t_url->set_keyword(L"keyword4");
+ t_url->set_short_name(L"google4");
t_url->set_show_in_default_list(true);
template_model_->Add(t_url);
@@ -144,8 +143,8 @@
// Add one more item to force a notification.
TemplateURL* t_url = new TemplateURL();
t_url->SetURL("http://www.google3.com/foo/bar", 0, 0);
- t_url->set_keyword(ASCIIToUTF16("keyword3"));
- t_url->set_short_name(ASCIIToUTF16("google3"));
+ t_url->set_keyword(L"keyword3");
+ t_url->set_short_name(L"google3");
t_url->set_show_in_default_list(true);
template_model_->Add(t_url);
« no previous file with comments | « chrome/browser/ui/cocoa/search_engine_list_model.mm ('k') | chrome/browser/ui/gtk/edit_search_engine_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698