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

Unified Diff: url/origin_unittest.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « url/origin.cc ('k') | url/url_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/origin_unittest.cc
diff --git a/url/origin_unittest.cc b/url/origin_unittest.cc
index d08342e04d1006ec018c3d8eed5e544770f9c589..c094ee6cf50efe6470da1da9586a11a4644fc341 100644
--- a/url/origin_unittest.cc
+++ b/url/origin_unittest.cc
@@ -26,6 +26,11 @@ TEST(OriginTest, constructValidOrigin) {
EXPECT_EQ("http://example.com:8080", origin.string());
}
+TEST(OriginTest, constructValidFileOrigin) {
+ Origin origin("file://");
+ EXPECT_EQ("file://", origin.string());
+}
+
TEST(OriginTest, constructValidOriginWithoutPort) {
Origin origin("wss://example2.com");
EXPECT_EQ("wss://example2.com", origin.string());
« no previous file with comments | « url/origin.cc ('k') | url/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698