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

Side by Side Diff: chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc

Issue 324283003: Move search_terms_data to components/search_engines (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/files/scoped_temp_dir.h" 6 #include "base/files/scoped_temp_dir.h"
7 #include "base/memory/scoped_vector.h" 7 #include "base/memory/scoped_vector.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/search_engines/search_terms_data.h"
10 #include "chrome/browser/search_engines/template_url.h" 9 #include "chrome/browser/search_engines/template_url.h"
11 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" 10 #include "chrome/browser/search_engines/template_url_prepopulate_data.h"
12 #include "chrome/browser/search_engines/template_url_service.h" 11 #include "chrome/browser/search_engines/template_url_service.h"
13 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
14 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
15 #include "chrome/test/base/testing_pref_service_syncable.h" 14 #include "chrome/test/base/testing_pref_service_syncable.h"
16 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
17 #include "components/google/core/browser/google_switches.h" 16 #include "components/google/core/browser/google_switches.h"
18 #include "components/search_engines/prepopulated_engines.h" 17 #include "components/search_engines/prepopulated_engines.h"
19 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 367
369 TEST(TemplateURLPrepopulateDataTest, GetLogoURLInvalid) { 368 TEST(TemplateURLPrepopulateDataTest, GetLogoURLInvalid) {
370 TemplateURLData data; 369 TemplateURLData data;
371 data.SetURL("http://invalid:search:url/"); 370 data.SetURL("http://invalid:search:url/");
372 TemplateURL turl(NULL, data); 371 TemplateURL turl(NULL, data);
373 GURL logo_url = TemplateURLPrepopulateData::GetLogoURL( 372 GURL logo_url = TemplateURLPrepopulateData::GetLogoURL(
374 turl, TemplateURLPrepopulateData::LOGO_100_PERCENT); 373 turl, TemplateURLPrepopulateData::LOGO_100_PERCENT);
375 374
376 EXPECT_TRUE(logo_url.is_empty()); 375 EXPECT_TRUE(logo_url.is_empty());
377 } 376 }
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_prepopulate_data.cc ('k') | chrome/browser/search_engines/template_url_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698