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

Unified Diff: trunk/src/base/files/file_path_unittest.cc

Issue 65043023: Revert 235752 "Fix chrome upload with content uri" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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: trunk/src/base/files/file_path_unittest.cc
===================================================================
--- trunk/src/base/files/file_path_unittest.cc (revision 235758)
+++ trunk/src/base/files/file_path_unittest.cc (working copy)
@@ -1228,33 +1228,4 @@
}
}
-#if defined(OS_ANDROID)
-TEST_F(FilePathTest, ContentUriTest) {
- const struct UnaryBooleanTestData cases[] = {
- { FPL("content://foo.bar"), true },
- { FPL("content://foo.bar/"), true },
- { FPL("content://foo/bar"), true },
- { FPL("CoNTenT://foo.bar"), true },
- { FPL("content://"), true },
- { FPL("content:///foo.bar"), true },
- { FPL("content://3foo/bar"), true },
- { FPL("content://_foo/bar"), true },
- { FPL(".. "), false },
- { FPL("foo.bar"), false },
- { FPL("content:foo.bar"), false },
- { FPL("content:/foo.ba"), false },
- { FPL("content:/dir/foo.bar"), false },
- { FPL("content: //foo.bar"), false },
- { FPL("content%2a%2f%2f"), false },
- };
-
- for (size_t i = 0; i < arraysize(cases); ++i) {
- FilePath input(cases[i].input);
- bool observed = input.IsContentUri();
- EXPECT_EQ(cases[i].expected, observed) <<
- "i: " << i << ", input: " << input.value();
- }
-}
-#endif
-
} // namespace base
« no previous file with comments | « trunk/src/base/files/file_path.cc ('k') | trunk/src/base/test/android/java/src/org/chromium/base/ContentUriTestUtils.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698