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

Issue 376413002: Stop using TemplateURLServiceTestUtil to initialize TemplateURLServiceFactory (Closed)

Created:
6 years, 5 months ago by hashimoto
Modified:
6 years, 5 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org, battre
Project:
chromium
Visibility:
Public.

Description

Stop using TemplateURLServiceTestUtil to initialize TemplateURLServiceFactory To drop all dependencies on chrome, TemplateURLServiceTestUtil is going to stop interact with TemplateURLServiceFactory. All tests which have used the util to initialize the factory are rewritten to do it with TemplateURLServiceFactoryTestUtil. BUG=387985 TEST=unit_tests TBR=sky@chromium.org for an include removal in ui_test_utils.cc Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283695

Patch Set 1 : #

Patch Set 2 : Add TemplateURLServiceFactoryTestUtil #

Patch Set 3 : Remove redundant code from TemplateURLServiceFactoryTestUtil #

Patch Set 4 : Add DefaultSearchPrefTestUtil #

Total comments: 5

Patch Set 5 : Style fix #

Patch Set 6 : Eliminate SetUp() and TearDown() #

Total comments: 2

Patch Set 7 : Rename to template_url_service_test_util #

Patch Set 8 : Fix TemplateURLServiceWithoutFallbackTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -704 lines) Patch
M chrome/browser/autocomplete/autocomplete_result_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/profile_resetter/automatic_profile_resetter_delegate_unittest.cc View 1 2 3 4 5 6 8 chunks +15 lines, -12 lines 0 comments Download
M chrome/browser/search_engines/search_provider_install_data.h View 1 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/search_provider_install_data.cc View 1 2 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/search_engines/search_provider_install_data_unittest.cc View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/search_engines/search_provider_install_state_message_filter.cc View 1 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_fetcher_unittest.cc View 1 2 3 4 5 5 chunks +13 lines, -19 lines 0 comments Download
A + chrome/browser/search_engines/template_url_service_factory_test_util.h View 1 2 3 2 chunks +12 lines, -82 lines 0 comments Download
A chrome/browser/search_engines/template_url_service_factory_test_util.cc View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_sync_unittest.cc View 1 2 3 4 5 9 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_test_util.h View 1 2 3 4 5 4 chunks +8 lines, -39 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_test_util.cc View 1 2 3 4 5 6 chunks +48 lines, -119 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_unittest.cc View 1 2 3 4 5 6 7 58 chunks +90 lines, -90 lines 0 comments Download
M chrome/browser/sync/glue/search_engine_data_type_controller_unittest.cc View 1 2 4 chunks +11 lines, -14 lines 0 comments Download
M chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc View 1 2 3 3 chunks +13 lines, -10 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/base/ui_test_utils.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/search_engines.gypi View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A + components/search_engines/default_search_pref_test_util.h View 1 2 3 2 chunks +36 lines, -98 lines 0 comments Download
A + components/search_engines/default_search_pref_test_util.cc View 1 2 3 3 chunks +7 lines, -187 lines 0 comments Download
M components/search_engines/template_url_service.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
hashimoto
6 years, 5 months ago (2014-07-10 06:56:39 UTC) #1
Peter Kasting
I don't like the way this adds noticeably more boilerplate code in multiple places, especially ...
6 years, 5 months ago (2014-07-10 23:15:48 UTC) #2
hashimoto
On 2014/07/10 23:15:48, Peter Kasting wrote: > I don't like the way this adds noticeably ...
6 years, 5 months ago (2014-07-11 16:36:14 UTC) #3
Peter Kasting
More questions. (1) Is it possible to do what's currently in TemplateURLService[Factory]TestUtil::SetUp() and TearDown() in ...
6 years, 5 months ago (2014-07-11 17:55:54 UTC) #4
hashimoto
On 2014/07/11 17:55:54, Peter Kasting wrote: > More questions. > > (1) Is it possible ...
6 years, 5 months ago (2014-07-14 09:27:48 UTC) #5
Peter Kasting
On 2014/07/14 09:27:48, hashimoto wrote: > 2. SetManagedDefaultSearchPreferences/RemoveManagedDefaultSearchPreferences > Removed. These methods were doing almost ...
6 years, 5 months ago (2014-07-14 21:32:53 UTC) #6
hashimoto
On 2014/07/14 21:32:53, Peter Kasting wrote: > On 2014/07/14 09:27:48, hashimoto wrote: > > 2. ...
6 years, 5 months ago (2014-07-15 06:24:21 UTC) #7
Peter Kasting
LGTM https://codereview.chromium.org/376413002/diff/220001/chrome/browser/search_engines/template_url_service_test_util.h File chrome/browser/search_engines/template_url_service_test_util.h (right): https://codereview.chromium.org/376413002/diff/220001/chrome/browser/search_engines/template_url_service_test_util.h#newcode29 chrome/browser/search_engines/template_url_service_test_util.h:29: void SetUp(); Can these also be moved into ...
6 years, 5 months ago (2014-07-15 18:48:59 UTC) #8
hashimoto
https://codereview.chromium.org/376413002/diff/220001/chrome/browser/search_engines/template_url_service_test_util.h File chrome/browser/search_engines/template_url_service_test_util.h (right): https://codereview.chromium.org/376413002/diff/220001/chrome/browser/search_engines/template_url_service_test_util.h#newcode29 chrome/browser/search_engines/template_url_service_test_util.h:29: void SetUp(); On 2014/07/15 18:48:58, Peter Kasting wrote: > ...
6 years, 5 months ago (2014-07-16 03:20:59 UTC) #9
hashimoto
battre@, could you review automatic_profile_resetter_delegate_unittest.cc as an owner? haitaol@, could you review search_engine_data_type_controller_unittest.cc as an ...
6 years, 5 months ago (2014-07-16 05:37:19 UTC) #10
Peter Kasting
https://codereview.chromium.org/376413002/diff/220001/chrome/browser/search_engines/template_url_service_test_util.h File chrome/browser/search_engines/template_url_service_test_util.h (right): https://codereview.chromium.org/376413002/diff/220001/chrome/browser/search_engines/template_url_service_test_util.h#newcode29 chrome/browser/search_engines/template_url_service_test_util.h:29: void SetUp(); On 2014/07/16 03:20:59, hashimoto wrote: > On ...
6 years, 5 months ago (2014-07-16 05:38:12 UTC) #11
hashimoto
On 2014/07/16 05:38:12, Peter Kasting wrote: > https://codereview.chromium.org/376413002/diff/220001/chrome/browser/search_engines/template_url_service_test_util.h > File chrome/browser/search_engines/template_url_service_test_util.h (right): > > https://codereview.chromium.org/376413002/diff/220001/chrome/browser/search_engines/template_url_service_test_util.h#newcode29 ...
6 years, 5 months ago (2014-07-16 05:56:02 UTC) #12
battre
Delegating to engedy@ who wrote the code.
6 years, 5 months ago (2014-07-16 07:13:51 UTC) #13
engedy
LGTM on c/b/profile_resetter/, with one tiny nit. https://codereview.chromium.org/376413002/diff/300001/chrome/browser/profile_resetter/automatic_profile_resetter_delegate_unittest.cc File chrome/browser/profile_resetter/automatic_profile_resetter_delegate_unittest.cc (right): https://codereview.chromium.org/376413002/diff/300001/chrome/browser/profile_resetter/automatic_profile_resetter_delegate_unittest.cc#newcode239 chrome/browser/profile_resetter/automatic_profile_resetter_delegate_unittest.cc:239: scoped_ptr<TemplateURLServiceFactoryTestUtil> util_; ...
6 years, 5 months ago (2014-07-16 08:21:10 UTC) #14
hashimoto
https://codereview.chromium.org/376413002/diff/300001/chrome/browser/profile_resetter/automatic_profile_resetter_delegate_unittest.cc File chrome/browser/profile_resetter/automatic_profile_resetter_delegate_unittest.cc (right): https://codereview.chromium.org/376413002/diff/300001/chrome/browser/profile_resetter/automatic_profile_resetter_delegate_unittest.cc#newcode239 chrome/browser/profile_resetter/automatic_profile_resetter_delegate_unittest.cc:239: scoped_ptr<TemplateURLServiceFactoryTestUtil> util_; On 2014/07/16 08:21:09, engedy wrote: > nit: ...
6 years, 5 months ago (2014-07-16 09:04:41 UTC) #15
haitaol1
lgtm
6 years, 5 months ago (2014-07-16 16:46:40 UTC) #16
hashimoto
TBRing sky@chromium.org for an include removal in ui_test_utils.cc
6 years, 5 months ago (2014-07-17 03:44:42 UTC) #17
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 5 months ago (2014-07-17 03:44:49 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/376413002/350001
6 years, 5 months ago (2014-07-17 03:51:50 UTC) #19
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 07:39:09 UTC) #20
Message was sent while issue was closed.
Change committed as 283695

Powered by Google App Engine
This is Rietveld 408576698