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

Side by Side Diff: components/search_engines/template_url_service.h

Issue 376413002: Stop using TemplateURLServiceTestUtil to initialize TemplateURLServiceFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TemplateURLServiceWithoutFallbackTest Created 6 years, 5 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
« no previous file with comments | « components/search_engines/default_search_pref_test_util.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceTest, MergeDeletesUnusedProviders); 392 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceTest, MergeDeletesUnusedProviders);
393 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, UniquifyKeyword); 393 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, UniquifyKeyword);
394 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, 394 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest,
395 IsLocalTemplateURLBetter); 395 IsLocalTemplateURLBetter);
396 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, 396 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest,
397 ResolveSyncKeywordConflict); 397 ResolveSyncKeywordConflict);
398 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, PreSyncDeletes); 398 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, PreSyncDeletes);
399 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, MergeInSyncTemplateURL); 399 FRIEND_TEST_ALL_PREFIXES(TemplateURLServiceSyncTest, MergeInSyncTemplateURL);
400 400
401 friend class InstantUnitTestBase; 401 friend class InstantUnitTestBase;
402 friend class TemplateURLServiceTestUtilBase; 402 friend class TemplateURLServiceTestUtil;
403 403
404 typedef std::map<base::string16, TemplateURL*> KeywordToTemplateMap; 404 typedef std::map<base::string16, TemplateURL*> KeywordToTemplateMap;
405 typedef std::map<std::string, TemplateURL*> GUIDToTemplateMap; 405 typedef std::map<std::string, TemplateURL*> GUIDToTemplateMap;
406 406
407 // Declaration of values to be used in an enumerated histogram to tally 407 // Declaration of values to be used in an enumerated histogram to tally
408 // changes to the default search provider from various entry points. In 408 // changes to the default search provider from various entry points. In
409 // particular, we use this to see what proportion of changes are from Sync 409 // particular, we use this to see what proportion of changes are from Sync
410 // entry points, to help spot erroneous Sync activity. 410 // entry points, to help spot erroneous Sync activity.
411 enum DefaultSearchChangeOrigin { 411 enum DefaultSearchChangeOrigin {
412 // Various known Sync entry points. 412 // Various known Sync entry points.
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 750
751 // Helper class to manage the default search engine. 751 // Helper class to manage the default search engine.
752 DefaultSearchManager default_search_manager_; 752 DefaultSearchManager default_search_manager_;
753 753
754 scoped_ptr<GoogleURLTracker::Subscription> google_url_updated_subscription_; 754 scoped_ptr<GoogleURLTracker::Subscription> google_url_updated_subscription_;
755 755
756 DISALLOW_COPY_AND_ASSIGN(TemplateURLService); 756 DISALLOW_COPY_AND_ASSIGN(TemplateURLService);
757 }; 757 };
758 758
759 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 759 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
OLDNEW
« no previous file with comments | « components/search_engines/default_search_pref_test_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698