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

Issue 513133002: Move TemplateURLService related tests to components/search_engines (Closed)

Created:
6 years, 3 months ago by hashimoto
Modified:
6 years, 3 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Move 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -4552 lines) Patch
M chrome/browser/search_engines/search_provider_install_data_unittest.cc View 1 8 chunks +17 lines, -12 lines 0 comments Download
D chrome/browser/search_engines/template_url_fetcher_unittest.cc View 1 chunk +0 lines, -305 lines 0 comments Download
D chrome/browser/search_engines/template_url_parser_unittest.cc View 1 chunk +0 lines, -263 lines 0 comments Download
D chrome/browser/search_engines/template_url_service_sync_unittest.cc View 1 chunk +0 lines, -2243 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_test_util.h View 1 3 chunks +12 lines, -13 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_test_util.cc View 5 chunks +40 lines, -48 lines 0 comments Download
D chrome/browser/search_engines/template_url_service_unittest.cc View 1 chunk +0 lines, -1496 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 chunks +5 lines, -4 lines 0 comments Download
M components/search_engines/DEPS View 1 chunk +12 lines, -0 lines 0 comments Download
A + components/search_engines/template_url_fetcher_unittest.cc View 1 8 chunks +68 lines, -55 lines 0 comments Download
A + components/search_engines/template_url_parser_unittest.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
M components/search_engines/template_url_service.h View 1 1 chunk +0 lines, -9 lines 0 comments Download
M components/search_engines/template_url_service.cc View 1 2 chunks +4 lines, -9 lines 0 comments Download
A + components/search_engines/template_url_service_sync_unittest.cc View 4 chunks +7 lines, -11 lines 0 comments Download
A + components/search_engines/template_url_service_unittest.cc View 1 2 60 chunks +85 lines, -85 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
hashimoto
Patchset #1 (id:1) has been deleted
6 years, 3 months ago (2014-08-28 09:58:42 UTC) #1
hashimoto
hashimoto@chromium.org changed reviewers: + pkasting@chromium.org
6 years, 3 months ago (2014-08-28 10:07:41 UTC) #2
hashimoto
6 years, 3 months ago (2014-08-28 10:07:41 UTC) #3
Peter Kasting
LGTM https://codereview.chromium.org/513133002/diff/20001/chrome/browser/search_engines/search_provider_install_data_unittest.cc File chrome/browser/search_engines/search_provider_install_data_unittest.cc (right): https://codereview.chromium.org/513133002/diff/20001/chrome/browser/search_engines/search_provider_install_data_unittest.cc#newcode134 chrome/browser/search_engines/search_provider_install_data_unittest.cc:134: content::TestBrowserThreadBundle thread_bundle_; Nit: Add comments about why we ...
6 years, 3 months ago (2014-08-28 19:06:20 UTC) #4
hashimoto
https://codereview.chromium.org/513133002/diff/20001/chrome/browser/search_engines/search_provider_install_data_unittest.cc File chrome/browser/search_engines/search_provider_install_data_unittest.cc (right): https://codereview.chromium.org/513133002/diff/20001/chrome/browser/search_engines/search_provider_install_data_unittest.cc#newcode134 chrome/browser/search_engines/search_provider_install_data_unittest.cc:134: content::TestBrowserThreadBundle thread_bundle_; On 2014/08/28 19:06:19, Peter Kasting wrote: > ...
6 years, 3 months ago (2014-08-29 08:06:27 UTC) #5
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 3 months ago (2014-08-29 08:06:39 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/513133002/40001
6 years, 3 months ago (2014-08-29 08:07:36 UTC) #7
hashimoto
Patchset #3 (id:60001) has been deleted
6 years, 3 months ago (2014-08-29 08:22:40 UTC) #8
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 3 months ago (2014-08-29 08:23:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/513133002/80001
6 years, 3 months ago (2014-08-29 08:24:48 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:80001) as f1d552caddeff54f3a31d4968acfb6c218d0e34e
6 years, 3 months ago (2014-08-29 09:20:00 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:07:22 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3113536e4241cd192680f98b2d1be2b2988b35dd
Cr-Commit-Position: refs/heads/master@{#292597}

Powered by Google App Engine
This is Rietveld 408576698