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

Issue 787033004: Update geolocation permission tests for the permission bubble (Closed)

Created:
6 years ago by felt
Modified:
5 years, 10 months ago
CC:
chromium-reviews, markusheintz_, mlamouri+watch-geolocation_chromium.org, Michael van Ouwerkerk
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update geolocation permission tests for the permission bubble This makes the geolocation permission tests run for both infobars and permission bubbles. The tests now run as parameterized tests. Supercedes parts of: https://codereview.chromium.org/411503005/ https://codereview.chromium.org/341833004/ BUG=438758 Committed: https://crrev.com/f57c61952870c6027dbf220eff8b2d703bfed3c8 Cr-Commit-Position: refs/heads/master@{#314541} Committed: https://crrev.com/d9f24fc092eba7accd05df923b1a1aa911a8ca38 Cr-Commit-Position: refs/heads/master@{#315883} Committed: https://crrev.com/9740ee70258c4a4ce0f91a0fd9bc56c104caf990 Cr-Commit-Position: refs/heads/master@{#316261}

Patch Set 1 #

Patch Set 2 : Unit tests passing locally now #

Patch Set 3 : Browser tests working for most tests #

Patch Set 4 : Browser tests done #

Total comments: 34

Patch Set 5 : Helper methods for unit tests; new MockPermissionBubbleView class #

Patch Set 6 : Added missing comment #

Patch Set 7 : uint -> size_t #

Patch Set 8 : fix compile warning/error #

Total comments: 28

Patch Set 9 : Changes for timvolodine #

Total comments: 2

Patch Set 10 : Compile fix #

Patch Set 11 : Rebased #

Patch Set 12 : Fixed rebase mistake #

Patch Set 13 : Fix Tim's nits #

Total comments: 4

Patch Set 14 : Tweaks for Markus #

Patch Set 15 : Fixed compile bug #

Patch Set 16 : Screwed up gypi copy/paste #

Patch Set 17 : Android fix #

Patch Set 18 : Missing Android ifdef #

Patch Set 19 : Tweak to gather more info #

Patch Set 20 : Fixed rebase error #

Patch Set 21 : Exclude flaky browsertests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+776 lines, -380 lines) Patch
M chrome/browser/geolocation/geolocation_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 32 chunks +198 lines, -111 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 chunks +459 lines, -269 lines 0 comments Download
A chrome/browser/ui/website_settings/mock_permission_bubble_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/ui/website_settings/mock_permission_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +65 lines, -0 lines 0 comments Download
M chrome/browser/ui/website_settings/permission_bubble_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (13 generated)
felt
mvanouwerkerk@, PTAL.
6 years ago (2014-12-17 08:25:09 UTC) #2
Michael van Ouwerkerk
https://codereview.chromium.org/787033004/diff/60001/chrome/browser/geolocation/geolocation_browsertest.cc File chrome/browser/geolocation/geolocation_browsertest.cc (right): https://codereview.chromium.org/787033004/diff/60001/chrome/browser/geolocation/geolocation_browsertest.cc#newcode129 chrome/browser/geolocation/geolocation_browsertest.cc:129: class MockView : public PermissionBubbleView { MockView seems quite ...
6 years ago (2014-12-17 17:20:20 UTC) #3
felt
https://codereview.chromium.org/787033004/diff/60001/chrome/browser/geolocation/geolocation_browsertest.cc File chrome/browser/geolocation/geolocation_browsertest.cc (right): https://codereview.chromium.org/787033004/diff/60001/chrome/browser/geolocation/geolocation_browsertest.cc#newcode129 chrome/browser/geolocation/geolocation_browsertest.cc:129: class MockView : public PermissionBubbleView { On 2014/12/17 17:20:18, ...
6 years ago (2014-12-18 22:09:10 UTC) #4
felt
markusheintz@, would you PTAL? michael is OOO now until jan.
6 years ago (2014-12-18 22:27:34 UTC) #6
felt
Oops, confused. timvolodine@: could you review c/b/geolocation/* since michael is OOO until jan? markusheintz@, could ...
6 years ago (2014-12-18 22:37:56 UTC) #8
timvolodine
thanks felt@, quite some re-wiring.. it may be more readable to have separate tests for ...
6 years ago (2014-12-19 16:02:21 UTC) #9
felt
I (personally) find it easier to check that the functionality is perfectly parallel by having ...
6 years ago (2014-12-19 16:46:31 UTC) #10
timvolodine
lgtm modulo comments https://codereview.chromium.org/787033004/diff/140001/chrome/browser/geolocation/geolocation_permission_context_unittest.cc File chrome/browser/geolocation/geolocation_permission_context_unittest.cc (right): https://codereview.chromium.org/787033004/diff/140001/chrome/browser/geolocation/geolocation_permission_context_unittest.cc#newcode380 chrome/browser/geolocation/geolocation_permission_context_unittest.cc:380: // Tests ---------------------------------------------------------------------- On 2014/12/19 16:46:31, ...
6 years ago (2014-12-19 19:47:04 UTC) #11
felt
markusheintz, can you please review the website_settings files? https://codereview.chromium.org/787033004/diff/140001/chrome/browser/geolocation/geolocation_permission_context_unittest.cc File chrome/browser/geolocation/geolocation_permission_context_unittest.cc (right): https://codereview.chromium.org/787033004/diff/140001/chrome/browser/geolocation/geolocation_permission_context_unittest.cc#newcode380 chrome/browser/geolocation/geolocation_permission_context_unittest.cc:380: // ...
5 years, 10 months ago (2015-01-30 00:59:20 UTC) #12
felt
Oops, Markus I had put the wrong username for you. PTAL at the website_settings files?
5 years, 10 months ago (2015-01-30 21:32:21 UTC) #14
markusheintz_
LGTM https://codereview.chromium.org/787033004/diff/240001/chrome/browser/geolocation/geolocation_permission_context_unittest.cc File chrome/browser/geolocation/geolocation_permission_context_unittest.cc (right): https://codereview.chromium.org/787033004/diff/240001/chrome/browser/geolocation/geolocation_permission_context_unittest.cc#newcode288 chrome/browser/geolocation/geolocation_permission_context_unittest.cc:288: return manager->requests_.front()->GetMessageText(); This is only used once in ...
5 years, 10 months ago (2015-02-02 10:46:52 UTC) #15
felt
https://codereview.chromium.org/787033004/diff/240001/chrome/browser/geolocation/geolocation_permission_context_unittest.cc File chrome/browser/geolocation/geolocation_permission_context_unittest.cc (right): https://codereview.chromium.org/787033004/diff/240001/chrome/browser/geolocation/geolocation_permission_context_unittest.cc#newcode288 chrome/browser/geolocation/geolocation_permission_context_unittest.cc:288: return manager->requests_.front()->GetMessageText(); On 2015/02/02 10:46:52, markusheintz_ wrote: > This ...
5 years, 10 months ago (2015-02-02 13:03:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/787033004/320001
5 years, 10 months ago (2015-02-02 22:14:10 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/51150)
5 years, 10 months ago (2015-02-02 23:04:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/787033004/340001
5 years, 10 months ago (2015-02-04 10:28:38 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/51870)
5 years, 10 months ago (2015-02-04 11:19:53 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/787033004/340001
5 years, 10 months ago (2015-02-04 11:23:51 UTC) #26
commit-bot: I haz the power
Committed patchset #18 (id:340001)
5 years, 10 months ago (2015-02-04 11:48:17 UTC) #27
commit-bot: I haz the power
Patchset 18 (id:??) landed as https://crrev.com/f57c61952870c6027dbf220eff8b2d703bfed3c8 Cr-Commit-Position: refs/heads/master@{#314541}
5 years, 10 months ago (2015-02-04 11:50:20 UTC) #28
ccameron
A revert of this CL (patchset #18 id:340001) has been created in https://codereview.chromium.org/902643003/ by ccameron@chromium.org. ...
5 years, 10 months ago (2015-02-04 19:08:45 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/787033004/360001
5 years, 10 months ago (2015-02-11 21:32:20 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/41786)
5 years, 10 months ago (2015-02-11 21:45:31 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/787033004/380001
5 years, 10 months ago (2015-02-11 23:00:26 UTC) #35
commit-bot: I haz the power
Committed patchset #20 (id:380001)
5 years, 10 months ago (2015-02-12 00:25:04 UTC) #36
commit-bot: I haz the power
Patchset 20 (id:??) landed as https://crrev.com/d9f24fc092eba7accd05df923b1a1aa911a8ca38 Cr-Commit-Position: refs/heads/master@{#315883}
5 years, 10 months ago (2015-02-12 00:25:37 UTC) #37
felt
A revert of this CL (patchset #20 id:380001) has been created in https://codereview.chromium.org/924043002/ by felt@chromium.org. ...
5 years, 10 months ago (2015-02-13 17:00:59 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/787033004/400001
5 years, 10 months ago (2015-02-13 17:25:32 UTC) #40
commit-bot: I haz the power
Committed patchset #21 (id:400001)
5 years, 10 months ago (2015-02-13 19:32:30 UTC) #41
commit-bot: I haz the power
5 years, 10 months ago (2015-02-13 19:33:11 UTC) #42
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/9740ee70258c4a4ce0f91a0fd9bc56c104caf990
Cr-Commit-Position: refs/heads/master@{#316261}

Powered by Google App Engine
This is Rietveld 408576698