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

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

Issue 2458793003: 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 dba60d82180ab7a0042a7df453afaf3b558fa831..9431398bee63dce5b9e644de7a5a3e4af38bc5e5 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/UrlSchemeTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/UrlSchemeTest.java
@@ -79,7 +79,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"})
@@ -88,11 +88,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"})
@@ -104,7 +104,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