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

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

Issue 6322001: Remove wstring from TemplateURL and friends.... (Closed) Base URL: svn://chrome-svn/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/ui/cocoa/search_engine_list_model.mm ('k') | chrome/browser/ui/omnibox/location_bar_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/search_engine_list_model_unittest.mm
===================================================================
--- chrome/browser/ui/cocoa/search_engine_list_model_unittest.mm (revision 71269)
+++ chrome/browser/ui/cocoa/search_engine_list_model_unittest.mm (working copy)
@@ -1,8 +1,9 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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"
@@ -32,14 +33,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(L"keyword");
- t_url->set_short_name(L"google");
+ t_url->set_keyword(ASCIIToUTF16("keyword"));
+ t_url->set_short_name(ASCIIToUTF16("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(L"keyword2");
- t_url->set_short_name(L"google2");
+ t_url->set_keyword(ASCIIToUTF16("keyword2"));
+ t_url->set_short_name(ASCIIToUTF16("google2"));
t_url->set_show_in_default_list(true);
template_model_->Add(t_url);
EXPECT_EQ(template_model_->GetTemplateURLs().size(), 2U);
@@ -83,14 +84,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(L"keyword3");
- t_url->set_short_name(L"google3 not eligible");
+ t_url->set_keyword(ASCIIToUTF16("keyword3"));
+ t_url->set_short_name(ASCIIToUTF16("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(L"keyword4");
- t_url->set_short_name(L"google4");
+ t_url->set_keyword(ASCIIToUTF16("keyword4"));
+ t_url->set_short_name(ASCIIToUTF16("google4"));
t_url->set_show_in_default_list(false);
template_model_->Add(t_url);
@@ -116,14 +117,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(L"keyword3");
- t_url->set_short_name(L"google3 not eligible");
+ t_url->set_keyword(ASCIIToUTF16("keyword3"));
+ t_url->set_short_name(ASCIIToUTF16("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(L"keyword4");
- t_url->set_short_name(L"google4");
+ t_url->set_keyword(ASCIIToUTF16("keyword4"));
+ t_url->set_short_name(ASCIIToUTF16("google4"));
t_url->set_show_in_default_list(true);
template_model_->Add(t_url);
@@ -143,8 +144,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(L"keyword3");
- t_url->set_short_name(L"google3");
+ t_url->set_keyword(ASCIIToUTF16("keyword3"));
+ t_url->set_short_name(ASCIIToUTF16("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/omnibox/location_bar_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698