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

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

Issue 9982018: Move most TemplateURL data members to a new struct, TemplateURLData. This allows us to eliminate t… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/browser/edit_search_engine_cocoa_controller_unittest.mm
===================================================================
--- chrome/browser/ui/cocoa/browser/edit_search_engine_cocoa_controller_unittest.mm (revision 130759)
+++ chrome/browser/ui/cocoa/browser/edit_search_engine_cocoa_controller_unittest.mm (working copy)
@@ -206,12 +206,13 @@
// Tests editing an existing TemplateURL.
TEST_F(EditSearchEngineControllerTest, EditTemplateURL) {
- TemplateURL url;
- url.set_short_name(ASCIIToUTF16("Foobar"));
- url.set_keyword(ASCIIToUTF16("keyword"));
+ TemplateURLData data;
+ data.short_name = ASCIIToUTF16("Foobar");
+ data.SetKeyword(ASCIIToUTF16("keyword"));
std::string urlString = TemplateURLRef::DisplayURLToURLRef(
ASCIIToUTF16("http://foo-bar.com"));
- url.SetURL(urlString);
+ data.SetURL(urlString);
+ TemplateURL url(data);
FakeEditSearchEngineController *controller =
[[FakeEditSearchEngineController alloc] initWithProfile:profile()
delegate:nil
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/browser/ui/omnibox/omnibox_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698