• hashimoto's avatar
    Move TemplateURLService related tests to components/search_engines · 3113536e
    hashimoto authored
    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
    
    Review URL: https://codereview.chromium.org/513133002
    
    Cr-Commit-Position: refs/heads/master@{#292597}
    3113536e
template_url_service.cc 92.9 KB