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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/ContentSuggestionsTestUtils.java

Issue 2645243002: (Android) Removing deprecated methods in chrome_junit_tests (Closed)
Patch Set: Patch version after last code changes from other members Created 3 years, 11 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
Index: chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/ContentSuggestionsTestUtils.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/ContentSuggestionsTestUtils.java b/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/ContentSuggestionsTestUtils.java
index 7ca06c3a1cfbbecce5f3f4a158c15da14f688ba8..b0f9295e5b5264fed266b8dc3332bf8e11f183ab 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/ContentSuggestionsTestUtils.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/ContentSuggestionsTestUtils.java
@@ -11,7 +11,6 @@ import org.chromium.chrome.browser.ntp.snippets.CategoryStatus;
import org.chromium.chrome.browser.ntp.snippets.ContentSuggestionsCardLayout;
import org.chromium.chrome.browser.ntp.snippets.ContentSuggestionsCardLayout.ContentSuggestionsCardLayoutEnum;
import org.chromium.chrome.browser.ntp.snippets.FakeSuggestionsSource;
-import org.chromium.chrome.browser.ntp.snippets.KnownCategories;
import org.chromium.chrome.browser.ntp.snippets.SectionHeaderViewHolder;
import org.chromium.chrome.browser.ntp.snippets.SnippetArticle;
import org.chromium.chrome.browser.ntp.snippets.SnippetArticleViewHolder;
@@ -41,15 +40,6 @@ public final class ContentSuggestionsTestUtils {
}
/**
- * @deprecated The hardcoded category is a common source of bugs. Prefer
- * {@link #createDummySuggestions(int, int)}
- */
- @Deprecated
- public static List<SnippetArticle> createDummySuggestions(int count) {
- return createDummySuggestions(count, KnownCategories.BOOKMARKS);
- }
-
- /**
* Registers a category according to the provided category info.
* @return the suggestions added to the newly registered category.
*/

Powered by Google App Engine
This is Rietveld 408576698