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

Issue 2833653002: Last_n: instrumentation tests to verify timely snapshot deletion. (Closed)

Created:
3 years, 8 months ago by carlosk
Modified:
3 years, 5 months ago
Reviewers:
dewittj
CC:
chromium-reviews, David Trainor- moved to gerrit
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Last_n: instrumentation tests to verify timely snapshot deletion. Adds new tests to RecentTabsTest.java to verify that offline snapshots created by last_n are properly deleted when successfully navigating to another page and upon tab closure. These actions are important to comply with privacy requirements for this feature. This change re-adds instrumentation tests previously committed along with a related bugfix [1] that were reverted due to them being flaky. It seems that the underlying issue causing the flakyness has been fixed [2] [3] so these should now work as expected. [1] https://codereview.chromium.org/2824623002/ [2] https://bugs.chromium.org/p/chromium/issues/detail?id=592961 (restricted) [3] https://bugs.chromium.org/p/chromium/issues/detail?id=738490 BUG=711770 Review-Url: https://codereview.chromium.org/2833653002 Cr-Commit-Position: refs/heads/master@{#487727} Committed: https://chromium.googlesource.com/chromium/src/+/f6fd25d5826f1a62010b08037eb50c396b05d7a2

Patch Set 1 : Original instrumentation tests from https://codereview.chromium.org/2824623002/ #

Patch Set 2 : Rebase. #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase. #

Patch Set 5 : Yet one more rebase #

Total comments: 16

Patch Set 6 : Address CR comments. #

Patch Set 7 : Simplified page deletion monitoring #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -16 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java View 1 2 3 4 5 6 11 chunks +142 lines, -14 lines 0 comments Download

Messages

Total messages: 33 (24 generated)
carlosk
dewittj@: Please review changes in OfflinePageBridge.java dtrainor@: Please review changes in RecentTabsTest.java
3 years, 5 months ago (2017-07-18 01:36:54 UTC) #18
dewittj
(dtrainor to CC) lgtm - just nits at this point. Didn't these tests get reverted ...
3 years, 5 months ago (2017-07-18 20:45:30 UTC) #22
dewittj
oh, just read the cl description in detail, nm about flake question.
3 years, 5 months ago (2017-07-18 20:46:03 UTC) #23
carlosk
Thanks. https://codereview.chromium.org/2833653002/diff/80001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java (right): https://codereview.chromium.org/2833653002/diff/80001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java#newcode91 chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java:91: // Ensure we start in an offline state. ...
3 years, 5 months ago (2017-07-18 21:42:18 UTC) #24
dewittj
still lgtm, but I do disagree on some of the finer points :) https://codereview.chromium.org/2833653002/diff/80001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java File ...
3 years, 5 months ago (2017-07-18 22:00:09 UTC) #25
carlosk
Refactored deletion monitoring following your suggestion and it does look better. https://codereview.chromium.org/2833653002/diff/80001/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java (right): ...
3 years, 5 months ago (2017-07-19 01:02:51 UTC) #26
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/2833653002/120001
3 years, 5 months ago (2017-07-19 01:03:24 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/f6fd25d5826f1a62010b08037eb50c396b05d7a2
3 years, 5 months ago (2017-07-19 02:49:38 UTC) #32
jdoerrie
3 years, 5 months ago (2017-07-20 09:47:29 UTC) #33
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/2983953002/ by jdoerrie@chromium.org.

The reason for reverting is: Likely cause of https://crbug.com/746699.

testLastNPageIsDeletedUponNavigation is flaky..

Powered by Google App Engine
This is Rietveld 408576698