gecko/xpcom/tests
Ehsan Akhgari 4e1fe285c4 Bug 1101337 - Make the ReplaceSubstring() XPCOM string API linear; r=froydnj
ReplaceSubstring() is an O(n*m) algorithm (n being the length of the
string and m being the number of occurrences of aTarget) because we have
to move the remainder of the string, search it again and potentially
memmove most of it again as we find more matches.  This patch rewrites
that function to make it O(n+m).

Note that we currently don't build TestStrings.cpp, so the test case in
this patch is not run automatically, but the test case has been verified
to pass separately by moving the test function into Gecko and calling it
during startup and stepping through it in the debugger.
2014-12-12 18:57:09 -05:00
..
bug656331_component Bug 1041941 - Use templates for Gecko XPCOM components. r=gps 2014-08-24 09:11:05 +09:00
component Bug 1079311 - Unlock mutex before logging error in RegisterContractIDLocked. r=bsmedberg 2014-10-08 16:08:28 -07:00
component_no_aslr Bug 1041941 - Use templates for Gecko XPCOM components. r=gps 2014-08-24 09:11:05 +09:00
external Bug 1077148 part 4 - Add and use new moz.build templates for Gecko programs and libraries. r=gps 2014-10-30 13:06:12 +09:00
gtest Bug 1098004 Implement snappy compression framing protocol as nsI(Input|Output)Streams. r=froydnj 2014-12-12 14:12:27 -05:00
regorder Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan 2014-06-24 22:12:07 -07:00
static-checker
unit Bug 997973: Call typed array and arraybuffer constructors with new in the tree; r=bz 2014-10-24 11:26:20 +02:00
windows Bug 1090389: Ensure that IOInterposer normalizes to long file names on Windows; r=froydnj 2014-11-12 14:01:45 -07:00
CvtURL.cpp Bug 1038756: Callsites creating a channel in /xpcom/ (r=bsmedberg) 2014-09-21 09:43:58 -07:00
Makefile.in Backout 69f755d4f257 (bug 1103825) for test failures 2014-11-25 19:18:08 -08:00
MoreTestingAtomList.h
MoreTestingAtoms.cpp
MoreTestingAtoms.h
moz.build Bug 1098004 Implement snappy compression framing protocol as nsI(Input|Output)Streams. r=froydnj 2014-12-12 14:12:27 -05:00
NotXPCOMTest.idl Bug 1069518 - XPTCall should refuse to implement interfaces with [notxpcom] methods, r=froydnj/bholley 2014-09-22 15:10:31 -04:00
nsIFileEnumerator.cpp
RegFactory.cpp
resources.h
ShowAlignments.cpp
SizeTest01.cpp
SizeTest02.cpp
SizeTest03.cpp
SizeTest04.cpp
SizeTest05.cpp
SizeTest06.cpp
test.properties
TestArguments.cpp
TestArray.cpp
TestAtoms.cpp
TestAutoPtr.cpp
TestAutoRef.cpp
TestBase64.cpp Bug 1040041 - Give FakeInputStream a private destructor; r=bjacob 2014-07-17 16:48:00 -04:00
TestBlockingProcess.cpp
TestCallTemplates.cpp Bug 1028588 - Fix dangerous public destructors in xpcom/ - r=bsmedberg,khuey,nfroyd 2014-06-30 18:11:53 -04:00
TestCOMArray.cpp Bug 1048280 - Fix more bad implicit constructors in XPCOM; r=froydnj 2014-08-05 09:36:59 -04:00
TestCOMPtr.cpp
TestCOMPtrEq.cpp
TestCRT.cpp
TestDeadlockDetector.cpp Bug 1061061 - Fix more bad implicit constructors in misc. code; r=bsmedberg 2014-09-02 18:24:24 -04:00
TestDeadlockDetectorScalability.cpp Bug 1097507 - Make libxul independent of libdmd when DMD is enabled. r=njn 2014-11-18 19:21:06 +09:00
TestDeque.cpp
TestEncoding.cpp
TestExpirationTracker.cpp
TestFile.cpp
TestHarness.h Bug 1069694 - Remove OldDebugAPI from the browser. r=shu 2014-10-12 19:37:41 +02:00
TestHashtables.cpp Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc. 2014-08-06 06:31:21 -07:00
TestID.cpp
TestingAtomList.h
TestingAtoms.cpp
TestingAtoms.h
TestINIParser.cpp
TestJemalloc.cpp
TestNsRefPtr.cpp Backed out changeset bf25101e66cf (bug 1095098) for build bustage 2014-12-08 16:27:12 -08:00
TestObserverArray.cpp
TestObserverService.cpp Bug 1048280 - Fix more bad implicit constructors in XPCOM; r=froydnj 2014-08-05 09:36:59 -04:00
TestPipe.cpp
TestPipes.cpp
TestPLDHash.cpp Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc. 2014-08-06 06:31:21 -07:00
TestPRIntN.cpp
TestPriorityQueue.cpp
TestQuickReturn.cpp
TestRacingServiceManager.cpp Bug 1048280 - Fix more bad implicit constructors in XPCOM; r=froydnj 2014-08-05 09:36:59 -04:00
TestRegistrationOrder.cpp
TestShutdown.cpp
TestStackCrawl.cpp
TestStaticAtoms.cpp
TestSTLWrappers.cpp
TestStorageStream.cpp
TestStreamUtils.cpp
TestStringAPI.cpp
TestStrings.cpp Bug 1101337 - Make the ReplaceSubstring() XPCOM string API linear; r=froydnj 2014-12-12 18:57:09 -05:00
TestSynchronization.cpp
TestTArray.cpp Bug 982212: Part 2 - Implement r-value reference support for nsTArray::AppendElement. r=nfroyd 2014-03-15 18:56:00 +01:00
TestTextFormatter.cpp
TestThreadPool.cpp
TestThreadPoolListener.cpp Bug 1050003 - Remove unnecessary if checks before delete-ing in xpcom/. r=froydnj 2014-08-08 07:04:45 -07:00
TestThreads.cpp
TestThreadUtils.cpp Bug 1034921 - Remove dangerous public destructor of nsFoo in TestThreadUtils.cpp. r=nfroyd 2014-09-04 07:07:00 +02:00
TestTimers.cpp Bug 1028588 - Fix dangerous public destructors in xpcom/ - r=bsmedberg,khuey,nfroyd 2014-06-30 18:11:53 -04:00
TestTimeStamp.cpp
TestUnicodeArguments.cpp
TestUTF.cpp
TestWinReg.js
TestXPIDLString.cpp
UTFStrings.h