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

Issue 2338203002: Added end-to-end tests for navigator.share. (Closed)

Created:
4 years, 3 months ago by Matt Giuca
Modified:
4 years, 2 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added end-to-end tests for navigator.share. There are separate tests for pre-Lollipop and post-Lollipop Android (which run completely different code paths in ShareHelper and exhibit different behaviour). On pre-Lolliop devices, the post-Lollipop tests are skipped. On post-Lollipop devices, both sets of tests are run. Adds some new bits to ShareHelper to facilitate testing. BUG=645006 Committed: https://crrev.com/03d2b0f7c783a91ffdb37942208ffa4ec79b6fb9 Cr-Commit-Position: refs/heads/master@{#421417}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase. #

Total comments: 6

Patch Set 3 : Rebase. #

Patch Set 4 : Address review. #

Patch Set 5 : More minor nits. #

Patch Set 6 : Rebase. #

Total comments: 6

Patch Set 7 : Respond to review (except the default implementation thing). #

Patch Set 8 : Use a default implementation of the interface to avoid if statements. #

Patch Set 9 : Revert Patch Set 8, as discussed. #

Patch Set 10 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -14 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/share/ShareHelper.java View 1 2 3 4 5 6 8 8 chunks +73 lines, -14 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/WebShareTest.java View 1 2 3 4 5 6 8 1 chunk +279 lines, -0 lines 0 comments Download
A content/test/data/android/webshare.html View 1 chunk +28 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (18 generated)
Matt Giuca
sammc: Review of tests. dtrainor: Owners, and detailed review of ShareHelper changes. Note: Depends on ...
4 years, 3 months ago (2016-09-14 07:22:38 UTC) #2
Sam McNally
https://codereview.chromium.org/2338203002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/WebShareTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/WebShareTest.java (right): https://codereview.chromium.org/2338203002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/WebShareTest.java#newcode96 chrome/android/javatests/src/org/chromium/chrome/browser/WebShareTest.java:96: tab.removeObserver(updateWaiter); This should go in tearDown() or a finally ...
4 years, 3 months ago (2016-09-19 00:50:03 UTC) #11
Matt Giuca
https://codereview.chromium.org/2338203002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/WebShareTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/WebShareTest.java (right): https://codereview.chromium.org/2338203002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/WebShareTest.java#newcode96 chrome/android/javatests/src/org/chromium/chrome/browser/WebShareTest.java:96: tab.removeObserver(updateWaiter); On 2016/09/19 00:50:03, Sam McNally wrote: > This ...
4 years, 3 months ago (2016-09-19 23:43:23 UTC) #14
Sam McNally
lgtm
4 years, 3 months ago (2016-09-20 00:29:15 UTC) #15
David Trainor- moved to gerrit
lgtm % comment nits. Had a suggestion about the FakeIntentReceiver interface, but I'm fine either ...
4 years, 3 months ago (2016-09-23 20:31:57 UTC) #20
Matt Giuca
David: PTAL, I think you should decide between PS 7 and 8, because PS 8 ...
4 years, 2 months ago (2016-09-26 01:54:31 UTC) #21
David Trainor- moved to gerrit
Yeah I think you're right. I'm ok without the merged interface :).
4 years, 2 months ago (2016-09-26 18:50:34 UTC) #22
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/2338203002/220001
4 years, 2 months ago (2016-09-28 00:07:50 UTC) #25
commit-bot: I haz the power
Committed patchset #10 (id:220001)
4 years, 2 months ago (2016-09-28 01:27:40 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 01:30:58 UTC) #28
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/03d2b0f7c783a91ffdb37942208ffa4ec79b6fb9
Cr-Commit-Position: refs/heads/master@{#421417}

Powered by Google App Engine
This is Rietveld 408576698