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

Issue 1161153003: Convert the WebRtcTestBase to use infobar and bubble autoresponders (Closed)

Created:
5 years, 6 months ago by felt
Modified:
5 years, 6 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, mcasas+watch_chromium.org, phoglund+watch_chromium.org, posciak+watch_chromium.org, tnakamura+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert the WebRtcTestBase to use infobar and bubble autoresponders To prevent MediaStreamPermissionTest* flakiness: (1) Instead of relying on the old infobar notification system, switch to the new infobar responder. (As per crbug.com/354380, observers are now preferred to notifications.) (2) Instead of relying on mock permission bubbles, switch to the new PermissionBubbleManager responder. (3) Remove the polling and timeouts. To satisfy the requirements of the media test cases, I also updated the InfoBarResponder. It now can handle infobar replacement and dismissing an infobar without making a choice. BUG=295723 R=tommi@chromium.org Committed: https://crrev.com/ccc25707b9788597c55fb4eaa90109500e1f92cb Cr-Commit-Position: refs/heads/master@{#333360} Committed: https://crrev.com/f3b3efabfeba898056654426b437c6e9cdb52720 Cr-Commit-Position: refs/heads/master@{#333685}

Patch Set 1 : Ready for review #

Patch Set 2 : Fix small refactor compile bug #

Total comments: 1

Patch Set 3 : Fix MANUAL test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -184 lines) Patch
M chrome/browser/infobars/infobar_responder.h View 1 chunk +11 lines, -4 lines 0 comments Download
M chrome/browser/infobars/infobar_responder.cc View 2 chunks +18 lines, -6 lines 0 comments Download
M chrome/browser/media/chrome_media_stream_infobar_browsertest.cc View 1 6 chunks +13 lines, -23 lines 0 comments Download
M chrome/browser/media/chrome_webrtc_apprtc_browsertest.cc View 1 2 3 chunks +28 lines, -4 lines 0 comments Download
M chrome/browser/media/webrtc_browsertest_base.cc View 1 2 4 chunks +36 lines, -130 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_browsertest.cc View 1 8 chunks +16 lines, -8 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_browsertest.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/test/data/webrtc/getusermedia.js View 4 chunks +9 lines, -6 lines 0 comments Download

Messages

Total messages: 32 (14 generated)
felt
hi tommi, i believe this should fix the flakiness of MediaStreamPermissionTest. PTAL.
5 years, 6 months ago (2015-06-08 20:58:05 UTC) #7
phoglund_chromium
lgtm Nice, thanks for doing this. I added myself as reviewer since tommi is quite ...
5 years, 6 months ago (2015-06-08 21:14:57 UTC) #9
felt
On 2015/06/08 21:14:57, phoglund wrote: > lgtm > > Nice, thanks for doing this. I ...
5 years, 6 months ago (2015-06-08 21:19:13 UTC) #10
tommi (sloooow) - chröme
lgtm
5 years, 6 months ago (2015-06-08 21:20:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1161153003/120001
5 years, 6 months ago (2015-06-08 21:21:33 UTC) #14
phoglund_chromium
> thanks patrik! however: it looks like you can't give an l-g-t-m for > chrome_media_stream_infobar_browsertest.cc ...
5 years, 6 months ago (2015-06-08 21:23:06 UTC) #15
felt
pkasting: Please review chrome/browser/infobars/? I had to update the InfoBarResponder to handle infobar replacement and ...
5 years, 6 months ago (2015-06-08 21:23:24 UTC) #16
Peter Kasting
LGTM
5 years, 6 months ago (2015-06-08 21:44:48 UTC) #18
Peter Beverloo
lgtm
5 years, 6 months ago (2015-06-08 21:51:35 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1161153003/120001
5 years, 6 months ago (2015-06-08 22:07:33 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:120001)
5 years, 6 months ago (2015-06-08 22:14:44 UTC) #22
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/ccc25707b9788597c55fb4eaa90109500e1f92cb Cr-Commit-Position: refs/heads/master@{#333360}
5 years, 6 months ago (2015-06-08 22:15:35 UTC) #23
kjellander (google.com)
A revert of this CL (patchset #2 id:120001) has been created in https://codereview.chromium.org/1175443002/ by kjellander@google.com. ...
5 years, 6 months ago (2015-06-09 07:48:51 UTC) #24
felt
phoglund: PTAL at chrome/browser/media/chrome_webrtc_apprtc_browsertest.cc. I updated the tests to use both infobars and permissions. I've ...
5 years, 6 months ago (2015-06-10 01:41:09 UTC) #26
phoglund_chromium
lgtm
5 years, 6 months ago (2015-06-10 02:05:47 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1161153003/160001
5 years, 6 months ago (2015-06-10 04:37:56 UTC) #30
commit-bot: I haz the power
Committed patchset #3 (id:160001)
5 years, 6 months ago (2015-06-10 05:06:39 UTC) #31
commit-bot: I haz the power
5 years, 6 months ago (2015-06-10 05:07:39 UTC) #32
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f3b3efabfeba898056654426b437c6e9cdb52720
Cr-Commit-Position: refs/heads/master@{#333685}

Powered by Google App Engine
This is Rietveld 408576698