gecko-dev/netwerk/test
Nicholas Nethercote 742fc7eb48 Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley.
This function is an infallible alternative to nsIURI::GetSpec(). It's useful
when it's appropriate to handle a GetSpec() failure with a failure string, e.g.
for log/warning/error messages. It allows code like this:

  nsAutoCString spec;
  uri->GetSpec(spec);
  printf("uri: %s", spec.get());

to be changed to this:

  printf("uri: %s", uri->GetSpecOrDefault().get());

This introduces a slight behavioural change. Previously, if GetSpec() failed,
an empty string would be used here. Now, "[nsIURI::GetSpec failed]" will be
produced instead. In most cases this failure string will make for a clearer
log/warning/error message than the empty string.
* * *
Bug 1297961 (part 1b) - More GetSpecOrDefault() additions. r=hurley.

I will fold this into part 1 before landing.

--HG--
extra : rebase_source : ddc19a5624354ac098be019ca13cc24b99b80ddc
2016-08-26 16:02:31 +10:00
..
browser Bug 1126299 - Disable intermittent browser_child_resource.js on e10s linux64 debug. r=RyanVM DONTBUILD 2016-04-05 23:58:47 -03:00
crashtests Bug 1274044: Relax assertion in nsStandardURL for case when mDefaultPort is -1. r=valentin 2016-05-19 10:05:17 -07:00
gtest Bug 1288301 - Convert TestStandardURL to gtest r=mcmanus 2016-07-25 21:48:05 +02:00
httpserver Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
mochitests Bug 1282882 - Remove LoadContextInfo and LoadContext private browsing flags; r=jdm,mayhemer 2016-08-26 13:06:48 -04:00
reftest
unit Bug 1282882 - Remove LoadContextInfo and LoadContext private browsing flags; r=jdm,mayhemer 2016-08-26 13:06:48 -04:00
unit_ipc Bug 1291652 - Part 3: Update tests for fetching originAttributes from the nsILoadInfo, but not from the nsILoadContext. r=mayhemer 2016-08-22 08:41:00 -04:00
moz.build Bug 1288301 - Convert TestStandardURL to gtest r=mcmanus 2016-07-25 21:48:05 +02:00
NetwerkTestLogging.h
PropertiesTest.cpp Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
ReadNTLM.cpp
sites.txt
TestBind.cpp
TestBlockingSocket.cpp
TestCacheBlockFiles.cpp
TestCachePrefixKeyParser.cpp
TestCommon.h
TestCookie.cpp Bug 368964 - Cookie expires attribute should be absolute, not relative to server time. r=ehsan 2016-08-19 17:28:09 +08:00
TestDNS.cpp
TestDNSDaemon.cpp
TestFileInput2.cpp Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
TestIDN.cpp
TestIncrementalDownload.cpp
TestIOThreads.cpp Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
TestMakeAbs.cpp
TestOpen.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
TestOverlappedIO.cpp
TestProtocols.cpp Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley. 2016-08-26 16:02:31 +10:00
TestServ.cpp
TestServ.js
TestSocketInput.cpp
TestSocketIO.cpp
TestSocketTransport.cpp
TestStreamLoader.cpp
TestStreamPump.cpp
TestStreamTransport.cpp Bug 1294645 - Don't use NS_CALLBACK for callbacks in nsI{Input,Output,UnicharInput},Stream.idl. r=froydnj. 2016-08-12 17:36:22 +10:00
TestUDPSocket.cpp
TestUDPSocketProvider.cpp
TestUpload.cpp
TestURLManipulation.html
TestURLParser.cpp
TestWriteSpeed.cpp
urlparse_mac.dat
urlparse_unx.dat
urlparse_win.dat
urlparse.dat
urltest.cpp Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley. 2016-08-26 16:02:31 +10:00
urltests.dat