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

Unified Diff: third_party/WebKit/Source/platform/network/NetworkUtilsTest.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
Index: third_party/WebKit/Source/platform/network/NetworkUtilsTest.cpp
diff --git a/third_party/WebKit/Source/platform/network/NetworkUtilsTest.cpp b/third_party/WebKit/Source/platform/network/NetworkUtilsTest.cpp
index 39ba677984bc897a524c59137fae78ecc88bdea0..bad3acfbe5fc72864c3c96505d51dcc3e16d3f57 100644
--- a/third_party/WebKit/Source/platform/network/NetworkUtilsTest.cpp
+++ b/third_party/WebKit/Source/platform/network/NetworkUtilsTest.cpp
@@ -59,24 +59,32 @@ TEST(NetworkUtilsTest, IsReservedIPAddress) {
}
TEST(NetworkUtilsTest, GetDomainAndRegistry) {
- EXPECT_EQ("", NetworkUtils::getDomainAndRegistry(
- "", NetworkUtils::IncludePrivateRegistries));
- EXPECT_EQ("", NetworkUtils::getDomainAndRegistry(
- ".", NetworkUtils::IncludePrivateRegistries));
- EXPECT_EQ("", NetworkUtils::getDomainAndRegistry(
- "..", NetworkUtils::IncludePrivateRegistries));
- EXPECT_EQ("", NetworkUtils::getDomainAndRegistry(
- "com", NetworkUtils::IncludePrivateRegistries));
- EXPECT_EQ("", NetworkUtils::getDomainAndRegistry(
- ".com", NetworkUtils::IncludePrivateRegistries));
+ EXPECT_EQ("",
+ NetworkUtils::getDomainAndRegistry(
+ "", NetworkUtils::IncludePrivateRegistries));
+ EXPECT_EQ("",
+ NetworkUtils::getDomainAndRegistry(
+ ".", NetworkUtils::IncludePrivateRegistries));
+ EXPECT_EQ("",
+ NetworkUtils::getDomainAndRegistry(
+ "..", NetworkUtils::IncludePrivateRegistries));
+ EXPECT_EQ("",
+ NetworkUtils::getDomainAndRegistry(
+ "com", NetworkUtils::IncludePrivateRegistries));
+ EXPECT_EQ("",
+ NetworkUtils::getDomainAndRegistry(
+ ".com", NetworkUtils::IncludePrivateRegistries));
EXPECT_EQ(
- "", NetworkUtils::getDomainAndRegistry(
- "www.example.com:8000", NetworkUtils::IncludePrivateRegistries));
+ "",
+ NetworkUtils::getDomainAndRegistry(
+ "www.example.com:8000", NetworkUtils::IncludePrivateRegistries));
- EXPECT_EQ("", NetworkUtils::getDomainAndRegistry(
- "localhost", NetworkUtils::IncludePrivateRegistries));
- EXPECT_EQ("", NetworkUtils::getDomainAndRegistry(
- "127.0.0.1", NetworkUtils::IncludePrivateRegistries));
+ EXPECT_EQ("",
+ NetworkUtils::getDomainAndRegistry(
+ "localhost", NetworkUtils::IncludePrivateRegistries));
+ EXPECT_EQ("",
+ NetworkUtils::getDomainAndRegistry(
+ "127.0.0.1", NetworkUtils::IncludePrivateRegistries));
EXPECT_EQ("example.com",
NetworkUtils::getDomainAndRegistry(
@@ -87,9 +95,10 @@ TEST(NetworkUtilsTest, GetDomainAndRegistry) {
EXPECT_EQ("example.com",
NetworkUtils::getDomainAndRegistry(
"static.example.com", NetworkUtils::IncludePrivateRegistries));
- EXPECT_EQ("example.com", NetworkUtils::getDomainAndRegistry(
- "multilevel.www.example.com",
- NetworkUtils::IncludePrivateRegistries));
+ EXPECT_EQ("example.com",
+ NetworkUtils::getDomainAndRegistry(
+ "multilevel.www.example.com",
+ NetworkUtils::IncludePrivateRegistries));
EXPECT_EQ("example.co.uk",
NetworkUtils::getDomainAndRegistry(
"www.example.co.uk", NetworkUtils::IncludePrivateRegistries));

Powered by Google App Engine
This is Rietveld 408576698