DescriptionMove TemplateURLService related tests to components/search_engines
Put tests next to the code being tested.
Move tests to components/ without actually removing dependencies with temporary DEPS rules added.
This results in these tests still built as parts of unit_tests, not components_unittests.
Fix TemplateURLServiceTestUtil to simplify the code and reduce chrome dependencies:
- Create KeywordWebDataService instead of depending on WebDataServiceFactory.
- Remove TemplateURLService::SetKeywordSearchTermsForURL() and TestingTemplateURLService. Instead, TestingTemplateURLServiceClient is responsible to implement SetKeywordSearchTermsForURL().
- Remove content::TestBrowserThreadBundle from test util. Tests are responsible to set up one. This enables TemplateURLServiceTestSyncTest to use multiple test util instances.
BUG=387985
TEST=unit_tests
Committed: https://crrev.com/3113536e4241cd192680f98b2d1be2b2988b35dd
Cr-Commit-Position: refs/heads/master@{#292597}
Patch Set 1 : #
Total comments: 18
Patch Set 2 : Address comments #Patch Set 3 : Address comments #Messages
Total messages: 12 (0 generated)
|