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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtilsTest.java

Issue 1894703002: [Offline pages] Removing offline pages from Bookmarks UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Marking more methods as visible for testing Created 4 years, 8 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/bookmarks/BookmarkUtilsTest.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/offlinepages/OfflinePageUtilsTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtilsTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtilsTest.java
index fb15360fafb092b403bd6af5377bbf98612a21f3..665ee90495a81ad4cf4bd53525887f1efbfb81bb 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtilsTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtilsTest.java
@@ -5,8 +5,6 @@
package org.chromium.chrome.browser.offlinepages;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.when;
import android.os.Environment;
@@ -59,16 +57,6 @@ public class OfflinePageUtilsTest {
@Test
@Feature({"OfflinePages"})
- public void testIsStorageAlmostFull() {
- when(mMockDataDirectory.getUsableSpace()).thenReturn(16L * (1 << 20)); // 16MB
- assertFalse(OfflinePageUtils.isStorageAlmostFull());
-
- when(mMockDataDirectory.getUsableSpace()).thenReturn(8L * (1 << 20)); // 8MB
- assertTrue(OfflinePageUtils.isStorageAlmostFull());
- }
-
- @Test
- @Feature({"OfflinePages"})
public void testStripSchemeFromOnlineUrl() {
// Only scheme gets stripped.
assertEquals("cs.chromium.org",
« no previous file with comments | « chrome/android/junit/src/org/chromium/chrome/browser/bookmarks/BookmarkUtilsTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698