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

Issue 1646893003: Moves shared history test helpers into util classes. (Closed)

Created:
4 years, 10 months ago by rohitrao (ping after 24h)
Modified:
4 years, 10 months ago
Reviewers:
Peter Kasting, sky, blundell
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@history
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Moves shared history test helpers into util classes. BUG=None Committed: https://crrev.com/4a13d7bae576141f3dcc334098a190cc092cb568 Cr-Commit-Position: refs/heads/master@{#372681}

Patch Set 1 #

Patch Set 2 : Cleanups. #

Patch Set 3 : Fixes. #

Patch Set 4 : Fix compile. #

Total comments: 6

Patch Set 5 : sky review. #

Patch Set 6 : Friend functions. #

Patch Set 7 : Forward-declare more friends. #

Total comments: 4

Patch Set 8 : Review. #

Patch Set 9 : Review. #

Total comments: 11

Patch Set 10 : Review. #

Patch Set 11 : ASAN. #

Patch Set 12 : ASAN. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -160 lines) Patch
M components/history.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M components/history/core/browser/history_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download
M components/history/core/test/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A components/history/core/test/history_service_test_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download
A components/history/core/test/history_service_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +74 lines, -0 lines 0 comments Download
M components/omnibox.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M components/omnibox/browser/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M components/omnibox/browser/history_quick_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +26 lines, -79 lines 0 comments Download
M components/omnibox/browser/history_url_provider_unittest.cc View 1 2 3 4 5 13 chunks +33 lines, -80 lines 0 comments Download
A components/omnibox/browser/in_memory_url_index_test_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +14 lines, -0 lines 0 comments Download
A components/omnibox/browser/in_memory_url_index_test_util.cc View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (9 generated)
rohitrao (ping after 24h)
4 years, 10 months ago (2016-01-29 15:07:14 UTC) #2
rohitrao (ping after 24h)
+Scott for components/history +Peter for components/omnibox This CL is cleaning up unittests by moving shared ...
4 years, 10 months ago (2016-01-29 19:16:55 UTC) #4
sky
https://codereview.chromium.org/1646893003/diff/60001/components/history/core/test/history_service_test_util.cc File components/history/core/test/history_service_test_util.cc (right): https://codereview.chromium.org/1646893003/diff/60001/components/history/core/test/history_service_test_util.cc#newcode30 components/history/core/test/history_service_test_util.cc:30: base::MessageLoop::current()->QuitWhenIdle(); QuitWhenIdle is deprecated. Use a RunLoop instead. https://codereview.chromium.org/1646893003/diff/60001/components/history/core/test/history_service_test_util.cc#newcode53 ...
4 years, 10 months ago (2016-01-29 20:58:22 UTC) #5
rohitrao (ping after 24h)
https://codereview.chromium.org/1646893003/diff/60001/components/history/core/test/history_service_test_util.cc File components/history/core/test/history_service_test_util.cc (right): https://codereview.chromium.org/1646893003/diff/60001/components/history/core/test/history_service_test_util.cc#newcode30 components/history/core/test/history_service_test_util.cc:30: base::MessageLoop::current()->QuitWhenIdle(); On 2016/01/29 20:58:21, sky wrote: > QuitWhenIdle is ...
4 years, 10 months ago (2016-01-29 21:35:12 UTC) #7
sky
On Fri, Jan 29, 2016 at 1:35 PM, <rohitrao@chromium.org> wrote: > > > https://codereview.chromium.org/1646893003/diff/60001/components/history/core/test/history_service_test_util.cc > ...
4 years, 10 months ago (2016-01-29 21:44:49 UTC) #8
rohitrao (ping after 24h)
Updated to use friend functions for the HistoryService test utils. I tried to do the ...
4 years, 10 months ago (2016-01-29 22:17:50 UTC) #9
rohitrao (ping after 24h)
Patchset #7 has the forward-declares, so you can judge for yourself. Patchset #6 is the ...
4 years, 10 months ago (2016-01-29 22:24:12 UTC) #10
sky
LGTM
4 years, 10 months ago (2016-01-29 23:43:22 UTC) #11
Peter Kasting
Why does BlockUntilInMemoryURLIndexIsRefreshed() need to be friended by either class? I can't find a place ...
4 years, 10 months ago (2016-01-30 01:09:22 UTC) #12
rohitrao (ping after 24h)
On 2016/01/30 01:09:22, Peter Kasting wrote: > Why does BlockUntilInMemoryURLIndexIsRefreshed() need to be friended by ...
4 years, 10 months ago (2016-01-31 15:45:56 UTC) #13
Peter Kasting
LGTM https://codereview.chromium.org/1646893003/diff/180001/components/history/core/browser/history_service.h File components/history/core/browser/history_service.h (right): https://codereview.chromium.org/1646893003/diff/180001/components/history/core/browser/history_service.h#newcode587 components/history/core/browser/history_service.h:587: friend void BlockUntilHistoryProcessesPendingRequests( I don't think this needs ...
4 years, 10 months ago (2016-01-31 20:30:43 UTC) #14
blundell
I don't think you need my LG at this point given your other reviewers, so ...
4 years, 10 months ago (2016-02-01 08:28:30 UTC) #15
rohitrao (ping after 24h)
Thanks for the reviews! https://codereview.chromium.org/1646893003/diff/180001/components/history/core/browser/history_service.h File components/history/core/browser/history_service.h (right): https://codereview.chromium.org/1646893003/diff/180001/components/history/core/browser/history_service.h#newcode587 components/history/core/browser/history_service.h:587: friend void BlockUntilHistoryProcessesPendingRequests( On 2016/01/31 ...
4 years, 10 months ago (2016-02-01 12:46:48 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1646893003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1646893003/200001
4 years, 10 months ago (2016-02-01 12:47:59 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/109595)
4 years, 10 months ago (2016-02-01 14:34:54 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1646893003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1646893003/240001
4 years, 10 months ago (2016-02-01 16:03:07 UTC) #24
commit-bot: I haz the power
Committed patchset #12 (id:240001)
4 years, 10 months ago (2016-02-01 17:11:13 UTC) #25
commit-bot: I haz the power
4 years, 10 months ago (2016-02-01 17:12:34 UTC) #27
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/4a13d7bae576141f3dcc334098a190cc092cb568
Cr-Commit-Position: refs/heads/master@{#372681}

Powered by Google App Engine
This is Rietveld 408576698