summaryrefslogtreecommitdiffstats
path: root/url/url_parse_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Support URL fragment resolution against non-hierarchical schemesjoth@chromium.org2013-11-231-8/+8
| | | | | | | | | | | | | | | | | | | | | | Support URL fragment resolution against non-hierarchical schemes As a result, data: about: etc now have 'query' and 'ref' components parsed; as a result a new GURL::GetContent() convenience is added to retrieve the spec with the scheme stripped off. A complication in supporting this is that we now need to allow whitespace to trailing whitespace to be preserved when transferring url_parse::Parsed structs between KURL and GURL. Without this, the URL prior to the #fragment can change (i.e. whitespace stripped) when following an anchor link which breaks the page (causes reload from source). See http://crbug.com/291747 for more details on this. R=brettw@chromium.org TBR=cbentzel@chromium.org BUG=291747 Review URL: https://codereview.chromium.org/23835019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236917 0039d316-1c4b-4281-b951-d872f2087c98
* Make relative file url parsing fail where there is a host:port in the ↵tsepez@chromium.org2013-09-181-16/+80
| | | | | | | | | | | | | relative URL. BUG=285720 R=brettw@chromium.org, jar@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223928 Review URL: https://codereview.chromium.org/23464046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223969 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 223928 "Make relative file url parsing fail where there i..."tsepez@chromium.org2013-09-181-80/+16
| | | | | | | | | | | | | | | > Make relative file url parsing fail where there is a host:port in the relative URL. > > BUG=285720 > R=brettw@chromium.org, jar@chromium.org > > Review URL: https://codereview.chromium.org/23464046 TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/23702051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223940 0039d316-1c4b-4281-b951-d872f2087c98
* Make relative file url parsing fail where there is a host:port in the ↵tsepez@chromium.org2013-09-181-16/+80
| | | | | | | | | | | relative URL. BUG=285720 R=brettw@chromium.org, jar@chromium.org Review URL: https://codereview.chromium.org/23464046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223928 0039d316-1c4b-4281-b951-d872f2087c98
* url: Replace Google copyright with the Chromium licence in all files that ↵tfarina@chromium.org2013-04-241-28/+3
| | | | | | | | | | | uses it. BUG=229660 R=brettw@chromium.org Review URL: https://codereview.chromium.org/14222028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195974 0039d316-1c4b-4281-b951-d872f2087c98
* url: Build it as a static library.tfarina@chromium.org2013-04-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is temporary just to avoid weird link issues in Windows XP. - Update the gyp file. - Rename the gyp file from googleurl.gyp to url.gyp, so it matches the directory name. - Update the header include paths. - Update the header include guards. - Rename the target name from googleurl to url and googleurl_unittests to url_unittests. - Remove GURL_API (this will be replaced by URL_EXPORT when we componentize it again). - Remove url_common.h (will be replaced by url_export.h when we componentize it again). BUG=229660 TEST=url_unittests R=brettw@chromium.org Review URL: https://codereview.chromium.org/13998025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195005 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 193777 "url: Changes to make it build standalone."jochen@chromium.org2013-04-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | url/url_canon_stdstring.h:65: error: undefined reference to 'vtable for url_canon::StdStringCanonOutput' > url: Changes to make it build standalone. > > - Update the gyp file. > - Rename the gyp file from googleurl.gyp to url.gyp, so it matches the directory > name. > - Update the header include paths. > - Update the header include guards. > - Rename the target name from googleurl to url and googleurl_unittests to > url_unittests. > - Add missing OVERRIDEs where clang complains. > > BUG=229660 > TEST=url_unittests > R=brettw@chromium.org > > Review URL: https://codereview.chromium.org/14016005 TBR=tfarina@chromium.org Review URL: https://codereview.chromium.org/14264002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194155 0039d316-1c4b-4281-b951-d872f2087c98
* url: Remove using namespace declaration from url_parse_unittests.cctfarina@chromium.org2013-04-151-7/+8
| | | | | | | | | | | | | Instead we wrap the entire file under namespace url_parse and the unnamed namespace, to be compliant with the ODR. BUG=82078 TEST=googleurl_unittests TBR=brettw@chromium.org Review URL: https://codereview.chromium.org/14243002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194130 0039d316-1c4b-4281-b951-d872f2087c98
* url: Changes to make it build standalone.tfarina@chromium.org2013-04-111-1/+1
| | | | | | | | | | | | | | | | | | | - Update the gyp file. - Rename the gyp file from googleurl.gyp to url.gyp, so it matches the directory name. - Update the header include paths. - Update the header include guards. - Rename the target name from googleurl to url and googleurl_unittests to url_unittests. - Add missing OVERRIDEs where clang complains. BUG=229660 TEST=url_unittests R=brettw@chromium.org Review URL: https://codereview.chromium.org/14016005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193777 0039d316-1c4b-4281-b951-d872f2087c98
* Move googleurl into the Chrome repo.brettw@chromium.org2013-04-101-0/+649
Original location: https://code.google.com/p/google-url/ This includes changes up to r184. These files are unchanged from the Google Code repo and do not yet build. Updating includes, etc. will be done in a separate pass. Review URL: https://codereview.chromium.org/13821004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193439 0039d316-1c4b-4281-b951-d872f2087c98