Backed out changeset bb033983fe8d (bug 1301344), this shouldn't be landed, it's for test
authorIris Hsiao <ihsiao@mozilla.com>
Fri, 09 Sep 2016 15:33:19 +0800
changeset 313388 3f507148324c43e50bacf5c36ce27e0c94cfbea7
parent 313387 22edc38ba187a99bc0d14430809ad0a14a63edac
child 313389 feff79e5b1374439f17c5ea10a559acf1380a8d5
child 313421 26862b624c712b2e1c66ab5004ed5a17a9805e70
push id30679
push usercbook@mozilla.com
push dateFri, 09 Sep 2016 10:03:06 +0000
treeherdermozilla-central@feff79e5b137 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1301344
milestone51.0a1
backs outbb033983fe8d5128bc3e01df3b56974898e25c57
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset bb033983fe8d (bug 1301344), this shouldn't be landed, it's for test
netwerk/test/gtest/TestStandardURL.cpp
--- a/netwerk/test/gtest/TestStandardURL.cpp
+++ b/netwerk/test/gtest/TestStandardURL.cpp
@@ -62,35 +62,8 @@ MOZ_GTEST_BENCH(TestStandardURL, Perf, [
         url->SetPath(NS_LITERAL_CSTRING("/some-path/one-the-net/about.html?with-a-query#for-you"));
         url->GetPath(out);
         url->SetQuery(NS_LITERAL_CSTRING("a=b&d=c&what-ever-you-want-to-be-called=45"));
         url->GetQuery(out);
         url->SetRef(NS_LITERAL_CSTRING("#some-book-mark"));
         url->GetRef(out);
     }
 });
-
-TEST(TestStandardURL, IPv4) {
-    nsCOMPtr<nsIURL> url( do_CreateInstance(NS_STANDARDURL_CONTRACTID) );
-    ASSERT_TRUE(url);
-    ASSERT_EQ(url->SetSpec(NS_LITERAL_CSTRING("http://other.com/")), NS_OK);
-
-    nsAutoCString out;
-
-    ASSERT_EQ(url->GetSpec(out), NS_OK);
-    ASSERT_TRUE(out == NS_LITERAL_CSTRING("http://other.com/"));
-
-    ASSERT_EQ(url->SetSpec(NS_LITERAL_CSTRING("http://%30%78%63%30%2e%30%32%35%30.01%2e")), NS_OK);
-    ASSERT_EQ(url->GetSpec(out), NS_OK);
-    ASSERT_TRUE(out == NS_LITERAL_CSTRING("http://192.168.0.1/"));
-
-    ASSERT_EQ(url->SetSpec(NS_LITERAL_CSTRING("http://0x7f000001")), NS_OK);
-    ASSERT_EQ(url->GetSpec(out), NS_OK);
-    ASSERT_TRUE(out == NS_LITERAL_CSTRING("http://127.0.0.1/"));
-
-    ASSERT_EQ(url->SetSpec(NS_LITERAL_CSTRING("http://00000000000000000000000000177.0000000.0000000.0001")), NS_OK);
-    ASSERT_EQ(url->GetSpec(out), NS_OK);
-    ASSERT_TRUE(out == NS_LITERAL_CSTRING("http://127.0.0.1/"));
-
-    ASSERT_EQ(url->SetSpec(NS_LITERAL_CSTRING("http://0x7f.0x00.0x00.0x01")), NS_OK);
-    ASSERT_EQ(url->GetSpec(out), NS_OK);
-    ASSERT_TRUE(out == NS_LITERAL_CSTRING("http://127.0.0.1/"));
-}