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

Issue 2291733002: Assert section ordering in NewTabPageAdapterTest (Closed)

Created:
4 years, 3 months ago by Philipp Keck
Modified:
4 years, 3 months ago
CC:
chromium-reviews, ntp-dev+reviews_chromium.org, Marc Treib
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Assert section ordering in NewTabPageAdapterTest Introduce data class SectionDescriptor and helper class ItemsMatcher, which checks expectations against the list of NewTabPageItems from the NewTabPageAdapter. Adjust the assertItemsFor() method and its helper methods to use the ItemsMatcher. Create new assertMatches() for checking single sections. BUG=None Committed: https://crrev.com/f3afa6ede6bdb252657890c5498aa703853885b6 Cr-Commit-Position: refs/heads/master@{#415294}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Michael's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -48 lines) Patch
M chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java View 1 8 chunks +130 lines, -48 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
Philipp Keck
There was some discussion on previous CLs about the assertItemsFor() method. This CL implements some ...
4 years, 3 months ago (2016-08-29 16:58:32 UTC) #2
Michael van Ouwerkerk
lgtm with nits This test is a bit fiddly and will still need updates in ...
4 years, 3 months ago (2016-08-30 10:35:35 UTC) #5
Philipp Keck
https://codereview.chromium.org/2291733002/diff/1/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java File chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java (right): https://codereview.chromium.org/2291733002/diff/1/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java#newcode54 chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java:54: public SectionDescriptor(boolean moreButton, boolean statusCard, int numSuggestions) { On ...
4 years, 3 months ago (2016-08-30 14:01:39 UTC) #8
PEConn
lgtm
4 years, 3 months ago (2016-08-30 14:08:55 UTC) #11
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/2291733002/20001
4 years, 3 months ago (2016-08-30 14:44:34 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-08-30 14:48:45 UTC) #17
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 14:52:13 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f3afa6ede6bdb252657890c5498aa703853885b6
Cr-Commit-Position: refs/heads/master@{#415294}

Powered by Google App Engine
This is Rietveld 408576698