Commit Graph

44 Commits

Author SHA1 Message Date
Ehsan Akhgari
33bb32f549 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Ehsan Akhgari
4f80dee4e8 Bug 1117035 - Mark virtual overridden functions as MOZ_OVERRIDE in XPCOM; r=froydnj 2015-01-05 11:25:41 -05:00
Tom Schuster
0db58380c0 Bug 1069694 - Remove OldDebugAPI from the browser. r=shu 2014-10-12 19:37:41 +02:00
Stephen Pohl
6b7b767456 Bug 1077282: Cleanup uses of GreD vs GreBinD, introcuded by v2 signature changes on OSX. Based on initial patch by rstrong. r=bsmedberg 2014-10-10 15:06:57 -04:00
Ehsan Akhgari
38ace662d3 Bug 1048280 - Fix more bad implicit constructors in XPCOM; r=froydnj 2014-08-05 09:36:59 -04:00
Birunthan Mohanathas
ff8ce9bd42 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Ehsan Akhgari
5b9f45a1a5 Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg 2014-03-27 16:38:33 -04:00
Birunthan Mohanathas
759ab69b0a Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo
--HG--
rename : mfbt/Util.h => mfbt/ArrayUtils.h
2013-12-08 21:52:54 -05:00
Birunthan Mohanathas
8931f631a5 Bug 784739 - Switch from NULL to nullptr in xpcom/ (3/3); r=ehsan 2013-10-10 16:42:16 -04:00
Nicholas Nethercote
3f5d413d90 Bug 909597 (part 2) - Rename jsdbgapi.{h,cpp} as {js,vm}OldDebugAPI.{h,cpp}. r=luke.
--HG--
rename : js/src/jsdbgapi.h => js/public/OldDebugAPI.h
rename : js/src/jsdbgapi.cpp => js/src/vm/OldDebugAPI.cpp
extra : rebase_source : 9cd65a698e726c43d88d650f40823367bf98feae
2013-08-26 19:05:20 -07:00
Ted Mielczarek
55aac01bc2 Bug 906734 - Put TestHarness.h profile directories under runcppunittest's temp directory. r=Waldo 2013-08-20 11:59:51 -04:00
Nicholas Nethercote
42ccf38dcd Bug 905017 (part 1) - Minimize inclusions of JS engine headers in .h and .idl files. r=billm.
--HG--
extra : rebase_source : 984c61ab12f46be0509b1ce0d458d9a6e5841c64
2013-08-17 15:50:18 -07:00
Nathan Froyd
6c2ee6841f Bug 844331 - part 5 - add profile-before-change2 notification; r=bsmedberg 2013-03-01 15:11:21 -05:00
Ted Mielczarek
50d314a70a bug 787176 - Add a Python wrapper script for running C++ unit tests. r=jmaher,waldo
--HG--
extra : rebase_source : 2282494578a7dd792555633df2526835d39c5ac4
2012-08-30 15:20:38 -04:00
Jim Blandy
6ba9527009 Bug 790117: XPCOM test harness: Delete unused profiler control functions. r=bsmedberg
These functions are entirely unused, but we also now have
JS_DefineProfilingFunctions, present in both browser and JavaScript shell,
for doing what these functions were presumably intended for.
2012-09-21 16:36:13 -07:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Mark Capella
7992841265 Bug 489728. (Bv6a) Use passed() in TestTXMgr.cpp, Make passed() accept a va_list in TestHarness.h. f=sgautherie r=ehsan. 2012-02-28 10:17:15 +01:00
Marco Bonardo
2f70acaa24 Bug 712767: Send profile shutdown topics to cpp tests requesting a profile.
r=waldo
2012-01-20 14:47:51 +01:00
Marco Bonardo
44e36af0d8 Bug 619623 - Try to fix some intermittent failures in test_IHistory.cpp.
r=dietrich
2011-11-05 01:01:38 +01:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Jeff Walden
b7753477cf Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Jeff Walden
eb2cb918a4 Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail 2011-10-12 12:21:53 -07:00
Jeff Walden
77ebbde4ab Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
--HG--
extra : rebase_source : 860a8271bf7e51cde358f2a4185c410de1fc2960
2011-10-10 22:50:08 -07:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Ehsan Akhgari
b542efd4e6 Bug 666414 - Prevent AddRef and Release from being called on the pointers wrapped in nsCOMPtr and nsRefPtr; r=bsmedberg 2011-09-16 16:22:44 -04:00
Makoto Kato
172563125b Bug 679473 - TestNativeXMLHttpRequest.exe : fatal error LNK1120: 6 unresolved externals. r=khuey 2011-08-18 09:33:58 +09:00
Steve Fink
93cd3119ac Bug 673631 - Clean up probes and register (almost) all profiler control entry points in JS_DefineProfilingFunctions (r=luke,waldo,jst)
Previously, JS_DefineProfilingFunctions only defined a very basic set of
functions (startProfiling and stopProfiling), and various scattered places
added more specific ones (start/stop vtune, dumpProfile, etc.) This patch makes
jsdbgapi do all of it, so that all users get the same set.

Also rename JS_DumpProfile -> JS_DumpBytecode to avoid name conflict. The
bytecode dumps are how the counters ("profiles") are displayed, so the
DumpProfile name was bogus anyway.

--HG--
extra : rebase_source : 2d3e626ef43ac41c6da401a779775a63fc96a427
2011-07-26 15:56:09 -07:00
Andreas Gal
6278051362 Make Shark work with 64-bit MacOSX builds and rename to start/stopProfiling() (bug 625962, r=sayrer). 2011-01-14 17:58:40 -08:00
bhsieh@mozilla.com
fba716bbcd bug 520309, startupcache core r=dwitte sr=bsmedberg a=bsmedberg 2010-08-12 12:37:44 -07:00
Benjamin Smedberg
77282b6432 Allow a manifest to register contracts and cids in any order, by deferring processing of contracts until the manifest is completely parsed. This is needed for extension author sanity, and also because jar.mn packaging doesn't place registration lines in order by default. 2010-06-25 08:19:48 -04:00
Shawn Wilsher
88bb83f4b2 Bug 517604 - TestHarness.h should provide a directory provider for a profile directory.
Automagically provide a profile directory for native code tests.
r=bsmedberg
2009-09-24 10:49:45 -07:00
Shawn Wilsher
f21f577875 Backed out changeset 467f14a11325 (bug 517604) 2009-09-30 17:03:37 -07:00
Shawn Wilsher
6b7261093e Bug 517604 - TestHarness.h should provide a directory provider for a profile directory.
Automagically provide a profile directory for native code tests.
r=bsmedberg
2009-09-24 10:49:45 -07:00
Serge Gautherie
5714e738d6 Bug 482942 - Implement NS_LOCALFILE_DELETE_ON_CLOSE flag for nsILocalFile::OpenNSPRFileDesc; (Cv1) TestHarness.h: s/PRBool/PRUint32/; r=benjamin 2009-05-06 01:11:16 +02:00
Chris Jones
5ef90c82b9 bug 486793: add programmatic control of profiler to xpcom unit tests. r=bsmedberg 2009-04-24 14:47:45 -07:00
Robert O'Callahan
46307c1705 Bug 482942. Tests for nsILocalFile implementations. Also changes nsLocalFileUnix::MoveTo to update the object to refer to the destination, matching other platforms' behaviour. r=bsmedberg
--HG--
rename : xpcom/tests/nsIFileTest.cpp => xpcom/tests/TestFile.cpp
2009-03-24 13:44:37 +13:00
L. David Baron
e163f9af14 Fix the pass() function to use the standard syntax too. (Bug 477512) r=jwalden 2009-02-10 16:56:32 -08:00
L. David Baron
018be96174 TestHarness.h should give errors with TEST-UNEXPECTED-FAIL. (Bug 477512) r=jwalden 2009-02-10 14:05:28 -08:00
Jeff Walden
6773debbac Bug 421576 - Unpaired surrogate handled wrongly (Acid3 #68). acid3++ r=dbaron 2008-06-02 21:29:00 -04:00
brade@comcast.net
ca61c9e2e7 Bug #416886; r=bsmedberg, a=beltzner Preserve original order when processing deferred components. Add TestRegistrationOrder automated test. 2008-03-31 07:40:10 -07:00
jwalden@mit.edu
e01dc9e11d Fix bustage from TestPipe.cpp; turns out NS_NewPipe2 isn't exported from XPCOM -- who knew? r+a=bustage 2007-09-21 00:59:09 -07:00
jwalden@mit.edu
08317171e2 Bug 394692 - ASSERTION: read cursor is bad: 'mReadCursor != mWriteCursor', file xpcom/io/nsPipe3.cpp, line 539. Narrow the criteria used to decide whether to fire the assertion to deal with a particular (valid) pattern of memory allocations. r=biesi, a=bz 2007-09-20 23:17:59 -07:00