Kyle Huey
9570aa23b3
Bug 1268723: Make it clear that the TestCrashyOperation crashes are expected. r=njn
...
--HG--
extra : rebase_source : e2e8e6272aa8e80cd4b3db6828009555d4f5311e
2016-05-03 22:39:53 -07:00
Nicholas Nethercote
8d71390a3e
Bug 1269648 - Add missing crash-reporter null checks. r=froydnj.
...
In two places we fail to check if we successful obtained the crash reporter
before we use it.
--HG--
extra : rebase_source : f757b8320788220b5a4d5242a0264d577d92f15e
2016-05-03 17:08:04 +10:00
Aryeh Gregor
f14f1babe8
Bug 1193762 part 8 - Fix things that will break; r=froydnj
...
It looks like VC++ doesn't like comparisons of nsCOMPtr to 0 after this
change, but those are bad style anyway, so I removed them from
TestCOMPtr.cpp instead of trying to make them work.
2016-05-01 21:29:23 +03:00
Carsten "Tomcat" Book
894326b653
Backed out changeset 726f7361e0b8 (bug 1268313)
...
--HG--
extra : rebase_source : 3e04a6751a1cce2be7692763b4520dcca053f210
2016-04-29 14:21:20 +02:00
Carsten "Tomcat" Book
ba3fe0975c
Backed out changeset 85ce8cb0639a (bug 1268313)
...
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey
48a594a09e
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-04-28 14:08:25 -07:00
Kyle Huey
732a15e600
Bug 1268313: Part 5 - Make NS_NewRunnableMethod able to call const functions. r=froydnj
2016-04-28 14:08:24 -07:00
Mike Shal
8689f72e8b
Bug 1266875 - Remove custom install rules; r=chmanchester
...
MozReview-Commit-ID: CoWdHidlDrV
2016-04-18 10:36:07 -04:00
Nicholas Nethercote
2f1707f8ea
Bug 1267227 - Don't run the PLDHashTableTest.GrowToMaxCapacity gtest on 32-bit machines, because it sometimes OOMs. r=erahm.
...
--HG--
extra : rebase_source : 79ecc129edfca2a63a52f8dea4b12c8ae1b94fcc
2016-04-27 16:30:14 +10:00
Sebastian Hengst
b4020b78c0
Backed out changeset e786ecce31b2 (bug 1266875) for pgo build bustage in xpcshell/xpcom/tests/unit/nsIFileEnumerator. r=backout on a CLOSED TREE
2016-04-27 18:35:41 +02:00
Mike Shal
a204083dd1
Bug 1266875 - Remove custom install rules; r=chmanchester
...
MozReview-Commit-ID: CoWdHidlDrV
2016-04-18 10:36:07 -04:00
Kyle Huey
c73656947b
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
Valentin Gosu
a44929e1eb
Bug 1261382 - Add ReadUntil method to Tokenizer r=mayhemer
2016-04-08 16:27:32 +02:00
Nicholas Nethercote
e4dec8d42f
Bug 1261735 (part 1) - Overhaul the atom implementation. r=froydnj,erahm.
...
This patch changes things so that dynamic atoms and static atoms have distinct
implementations. This is a step towards allowing dynamic atoms and static atoms
to have different layouts in memory, which will allow static atoms to be
represented more compactly.
Specifically, the patch does the following.
- It renames AtomImpl as DynamicAtom and PermanentAtomImpl as StaticAtom, and
the latter is no longer a subclass of the former. This required duplicating
some methods from the former into the latter: ScriptableToString(),
ToUTF8String(), ScriptableEquals(), IsStaticAtom(). (This duplication will
disappear in the future if the representations of dynamic atoms and static
atoms diverge. Indeed, SizeOfIncludingThis() is already different in the two
classes.)
- It replaces all mentions of "permanent"/"non-permanent" atoms with
"static"/"dynamic".
- In ~DynamicAtom() it removes the check that causes gAtomTable to be deleted
when it becomes empty. This will only happen at shutdown and so doesn't seem
useful.
- It documents better various things, especially the basics of the
dynamic/static split, the transmutation of dynamic atoms to static atoms, and
the details of the SizeOf functions.
--HG--
extra : rebase_source : dbf903012e70ebf1a43de1e1088db1bc1b8dd4f4
2016-04-01 11:18:06 +11:00
Nicholas Nethercote
d376f9f82e
Bug 1260871 - Remove do_GetAtom() and rename NS_NewAtom() as NS_Atomize(). r=erahm.
...
do_GetAtom() is currently just a synonym for NS_NewAtom().
--HG--
extra : rebase_source : f4409784f931616cbc300591e6b843d30805c273
2016-03-29 10:09:43 +11:00
Kyle Huey
d9265a3eaf
Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj
2016-03-28 10:28:15 -07:00
Ted Mielczarek
815dd278b6
bug 1259753 - fix some C++ unittests to use ScopedXPCOM to init XPCOM. r=ms2ger
...
MozReview-Commit-ID: B6xdlB9Di0y
--HG--
extra : rebase_source : 182d29d677c77ae6780260f5fc9b0792bdd98f84
extra : amend_source : 1e4fa2453d6773bd1e63f52b7aa3bf61e61600ff
2016-03-25 10:04:37 -04:00
Nicholas Nethercote
bbfe3dbc14
Bug 1257402 - Remove NS_NewPermanentAtom() and nsIAtomService.getPermanentAtom(). r=froydnj,kmag.
...
The former is only used inconsequentially in tests. The second is not used at
all.
--HG--
extra : rebase_source : 4cfe11f933f1fe8f788e823c5107941085cef92c
2016-03-17 13:11:31 +11:00
Nicholas Nethercote
41e924c6e0
Bug 1257128 (part 1) - Remove nsIAtom.equalsUTF8. r=froydnj.
...
It's only used in tests.
2016-03-16 21:05:30 +11:00
Gregory Szorc
b19cc22cce
Bug 1257410 - Use %p and cast in printf to avoid C4477 on VS2015; r=khuey
...
MozReview-Commit-ID: 21XrhzPiJFQ
--HG--
extra : rebase_source : a9375998fcf663bf2b285cc2105778836eedffa8
2016-03-21 14:19:18 -07:00
Nicholas Nethercote
a2f068b2ad
Bug 1253085 - Remove the |PLDHashTable*| argument from PLDHash{HashKey,MatchEntry}. r=froydnj.
...
This is easy because it's never needed.
--HG--
extra : rebase_source : 78830dab41c40a1544fa55fc69ca9c1c6709d767
2016-03-16 15:33:44 +11:00
Nathan Froyd
7bb9ec5177
Bug 1229985 - remove nsAutoArrayPtr; r=erahm
2015-12-06 10:51:43 -05:00
Mike Shal
de1e7b8d59
Bug 1241976 - port INSTALL_TARGETS in xpcom/tests to moz.build; r=glandium
2016-01-21 21:06:50 -05:00
ISHIKAWA, Chiaki
be2b50a7f8
Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
...
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check
- the outdated 0666 octal constant is still parsed correctly,
- the outdated 0666 octal constant raises syntax error flag
in strict mode, etc.
So leave them alone.
2016-02-15 08:57:00 +01:00
Valentin Gosu
52d81f715f
Bug 241788 - mozilla::Tokenizer - token type for \n should whitespace if given in constructor r=honzab
2016-02-05 14:43:45 +01:00
Nicholas Nethercote
5315826043
Bug 1181444 (part 2) - Remove nsBaseHashtable::Enumerate(). r=froydnj.
...
\o/
--HG--
extra : rebase_source : 4f4831b1feb4ee25b6adc7aeeae548e5d0df5c8d
2015-11-24 19:42:28 -08:00
Birunthan Mohanathas
54720f2a75
Bug 1235261 - Part 7: Remove AutoInfallibleTArray. r=froydnj
2016-02-02 17:36:31 +02:00
Birunthan Mohanathas
7104c2aaa5
Bug 1235261 - Part 4: Remove AutoFallibleTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Birunthan Mohanathas
d7371d07d0
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
d381b4bca6
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
d39376e4d0
Bug 1235261 - Part 7: Remove AutoInfallibleTArray. r=froydnj
2016-01-31 17:12:13 +02:00
Birunthan Mohanathas
6ed751e586
Bug 1235261 - Part 4: Remove AutoFallibleTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Birunthan Mohanathas
373593275e
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Xidorn Quan
dd6be4d4ca
Bug 1241901 part 4 - Stop using nsAutoPtr for holding primitive arrays. r=froydnj
...
--HG--
extra : source : 683ad831dc3e7fc197cbfe1b53665c777b3158ab
2016-01-30 10:33:41 +11:00
Eric Rahm
1828042c1f
Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell
2016-01-05 13:05:19 -08:00
Phil Ringnalda
52aade6b43
Back out 3e168e5a04bf (bug 1174972) for build bustage
...
CLOSED TREE
2016-01-11 20:04:40 -08:00
Eric Rahm
f8d0e8949c
Bug 1174972 - Add basic mozilla logging backend. r=froydnj,r=bwc,r=jduell
2016-01-05 13:05:19 -08:00
Christoph Kerschbaumer
71921c1eac
Bug 1232803 - Convert JS callsites to use open2 within xpcom/ (r=sicking)
2016-01-11 12:17:10 -08:00
Chris Manchester
a58dc78ade
Bug 1237447 - Disable the crashreporter when crashing intentionally in TestPLDHash. r=njn
...
--HG--
extra : commitid : BIAIgGAkCYL
2016-01-07 12:27:10 -08:00
Eric Rahm
77c03426ad
Bug 1223222 - Part 2: Add tests for NSPRLogModulesParser. r=froydnj
2016-01-05 12:15:59 -08:00
Shu-yu Guo
1768759efb
Bug 1220564 - Update chrome code uses of genexprs and legacy comprehensions. (r=billm)
2016-01-06 16:02:16 -08:00
Nathan Froyd
cedf0dc1a3
No bug - remove tab from xpcom/test/gtest/moz.build file; r=me
...
DONTBUILD because whitespace only changes are always green.
2016-01-04 16:17:53 -05:00
Geoff Brown
c0573a940f
Bug 1144393 - Use /storage/sdcard in preference to /sdcard for adb device root and enable test_file_equality.js; r=jmaher
2015-12-21 14:24:08 -07:00
Nicholas Nethercote
d180cd4a92
Bug 1181444 (part 1) - Remove nsBaseHashtable::EnumerateRead(). r=froydnj.
...
--HG--
extra : rebase_source : c07a83a2984ca4e67f3441d9e18b6bbac772495d
2015-11-22 14:39:01 -08:00
Mike Hommey
70a5b9589d
Bug 1227388 - Finish removing dehydra support. r=mshal
...
Dehydra/Treehydra is unmaintained, broken (iirc), and obsoleted by clang
static analysis. We've removed parts of the build system support for it, but
not all. This is meant to remove the remains.
2015-11-25 08:23:25 +09:00
sajitk
6418c52357
Bug 1201997
- Part 1 - Converted compiled test to gtest for nsDeque class. Added tests to test untested methods. r=froydn
...
--HG--
rename : xpcom/tests/TestDeque.cpp => xpcom/glue/tests/gtest/TestNsDeque.cpp
2015-11-15 14:47:49 +01:00
Chris Peterson
4a9be99fc7
Bug 1220544 - Fix -Wunreachable-code warnings in xpcom. r=mccr8
...
xpcom/glue/PLDHashTable.cpp:471:10 [-Wunreachable-code-return] 'return' will never be executed
xpcom/tests/TestAutoPtr.cpp:324:9 [-Wunreachable-code] code will never be executed
xpcom/tests/TestBlockingProcess.cpp:6:11 [-Wunreachable-code-return] 'return' will never be executed
2015-11-02 21:03:03 -08:00
Nathan Froyd
a5557d1390
Bug 1219246 - use UniquePtr instead of nsAuto*Ptr in xpcom/; r=erahm
2015-10-31 13:47:14 -04:00
Birunthan Mohanathas
d72daf8147
Bug 1185763 - Part 7: Add test for r-value nsTArray::AppendElements. r=froydnj
2015-11-02 07:53:26 +02:00
Birunthan Mohanathas
9985829ecc
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00