summaryrefslogtreecommitdiffstats
path: root/net/base/dns_util_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fixes for re-enabling more MSVC level 4 warnings: net/ editionpkasting@chromium.org2014-07-081-4/+4
| | | | | | | | | | | | | | | | | | This contains fixes for the following sorts of issues: * Octal escape sequence terminated by decimal number * Possibly-uninitialized local variable * Assignment inside conditional * Signedness mismatch This also contains a very small number of other cleanups to nearby code. BUG=81439 TEST=none R=rch@chromium.org Review URL: https://codereview.chromium.org/374033002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281875 0039d316-1c4b-4281-b951-d872f2087c98
* net: allow invalid TransportSecurityState to process invalid DNS names.agl@chromium.org2013-11-011-13/+0
| | | | | | | | | | | | | | | Other parts of the network stack are processing and fetching results from invalid DNS names, but TransportSecurityState was rejecting them and therefore HSTS policies didn't apply. This change removes the sanity checking so that TransportSecurityState is more promiscuous in what it'll try and process. BUG=312689 Review URL: https://codereview.chromium.org/54623005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232463 0039d316-1c4b-4281-b951-d872f2087c98
* Protect against empty "labeled" DNS names in DnsTransaction.wez@chromium.org2013-05-171-2/+4
| | | | | | | | | | | | | | This CL makes the following changes: 1. DNSDomainFromDot fails for "empty" names such as "", ".", ".." etc. 2. Some additional unit-tests are added for DNSDomainFromDot(). 3. DnsTransaction now treats DNS names such as "." as invalid arguments. 4. Added a comment to SocketStreamDispatcherHost to clarify that SocketStreamHost is responsible for checking |url|. BUG=235161 Review URL: https://chromiumcodereview.appspot.com/14876023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200702 0039d316-1c4b-4281-b951-d872f2087c98
* HSTS: add net-internals UI.agl@chromium.org2011-02-171-0/+15
| | | | | | | | | | | | | | This change adds a simple DOMUI interface to the HSTS list. Since the list is stored, hashed in memory and on disk, there's no list of entries. But the set can be queried and we can provide insertion and deletion. BUG=none TEST=Open about:net-internals, goto HSTS tab. Review URL: http://codereview.chromium.org/6500010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75282 0039d316-1c4b-4281-b951-d872f2087c98
* 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