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

Unified Diff: net/base/host_port_pair_unittest.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: net/base/host_port_pair_unittest.cc
diff --git a/net/base/host_port_pair_unittest.cc b/net/base/host_port_pair_unittest.cc
index 5b15db9477dc69ad75eda897edb24801a8b78700..73f81b9405c62abd41afca78c39050f56e3acbe0 100644
--- a/net/base/host_port_pair_unittest.cc
+++ b/net/base/host_port_pair_unittest.cc
@@ -20,12 +20,12 @@ struct TestData {
string to_string;
string host_for_url;
} tests[] = {
- { "www.google.com", 80, "www.google.com:80", "www.google.com" },
- { "www.google.com", 443, "www.google.com:443", "www.google.com" },
- { "127.0.0.1", 80, "127.0.0.1:80", "127.0.0.1" },
- { "192.168.1.1", 80, "192.168.1.1:80", "192.168.1.1" },
- { "::1", 80, "[::1]:80", "[::1]" },
- { "2001:db8::42", 80, "[2001:db8::42]:80", "[2001:db8::42]" },
+ {"www.google.com", 80, "www.google.com:80", "www.google.com"},
+ {"www.google.com", 443, "www.google.com:443", "www.google.com"},
+ {"127.0.0.1", 80, "127.0.0.1:80", "127.0.0.1"},
+ {"192.168.1.1", 80, "192.168.1.1:80", "192.168.1.1"},
+ {"::1", 80, "[::1]:80", "[::1]"},
+ {"2001:db8::42", 80, "[2001:db8::42]:80", "[2001:db8::42]"},
};
TEST(HostPortPairTest, Parsing) {
@@ -83,15 +83,15 @@ TEST(HostPortPairTest, LessThan) {
HostPortPair b_11("b.com", 11);
EXPECT_FALSE(a_10 < a_10);
- EXPECT_TRUE(a_10 < a_11);
- EXPECT_TRUE(a_10 < b_10);
- EXPECT_TRUE(a_10 < b_11);
+ EXPECT_TRUE(a_10 < a_11);
+ EXPECT_TRUE(a_10 < b_10);
+ EXPECT_TRUE(a_10 < b_11);
EXPECT_FALSE(a_11 < a_10);
EXPECT_FALSE(a_11 < b_10);
EXPECT_FALSE(b_10 < a_10);
- EXPECT_TRUE(b_10 < a_11);
+ EXPECT_TRUE(b_10 < a_11);
EXPECT_FALSE(b_11 < a_10);
}
« no previous file with comments | « net/base/host_port_pair.cc ('k') | net/base/int128.h » ('j') | net/base/mime_sniffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698