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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/UrlSchemeTest.java

Issue 2455133004: Make the content scheme local (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/javatests/src/org/chromium/chrome/browser/UrlSchemeTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/UrlSchemeTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/UrlSchemeTest.java
index e7b57bc230e09d8d3ec8e229cb1560c2677fb7b8..a7efc9218f2bcd220d1dd9b3a4623828dd290a41 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/UrlSchemeTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/UrlSchemeTest.java
@@ -77,7 +77,7 @@ public class UrlSchemeTest extends ChromeActivityTestCaseBase<ChromeActivity> {
}
/**
- * Test that a content URL is allowed within a data URL.
+ * Test that a content URL is not allowed within a data URL.
*/
@MediumTest
@Feature({"Navigation"})
@@ -86,11 +86,11 @@ public class UrlSchemeTest extends ChromeActivityTestCaseBase<ChromeActivity> {
resetResourceRequestCountInContentProvider(target);
loadUrl(UrlUtils.encodeHtmlDataUri(
"<img src=\"" + createContentUrl(target) + "\">"));
- ensureResourceRequestCountInContentProviderNotLessThan(target, 1);
+ ensureResourceRequestCountInContentProvider(target, 0);
}
/**
- * Test that a content URL is allowed within a local file.
+ * Test that a content URL is not allowed within a local file.
*/
@MediumTest
@Feature({"Navigation"})
@@ -102,7 +102,7 @@ public class UrlSchemeTest extends ChromeActivityTestCaseBase<ChromeActivity> {
file, target, "<img src=\"" + createContentUrl(target) + "\">");
resetResourceRequestCountInContentProvider(target);
loadUrl("file:///" + file.getAbsolutePath());
- ensureResourceRequestCountInContentProviderNotLessThan(target, 1);
+ ensureResourceRequestCountInContentProvider(target, 0);
} finally {
TestFileUtil.deleteFile(file);
}
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698