Botond Ballo
4f3be5774a
Bug 1156538 - Make nsTArray's move constructor implicit. r=froydnj
2015-04-20 18:42:56 -04:00
Denis Volk
4ad62045e8
Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj
2015-04-15 12:47:03 -04:00
Ehsan Akhgari
933b6f9fd6
Fix a missing check in TestStrings.cpp, no bug
2015-04-18 20:51:01 -04:00
Ehsan Akhgari
3d48004005
Back out bug 1149174 since it turns out that the nsTArray range iterators are not stable after all
2015-04-16 18:18:22 -04:00
Andrew McCreight
adc75e5ee8
Bug 1151541, part 3 - Fix leading tabs in xpcom/. r=froydnj
2015-04-09 10:25:05 -07:00
Andrew McCreight
eec6dea9ff
Bug 1151541, part 2 - Fix mode lines in xpcom/. r=froydnj
2015-04-09 10:25:05 -07:00
Mike Hommey
ccd2a9b975
Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd
2015-04-01 13:51:45 +09:00
Ehsan Akhgari
7347fd3219
Bug 1149174 - Add a test to ensure that XPCOM nsTArray range iterators are stable; r=froydnj
2015-03-31 16:29:58 -04:00
Andrea Marchesini
b212600c95
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00:00
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
Geoff Brown
a3e7accefa
Bug 1140148 - Update xpcshell test manifests for Android 4.3 emulator; r=dminor
2015-03-19 11:00:58 -06:00
Ben Kelly
0794c9018b
Bug 1133939 P2 Add tests validating nsPipeOutputStream AsyncWait behavior. r=froydnj
2015-02-21 09:51:17 -05:00
Nicholas Nethercote
2cd18655a4
Bug 1142277 - Fix leak in failure path in TestPLDHash. r=erahm.
2015-03-11 15:39:58 -07:00
Ehsan Akhgari
bf8d9c72a5
Bug 1140762 - Move TestThreads.cpp to gtest and enable it; r=froydnj
2015-03-09 11:10:32 -04:00
Ehsan Akhgari
3afbd4ebf8
Bug 1140760 - Move TestXPIDLString.cpp to gtest and enable it; r=froydnj
2015-03-09 11:10:01 -04:00
Nicholas Nethercote
4d1ef09788
Bug 1050035 (part 1, attempt 2) - Lazily allocate PLDHashTable::mEntryStore. r=froydnj.
...
This makes zero-element hash tables, which are common, smaller, and also avoids
unnecessary malloc/free pairs.
I did some measurements during some basic browsing of a few sites. I found that
35% of all live tables were empty with a few tabs open. And cumulatively, for
the whole session, 45% of tables never had an element added to them.
2015-02-01 14:56:33 -08:00
Ehsan Akhgari
13e7f6763c
Backed out 2 changesets (bug 1133939) because of bug 1136453
...
Backed out changeset 212080d51fb7 (bug 1133939)
Backed out changeset 27de4b553912 (bug 1133939)
2015-02-25 13:26:41 -05:00
Ben Kelly
944f182366
Bug 1133939 P2 Add tests validating nsPipeOutputStream AsyncWait behavior. r=froydnj
2015-02-21 09:51:17 -05:00
Ryan VanderMeulen
b46b5a25d9
Backed out changesets 4c2b179b71ae and c96050cdedd5 (bug 1133939) for asserts.
2015-02-20 20:00:19 -05:00
Ben Kelly
a841de0a71
Bug 1133939 P2 Add tests validating nsPipeOutputStream AsyncWait behavior. r=froydnj
2015-02-20 18:16:04 -05:00
Nicholas Nethercote
74cc61fdfd
Bug 1131901 (part 1) - Make PL_DHashTableAdd() infallible by default, and add a fallible alternative. r=froydnj.
...
I kept all the existing PL_DHashTableAdd() calls fallible, in order to be
conservative, except for the ones in nsAtomTable.cpp which already were
followed immediately by an abort on failure.
--HG--
extra : rebase_source : 526d96ab65e4d7d71197b90d086d19fbdd79b7b5
2015-02-02 14:48:58 -08:00
Ben Kelly
6b26bfa2f3
Bug 1100398 P5 Provide NS_CloneInputStream() factory method in nsStreamUtils.h. r=froydnj
2015-02-10 23:55:43 -05:00
Ben Kelly
382ddfd269
Bug 1100398 P4 Make nsPipeInputStream cloneable. r=froydnj
2015-02-10 23:55:43 -05:00
Ben Kelly
b9cf64fc8c
Bug 1100398 P3 Make nsStorageStream's input streams cloneable. r=froydnj
2015-02-10 23:55:43 -05:00
Ben Kelly
fc93a14f1a
Bug 1100398 P2 Make nsStringInputStream cloneable. r=froydnj
2015-02-10 23:55:43 -05:00
Ben Kelly
5d2fa2eb2e
Bug 1100398 P0 Break out helper routines to support gtests for more stream types. r=froydnj
2015-02-10 23:55:43 -05:00
Nicholas Nethercote
44179aabe3
Back out changesets 2fcef6b54be7, 2be07829fefc, 66dfe37b8532, df3fcd2be8fd, 0a436bce77a6 (bug 1050035) for causing intermittent crashes and assertion failures.
...
--HG--
extra : rebase_source : eb30be83c3143c6c203585a80a18f180025efaba
2015-02-10 14:39:49 -08:00
Nicholas Nethercote
c326200932
Bug 1050035 (part 4) - Make PL_DHashTableAdd() infallible by default, and add a fallible alternative. r=froydnj.
...
I kept all the existing PL_DHashTableAdd() calls fallible, in order to be
conservative, except for the ones in nsAtomTable.cpp which already were
followed immediately by an abort on failure.
--HG--
extra : rebase_source : eeba14d732077ef2e412f4caca852de6b6b85f55
2015-02-02 14:48:58 -08:00
Nicholas Nethercote
e2d6f1e1be
Bug 1050035 (part 3) - Remove PL_NewDHashTable() and PL_DHashTableDestroy(). r=froydnj.
...
Because they are now just equivalent to |new PLDHashTable()| +
PL_DHashTableInit() and PL_DHashTableFinish(t) + |delete t|, respectively.
They're only used in a handful of places and obscure things more than they
clarify -- I only recently worked out exactly how they different from Init()
and Finish().
--HG--
extra : rebase_source : c958491447523becff3e01de45a5d2d227d1ecd3
2015-02-01 20:36:52 -08:00
Nicholas Nethercote
9735520732
Bug 1050035 (part 2) - Remove the fallible version of PL_DHashTableInit(). r=froydnj,mrbkap.
...
Because it's no longer needed now that entry storage isn't allocated there.
(The other possible causes of failures are much less interesting and simply
crashing is a reasonable thing to do for them.)
This also makes PL_DNewHashTable() infallible.
--HG--
extra : rebase_source : 848cc9bbdfe434525857183b8370d309f3acbf49
2015-02-01 20:19:08 -08:00
Nicholas Nethercote
e2a74d0deb
Bug 1050035 (part 1) - Lazily allocate PLDHashTable::mEntryStore. r=froydnj.
...
This makes zero-element hash tables, which are common, smaller, and also avoids
unnecessary malloc/free pairs.
I did some measurements during some basic browsing of a few sites. I found that
35% of all live tables were empty with a few tabs open. And cumulatively, for
the whole session, 45% of tables never had an element added to them.
There is more to be done w.r.t. simplifying initialization, which will occur in
the next patch.
--HG--
extra : rebase_source : b9bfdcd680f39f3c947a49ae8462c04bc5e38805
2015-02-01 14:56:33 -08:00
Mike Hommey
824818ee98
Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
...
--HG--
rename : memory/mozalloc/fallible.h => memory/fallible/fallible.h
2015-02-02 09:56:13 +09:00
Ehsan Akhgari
9dd095c383
Bug 1126301 - Move TestUTF.cpp to gtest and enable it; r=froydnj
...
--HG--
rename : xpcom/tests/TestUTF.cpp => xpcom/tests/gtest/TestUTF.cpp
rename : xpcom/tests/UTFStrings.h => xpcom/tests/gtest/UTFStrings.h
extra : rebase_source : 6c08b56d9cdb2af10a436792de7bee03d8c41070
2015-01-27 12:38:44 -05:00
Ehsan Akhgari
8f3258d121
Backed out changeset 186127d71076 (bug 1126295) because of test bustage on Windows on a CLOSED TREE
...
--HG--
rename : xpcom/tests/gtest/TestAtoms.cpp => xpcom/tests/TestAtoms.cpp
rename : xpcom/tests/gtest/UTFStrings.h => xpcom/tests/UTFStrings.h
2015-01-27 13:47:44 -05:00
Ehsan Akhgari
a77c062b13
Backed out 2 changesets (bug 1126301) on a CLOSED TREE because the test was apparently busted on some platforms
...
Backed out changeset 4aecd46afeb1 (bug 1126301)
Backed out changeset c61a87a20888 (bug 1126301)
--HG--
rename : xpcom/tests/gtest/TestUTF.cpp => xpcom/tests/TestUTF.cpp
2015-01-27 13:44:15 -05:00
Ehsan Akhgari
80ca6ab60f
Bug 1126301 follow-up: Fix a signed/unsigned comparison fatal warning, landed on a CLOSED TREE
2015-01-27 12:56:15 -05:00
Ehsan Akhgari
08b9e945de
Bug 1126301 - Move TestUTF.cpp to gtest and enable it; r=froydnj
...
--HG--
rename : xpcom/tests/TestUTF.cpp => xpcom/tests/gtest/TestUTF.cpp
extra : rebase_source : db5e0418f89bb1cf71a0543a48a6a063f61e4033
2015-01-27 12:38:44 -05:00
Ehsan Akhgari
56732537bb
Bug 1126295 - Move TestAtoms.cpp to gtest and enable it; r=froydnj
...
--HG--
rename : xpcom/tests/TestAtoms.cpp => xpcom/tests/gtest/TestAtoms.cpp
rename : xpcom/tests/UTFStrings.h => xpcom/tests/gtest/UTFStrings.h
extra : rebase_source : 16340d826f39339dd38e77810cd08e59b324c380
2015-01-27 09:28:45 -05:00
Ehsan Akhgari
f280039197
Bug 1125138 - Move TestTimeStamp.cpp to gtest and enable it; r=froydnj
...
--HG--
rename : xpcom/tests/TestTimeStamp.cpp => xpcom/tests/gtest/TestTimeStamp.cpp
extra : rebase_source : d6f92fb8be26504164a1b54bd40811f6f1c3cc3a
extra : source : 67496f44f4617eda8f650d5c801fd9b327e5ac96
2015-01-26 17:08:24 -05:00
Ehsan Akhgari
96d30963f7
Bug 1125559 - Move TestThreadPool.cpp to gtest and enable it; r=froydnj
...
--HG--
rename : xpcom/tests/TestThreadPool.cpp => xpcom/tests/gtest/TestThreadPool.cpp
extra : amend_source : 9d779a219338a8cbf854af28070ddc5559d28d2b
extra : histedit_source : 59dd08d1722b1fe621f3d5070b64d791012fa026%2C5231f875b1e958f393079ac9258a2d3812a1feb1
2015-01-26 20:49:22 -05:00
Wes Kocher
8b2ad24204
Backed out changeset 67496f44f461 (bug 1125138) for checktest failures
...
--HG--
rename : xpcom/tests/gtest/TestTimeStamp.cpp => xpcom/tests/TestTimeStamp.cpp
2015-01-26 16:14:06 -08:00
Wes Kocher
1663d3dfd8
Backed out changeset 8ae4f78d7e25 (bug 1125559) for checktest orange
...
--HG--
rename : xpcom/tests/gtest/TestThreadPool.cpp => xpcom/tests/TestThreadPool.cpp
2015-01-26 15:18:50 -08:00
Ehsan Akhgari
927a9f0a87
Bug 1125559 - Move TestThreadPool.cpp to gtest and enable it; r=froydnj
...
--HG--
rename : xpcom/tests/TestThreadPool.cpp => xpcom/tests/gtest/TestThreadPool.cpp
extra : amend_source : 08b95083290e67062ebaecff820ff627f87b35a2
2015-01-26 17:10:09 -05:00
Ehsan Akhgari
5475f76aba
Bug 1125138 - Move TestTimeStamp.cpp to gtest and enable it; r=froydnj
...
--HG--
rename : xpcom/tests/TestTimeStamp.cpp => xpcom/tests/gtest/TestTimeStamp.cpp
2015-01-26 17:08:24 -05:00
Ehsan Akhgari
5b4d2a28c9
Remove TestTArray from the list of disabled XPCOM tests, because it's not disabled, no bug, DONTBUILD
2015-01-23 09:38:42 -05:00
Ehsan Akhgari
23e0bd38fe
Bug 1124058 - Move TestSynchronization.cpp to gtest and enable it; r=froydnj
2015-01-21 22:42:38 -05:00
Ehsan Akhgari
106d63bf75
Bug 1124048 - Move TestStorageStream.cpp to gtest and enable it; r=froydnj
2015-01-21 11:29:20 -05:00
Ehsan Akhgari
7fe7c8a531
Bug 1124047 - Move TestPriorityQueue.cpp to gtest and enable it; r=froydnj
2015-01-21 11:25:34 -05:00
Ehsan Akhgari
b5f52001c4
Bug 1124041 - Move TestPipes.cpp to gtest and enable it; r=froydnj
2015-01-21 11:21:10 -05:00
Nicholas Nethercote
c0a8a6e993
Bug 1123151 (part 2) - Add PLDHashTable::IsInitialized(). r=froydnj.
...
This encapsulates most of the uses of PLDHashTable::ops.
--HG--
extra : rebase_source : 7760ce8e46a37e87dcfe590e809a21df01fe510f
2015-01-19 16:11:34 -08:00