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

Unified Diff: webkit/database/database_util_unittest.cc

Issue 7053007: We need this work-around for file:/// URIs as (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | « webkit/database/database_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/database/database_util_unittest.cc
===================================================================
--- webkit/database/database_util_unittest.cc (revision 86470)
+++ webkit/database/database_util_unittest.cc (working copy)
@@ -42,4 +42,11 @@
TestVfsFilePath(false, "/db_name#suffix");
}
+TEST(DatabaseUtilTest, FileOriginIdentifiers) {
+ const GURL kFileOrigin(GURL("file:///").GetOrigin());
+ string16 id = DatabaseUtil::GetOriginIdentifier(kFileOrigin);
+ GURL origin = DatabaseUtil::GetOriginFromIdentifier(id);
+ EXPECT_EQ(kFileOrigin, origin);
+}
ericu 2011/05/25 02:38:42 How about a test for an http origin, while you're
michaeln 2011/05/25 03:23:36 Done.
+
} // namespace webkit_database
« no previous file with comments | « webkit/database/database_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698