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

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

Issue 2855033002: [Home] Fix top-offset for native pages (Closed)
Patch Set: [Home] Fix top-offset for native pages Created 3 years, 7 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/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.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/ntp/NativePageFactoryTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/ntp/NativePageFactoryTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/ntp/NativePageFactoryTest.java
index 52792765a89ecbbd0a488ba686488df55564e449..d9bce06c97442edab76dade90b690f71ad3be465 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/ntp/NativePageFactoryTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/ntp/NativePageFactoryTest.java
@@ -7,6 +7,12 @@ package org.chromium.chrome.browser.ntp;
import android.app.Activity;
import android.view.View;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.robolectric.annotation.Config;
+
import org.chromium.chrome.browser.ChromeActivity;
import org.chromium.chrome.browser.NativePage;
import org.chromium.chrome.browser.UrlConstants;
@@ -14,11 +20,6 @@ import org.chromium.chrome.browser.ntp.NativePageFactory.NativePageType;
import org.chromium.chrome.browser.tab.Tab;
import org.chromium.chrome.browser.tabmodel.TabModelSelector;
import org.chromium.testing.local.LocalRobolectricTestRunner;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.robolectric.annotation.Config;
/**
* Tests public methods in NativePageFactory.
@@ -102,7 +103,7 @@ public class NativePageFactoryTest {
}
@Override
- public NativePage buildRecentTabsPage(Activity activity, Tab tab) {
+ public NativePage buildRecentTabsPage(ChromeActivity activity, Tab tab) {
return new MockNativePage(NativePageType.RECENT_TABS);
}
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698