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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/suggestions/TileGroupTest.java

Issue 2723003010: 📰 Throw when unregistered feature is queried in tests (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSectionTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/junit/src/org/chromium/chrome/browser/suggestions/TileGroupTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/suggestions/TileGroupTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/suggestions/TileGroupTest.java
index 045a9a02162397a75537910ec170d774815dace3..67685d9bd926e7c0ad8142c68d9507a9f82d7bae 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/suggestions/TileGroupTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/suggestions/TileGroupTest.java
@@ -48,7 +48,8 @@
import org.robolectric.shadows.ShadowResources;
import org.chromium.chrome.R;
-import org.chromium.chrome.browser.EnableFeatures;
+import org.chromium.chrome.browser.ChromeFeatureList;
+import org.chromium.chrome.browser.Features;
import org.chromium.chrome.browser.favicon.LargeIconBridge.LargeIconCallback;
import org.chromium.chrome.browser.ntp.ContextMenuManager;
import org.chromium.chrome.browser.ntp.NTPTileSource;
@@ -62,14 +63,14 @@
@Config(manifest = Config.NONE,
shadows = {TileGroupTest.TileShadowResources.class,
TileGroupTest.ShadowLayoutInflater.class})
-@EnableFeatures({})
+@Features(@Features.Register(ChromeFeatureList.NTP_OFFLINE_PAGES_FEATURE_NAME))
public class TileGroupTest {
private static final int MAX_TILES_TO_FETCH = 4;
private static final int TILE_TITLE_LINES = 1;
private static final String[] URLS = {"https://www.google.com", "https://tellmedadjokes.com"};
@Rule
- public EnableFeatures.Processor mEnableFeatureProcessor = new EnableFeatures.Processor();
+ public Features.Processor mFeaturesProcessor = new Features.Processor();
@Mock
private TileGroup.Observer mTileGroupObserver;
« no previous file with comments | « chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSectionTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698