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

Unified Diff: chrome/browser/search_engines/template_url_fetcher_unittest.cc

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/search_engines/template_url_fetcher_unittest.cc
===================================================================
--- chrome/browser/search_engines/template_url_fetcher_unittest.cc (revision 130759)
+++ chrome/browser/search_engines/template_url_fetcher_unittest.cc (working copy)
@@ -288,11 +288,11 @@
TEST_F(TemplateURLFetcherTest, DuplicateKeywordsTest) {
string16 keyword(ASCIIToUTF16("test"));
- TemplateURL* t_url = new TemplateURL();
- t_url->SetURL("http://example.com/");
- t_url->set_keyword(keyword);
- t_url->set_short_name(keyword);
- test_util_.model()->Add(t_url);
+ TemplateURLData data;
+ data.short_name = keyword;
+ data.SetKeyword(keyword);
+ data.SetURL("http://example.com/");
+ test_util_.model()->Add(new TemplateURL(data));
test_util_.ChangeModelToLoadState();
ASSERT_TRUE(test_util_.model()->GetTemplateURLForKeyword(keyword));
« no previous file with comments | « chrome/browser/search_engines/template_url_fetcher.cc ('k') | chrome/browser/search_engines/template_url_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698