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

Issue 2722243002: 📰 Add tests for Tile and TileGroup (Closed)

Created:
3 years, 9 months ago by dgn
Modified:
3 years, 9 months ago
CC:
chromium-reviews, mikecase+watch_chromium.org, jbudorick+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP Client] Add tests for Tile and TileGroup Adds tests focused around TileGroup#buildTiles and TileGroup#renderTileViews. Includes some modifications to the EnableFeatures annotation to mock the FeatureList as soon as the rule is added, without requiring to set the annotation on each test. BUG=694297 Review-Url: https://codereview.chromium.org/2722243002 Cr-Commit-Position: refs/heads/master@{#454846} Committed: https://chromium.googlesource.com/chromium/src/+/31e02521bed88cdfc15b76b2d24065eeda082faf

Patch Set 1 #

Patch Set 2 : moar tests #

Total comments: 10

Patch Set 3 : Remove mock layout, address other comments #

Patch Set 4 : Revert default Rule effect #

Unified diffs Side-by-side diffs Delta from patch set Stats (+434 lines, -51 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/suggestions/TileGroup.java View 1 2 3 chunks +12 lines, -13 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/suggestions/TileGroupTest.java View 1 2 3 6 chunks +298 lines, -37 lines 0 comments Download
A chrome/android/junit/src/org/chromium/chrome/browser/suggestions/TileTest.java View 1 1 chunk +114 lines, -0 lines 0 comments Download
M testing/android/junit/java/src/org/chromium/testing/local/AnnotationProcessor.java View 1 2 3 2 chunks +9 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (20 generated)
dgn
PTAL
3 years, 9 months ago (2017-03-02 15:07:52 UTC) #5
dgn
3 years, 9 months ago (2017-03-02 15:08:34 UTC) #7
Bernhard Bauer
https://codereview.chromium.org/2722243002/diff/20001/chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java File chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java (right): https://codereview.chromium.org/2722243002/diff/20001/chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java#newcode45 chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java:45: * choose which features to enable. All are disabled ...
3 years, 9 months ago (2017-03-03 11:54:39 UTC) #10
dgn
PTAL https://codereview.chromium.org/2722243002/diff/20001/chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java File chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java (right): https://codereview.chromium.org/2722243002/diff/20001/chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java#newcode45 chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java:45: * choose which features to enable. All are ...
3 years, 9 months ago (2017-03-03 13:48:31 UTC) #11
Bernhard Bauer
lgtm https://codereview.chromium.org/2722243002/diff/20001/chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java File chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java (right): https://codereview.chromium.org/2722243002/diff/20001/chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java#newcode45 chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java:45: * choose which features to enable. All are ...
3 years, 9 months ago (2017-03-03 14:01:23 UTC) #14
dgn
Thanks! dtrainor@chromium.org: Please review changes in //testing/android https://codereview.chromium.org/2722243002/diff/20001/chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java File chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java (right): https://codereview.chromium.org/2722243002/diff/20001/chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java#newcode45 chrome/android/junit/src/org/chromium/chrome/browser/EnableFeatures.java:45: * choose ...
3 years, 9 months ago (2017-03-03 15:53:45 UTC) #18
David Trainor- moved to gerrit
testing/android lgtm
3 years, 9 months ago (2017-03-04 04:09:24 UTC) #23
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/2722243002/60001
3 years, 9 months ago (2017-03-06 09:49:58 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/31e02521bed88cdfc15b76b2d24065eeda082faf
3 years, 9 months ago (2017-03-06 10:48:15 UTC) #29
Michael van Ouwerkerk
3 years, 9 months ago (2017-03-09 11:02:59 UTC) #30
Message was sent while issue was closed.
post-commit lgtm

Thanks!

Powered by Google App Engine
This is Rietveld 408576698