summaryrefslogtreecommitdiffstats
path: root/net/base/dns_util_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add unittest for ".." in a DNS name and add comment.agl@chromium.org2010-07-301-0/+3
| | | | | | (This is a follow up to r53782.) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54324 0039d316-1c4b-4281-b951-d872f2087c98
* net: include the root label in DNSDomainFromDotagl@chromium.org2010-07-271-8/+14
| | | | | | | | | | | | | | I was previously sloppy with DNSDomainFromDot. Really it should have included a terminating NUL in the result string to represent the root label, but it actually omitted it because it was more convenient to test that way. This CL fixes that. BUG=none TEST=net_unittests http://codereview.chromium.org/3070002/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53782 0039d316-1c4b-4281-b951-d872f2087c98
* ForceTLS: hash hostnames, handle subdomains, canonicalise.agl@chromium.org2009-09-091-0/+60
It turns out that JSON[Reader|Writer] cannot handle periods in key names(!). Because of this, an also to avoid leaking a sort of ForceTLS browser history in the state file, we hash the domain names. Also, this patch tries to implement the RFCs with respect to canonicalising the names. Since IDN processing has already occured by the time the name reaches us, there's only so much that we can do however. http://codereview.chromium.org/201033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25696 0039d316-1c4b-4281-b951-d872f2087c98