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

Issue 2721253002: Last_n: Add instrumentation test for the tab closure case. (Closed)

Created:
3 years, 9 months ago by carlosk
Modified:
3 years, 9 months ago
Reviewers:
Dmitry Titov, dewittj
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Last_n: Add instrumentation test for the tab closure case. The existing unit test for making sure that tabs being closed do not generate last_n snapshots is somewhat artificial because the test itself guarantees proper ordering. Having this instrumentation (integration) level test is a more complete way of testing this code is actually doing what's supposed and that its expectations of observer method calling order are correct. BUG=685791 Review-Url: https://codereview.chromium.org/2721253002 Cr-Commit-Position: refs/heads/master@{#454021} Committed: https://chromium.googlesource.com/chromium/src/+/c8f0e4eb516b29f1e871f7fb80f5ffc7a541e81c

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase. #

Patch Set 3 : Comment changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -3 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java View 1 2 2 chunks +63 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
carlosk
dewittj@: PTAL. dimich@: FYI.
3 years, 9 months ago (2017-03-01 02:26:14 UTC) #4
carlosk
Adding dimich@ as reviewer too because of comment change in recent_tab_helper.cc.
3 years, 9 months ago (2017-03-01 02:28:44 UTC) #6
dewittj
lgtm barring comment nits https://codereview.chromium.org/2721253002/diff/1/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/2721253002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java#newcode151 chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java:151: // Wait a bit and ...
3 years, 9 months ago (2017-03-01 19:21:05 UTC) #9
carlosk
https://codereview.chromium.org/2721253002/diff/1/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/2721253002/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java#newcode151 chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/RecentTabsTest.java:151: // Wait a bit and checks that no page ...
3 years, 9 months ago (2017-03-01 19:47:43 UTC) #13
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/2721253002/60001
3 years, 9 months ago (2017-03-01 19:48:19 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 20:31:33 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c8f0e4eb516b29f1e871f7fb80f5...

Powered by Google App Engine
This is Rietveld 408576698