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

Issue 2947283002: Unit-testing AnswerCardSearchProvider. (Closed)

Created:
3 years, 6 months ago by vadimt
Modified:
3 years, 4 months ago
Reviewers:
xiyuan, clamy, jam, nasko
CC:
chromium-reviews, tfarina, darin-cc_chromium.org, Matt Giuca
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Unit-testing AnswerCardSearchProvider. Removed OpenURLFromTab from the provider, as it’s not related to its mission to produce search results. Bug=712331 Review-Url: https://codereview.chromium.org/2947283002 Cr-Commit-Position: refs/heads/master@{#491631} Committed: https://chromium.googlesource.com/chromium/src/+/a138ec706839c1f162b0dd4e7b916bce57344ef8

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixed presubmit + CR comments #

Patch Set 3 : Removing somehow added unnecessary include. #

Patch Set 4 : Rebasing #

Total comments: 2

Patch Set 5 : Some rebasing + more CR comments #

Patch Set 6 : CR comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+398 lines, -102 lines) Patch
M chrome/browser/ui/app_list/search/answer_card/answer_card_contents.h View 1 2 3 4 5 2 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider.h View 1 2 3 4 5 2 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider.cc View 1 2 3 4 5 5 chunks +12 lines, -80 lines 0 comments Download
A chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider_unittest.cc View 1 2 3 4 5 1 chunk +291 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/search/answer_card/answer_card_web_contents.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/search/answer_card/answer_card_web_contents.cc View 1 2 3 4 5 6 chunks +82 lines, -3 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
vadimt
jam@chromium.org: Please review changes in content/ xiyuan@chromium.org: Please review changes in chrome/
3 years, 6 months ago (2017-06-21 23:35:47 UTC) #4
vadimt
Hope the try run failure won't block the review, as it seems to be related ...
3 years, 6 months ago (2017-06-21 23:49:32 UTC) #7
xiyuan
https://codereview.chromium.org/2947283002/diff/1/chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider_unittest.cc File chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider_unittest.cc (right): https://codereview.chromium.org/2947283002/diff/1/chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider_unittest.cc#newcode38 chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider_unittest.cc:38: views::View* const kView = reinterpret_cast<views::View*>(123456); Can we create a ...
3 years, 6 months ago (2017-06-22 16:43:22 UTC) #8
vadimt
Also fixed presubmit problems that turned to be real. https://codereview.chromium.org/2947283002/diff/1/chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider_unittest.cc File chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider_unittest.cc (right): https://codereview.chromium.org/2947283002/diff/1/chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider_unittest.cc#newcode38 chrome/browser/ui/app_list/search/answer_card/answer_card_search_provider_unittest.cc:38: ...
3 years, 6 months ago (2017-06-22 19:48:03 UTC) #9
xiyuan
lgtm
3 years, 6 months ago (2017-06-22 19:50:36 UTC) #10
jam
Camille/Nasko: what are your thoughts? Originally I thought we can avoid this by using the ...
3 years, 6 months ago (2017-06-23 01:00:38 UTC) #12
clamy
On 2017/06/23 01:00:38, jam wrote: > Camille/Nasko: what are your thoughts? Originally I thought we ...
3 years, 6 months ago (2017-06-23 13:46:14 UTC) #13
vadimt
On 2017/06/23 13:46:14, clamy wrote: > On 2017/06/23 01:00:38, jam wrote: > > Camille/Nasko: what ...
3 years, 5 months ago (2017-07-25 01:27:33 UTC) #18
clamy
On 2017/07/25 01:27:33, vadimt wrote: > On 2017/06/23 13:46:14, clamy wrote: > > On 2017/06/23 ...
3 years, 5 months ago (2017-07-25 11:49:21 UTC) #19
jam
On 2017/07/25 11:49:21, clamy wrote: > On 2017/07/25 01:27:33, vadimt wrote: > > On 2017/06/23 ...
3 years, 5 months ago (2017-07-25 17:49:30 UTC) #20
clamy
Is it not possible for the test to derive from RenderViewHostTestHarness? This way the mock ...
3 years, 4 months ago (2017-07-27 12:25:25 UTC) #21
vadimt
No, I can't inherit from RenderViewHostTestHarness because I'd have to go up the hierarchy to ...
3 years, 4 months ago (2017-07-28 01:55:20 UTC) #22
clamy
On 2017/07/28 01:55:20, vadimt wrote: > No, I can't inherit from RenderViewHostTestHarness because I'd have ...
3 years, 4 months ago (2017-08-02 12:05:16 UTC) #23
vadimt
OK, thanks for your time, acting in the spirit of your advice, I've moved parsing ...
3 years, 4 months ago (2017-08-03 02:06:35 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2947283002/90001
3 years, 4 months ago (2017-08-03 02:06:57 UTC) #27
commit-bot: I haz the power
3 years, 4 months ago (2017-08-03 03:31:42 UTC) #31
Message was sent while issue was closed.
Committed patchset #6 (id:90001) as
https://chromium.googlesource.com/chromium/src/+/a138ec706839c1f162b0dd4e7b91...

Powered by Google App Engine
This is Rietveld 408576698