Commit Graph

1776 Commits

Author SHA1 Message Date
Eric Rahm
cddb84eb44 Bug 1313484 - Convert XPCOM test TestTimers to a gtest. r=froydnj
MozReview-Commit-ID: 8sH5fbvv9wZ

--HG--
rename : xpcom/tests/TestTimers.cpp => xpcom/tests/gtest/TestTimers.cpp
2016-11-07 14:25:41 -08:00
Phil Ringnalda
a7bc94158c Merge m-i to m-c, a=merge
MozReview-Commit-ID: H4VKCYDq5cD

--HG--
rename : xpcom/tests/TestAutoRef.cpp => xpcom/tests/gtest/TestAutoRef.cpp
rename : xpcom/tests/TestCOMArray.cpp => xpcom/tests/gtest/TestCOMArray.cpp
rename : xpcom/tests/TestCOMPtr.cpp => xpcom/tests/gtest/TestCOMPtr.cpp
rename : xpcom/tests/TestCOMPtrEq.cpp => xpcom/tests/gtest/TestCOMPtrEq.cpp
rename : xpcom/tests/TestFile.cpp => xpcom/tests/gtest/TestFile.cpp
rename : xpcom/tests/TestHashtables.cpp => xpcom/tests/gtest/TestHashtables.cpp
rename : xpcom/tests/TestID.cpp => xpcom/tests/gtest/TestID.cpp
2016-11-05 13:36:25 -07:00
Sebastian Hengst
e3ad4a1224 Bug 1310297 - Remove test annotations using b2g, mulet or gonk: xpcom. r=RyanVM
MozReview-Commit-ID: DUdntLdSp06

--HG--
extra : rebase_source : 9d4e380bc855e214d1863fb21af956183daad48a
2016-11-05 11:29:22 +01:00
Eric Rahm
72501ba9d6 Bug 1313483 - Convert XPCOM test TestThreadUtils to a gtest. r=froydnj
MozReview-Commit-ID: EA0SNRX2EXC

--HG--
rename : xpcom/tests/TestThreadUtils.cpp => xpcom/tests/gtest/TestThreadUtils.cpp
2016-11-04 16:24:59 -07:00
Eric Rahm
f858baa31d Bug 1313482 - Convert XPCOM test TestTextFormatter to a gtest. r=froydnj
MozReview-Commit-ID: FQ5K3jvqb7c

--HG--
rename : xpcom/tests/TestTextFormatter.cpp => xpcom/tests/gtest/TestTextFormatter.cpp
2016-11-04 16:24:42 -07:00
Eric Rahm
c4ab361b4f Bug 1313481 - Convert XPCOM test TestTArray to a gtest. r=froydnj
MozReview-Commit-ID: 8fB9Wi9ghD0

--HG--
rename : xpcom/tests/TestTArray.cpp => xpcom/tests/gtest/TestTArray2.cpp
2016-11-04 16:24:27 -07:00
Eric Rahm
95240c203d Bug 1313480 - Remove test TestStringAPI. r=froydnj
Once the xpcom glue library is removed we will no longer need an external
StringAPI, so this test can go away.

MozReview-Commit-ID: DdGV2dWvlK1
2016-11-04 16:24:15 -07:00
Eric Rahm
c4d14d9414 Bug 1313479 - Part 2: Expand and split out TestObserverService tests. r=froydnj
This splits out enumertion testing, adds testing of weak references, and other
basic tests for add and remove functions.

MozReview-Commit-ID: CLEafPJhe3z
2016-11-04 16:24:00 -07:00
Eric Rahm
b6fc8d17a4 Bug 1313479 - Part 1: Convert TestObserverService to a gtest. r=froydnj
This is a straightforward conversion to a gtest. The test itself is updated
to use RefPtr/nsCOMPtr where appropriate to avoid memory leaks.

MozReview-Commit-ID: JyHF3iTaoOg

--HG--
rename : xpcom/tests/TestObserverService.cpp => xpcom/tests/gtest/TestObserverService.cpp
2016-11-04 16:23:58 -07:00
Eric Rahm
0903b48439 Bug 1313479 - Part 0-1: Add missing includes to unified gtests. r=froydnj
MozReview-Commit-ID: 4KVwMQJcAIS
2016-11-04 16:23:57 -07:00
Eric Rahm
a25afbd5ae Bug 1313479 - Part 0: Cleanup indentation. r=froydnj
MozReview-Commit-ID: 7PAMbXHB5Ws
2016-11-04 16:23:55 -07:00
Eric Rahm
d021c055ec Bug 1313477 - Convert XPCOM test TestObserverArray to a gtest. r=froydnj
This is a very straightforward conversion of TestObserverArray. The tests were
not split out as they are all dependent on each other. The test macro was left
as well as converting it to a proper function would require a fair amount of
modification to the tests.

MozReview-Commit-ID: Bz9aWbAwBS

--HG--
rename : xpcom/tests/TestObserverArray.cpp => xpcom/tests/gtest/TestObserverArray.cpp
2016-11-04 16:23:38 -07:00
Eric Rahm
caff0efb46 Bug 1313475 - Part 2: Convert TestNsRefPtr to a gtest. r=froydnj
This converts the tests over to gtests.

MozReview-Commit-ID: 3oXY9kUZdB6

--HG--
rename : xpcom/tests/TestNsRefPtr.cpp => xpcom/tests/gtest/TestNsRefPtr.cpp
2016-11-04 16:23:23 -07:00
Eric Rahm
3b6db52f8b Bug 1313475 - Part 1: Split out test functions. r=froydnj
MozReview-Commit-ID: EHmr48RpGq0
2016-11-04 16:23:22 -07:00
Eric Rahm
2d999d3cd0 Bug 1313475 - Part 0: Cleanup indentation. r=froydnj
MozReview-Commit-ID: 9BKCOxDZpBk
2016-11-04 16:23:21 -07:00
Eric Rahm
eed887ecb5 Bug 1313474 - Convert XPCOM test TestID to a gtest. r=froydnj
MozReview-Commit-ID: 7rLi2Y9lYEI

--HG--
rename : xpcom/tests/TestID.cpp => xpcom/tests/gtest/TestID.cpp
2016-11-04 16:23:08 -07:00
Eric Rahm
962506ea53 Bug 1313473 - Part 2: Convert XPCOM test TestHashtables to a gtest. r=froydnj
MozReview-Commit-ID: DTOeKiesYBP

--HG--
rename : xpcom/tests/TestHashtables.cpp => xpcom/tests/gtest/TestHashtables.cpp
2016-10-31 16:58:42 -07:00
Eric Rahm
0a6bf97fca Bug 1313473 - Part 1: Split out test functions. r=froydnj
MozReview-Commit-ID: 4A0JgxyXWPz
2016-10-31 16:34:24 -07:00
Eric Rahm
84a7d935e9 Bug 1313472 - Part 1: Convert XPCOM test TestFile to a gtest. r=froydnj
This is a very straightforward conversion of TestFile to a gtest. It sticks
with using one main test function to avoid dealing with possible dependency
issues between subtests.

MozReview-Commit-ID: IoIeGgisMGE

--HG--
rename : xpcom/tests/TestFile.cpp => xpcom/tests/gtest/TestFile.cpp
2016-11-04 16:22:43 -07:00
Eric Rahm
07a4fa7730 Bug 1313472 - Part 0: Cleanup indentation. r=froydnj
MozReview-Commit-ID: 8LrPZNELGkJ
2016-11-04 16:22:41 -07:00
Eric Rahm
95aaba6075 Bug 1313471 - Part 2: Convert TestCOMPtrEq to a gtest. r=froydnj
MozReview-Commit-ID: GifbCK1zzxh

--HG--
rename : xpcom/tests/TestCOMPtrEq.cpp => xpcom/tests/gtest/TestCOMPtrEq.cpp
2016-11-04 16:22:29 -07:00
Eric Rahm
3ea2b4d54f Bug 1313471 - Part 1: Remove dead code. r=froydnj
MozReview-Commit-ID: FzGVmd0LO73
2016-11-04 16:22:28 -07:00
Eric Rahm
3a98aea28d Bug 1313470 - Part 2: Convert TestCOMPtr to a gtest. r=froydnj
MozReview-Commit-ID: HfcLTmvkRc8

--HG--
rename : xpcom/tests/TestCOMPtr.cpp => xpcom/tests/gtest/TestCOMPtr.cpp
2016-11-04 16:22:14 -07:00
Eric Rahm
5eb4e3e106 Bug 1313470 - Part 1: Split out test functions. r=froydnj
This just splits out test functions, no logic is changed.

MozReview-Commit-ID: EjGYyUjf1b2
2016-11-04 16:22:12 -07:00
Eric Rahm
42e86206df Bug 1313470 - Part 0: Cleanup indentation. r=froydnj
This is just whitespace changes with a few minor deletions.

MozReview-Commit-ID: A7fpHLqt5fU
2016-11-04 16:22:11 -07:00
Eric Rahm
63cd7f256f Bug 1313469 - Part 2: Convert TestCOMArray to a gtest. r=froydnj
MozReview-Commit-ID: CEhXX60lpZ8

--HG--
rename : xpcom/tests/TestCOMArray.cpp => xpcom/tests/gtest/TestCOMArray.cpp
2016-11-04 16:21:59 -07:00
Eric Rahm
63521114a3 Bug 1313469 - Part 1: Split out test functions. r=froydnj
This just splits out the test functions, no logic is changed.

MozReview-Commit-ID: KjUA9rQ7iOS
2016-11-04 16:21:58 -07:00
Eric Rahm
c2b108ce95 Bug 1313468: Convert XPCOM test TestAutoRef to a gtest. r=froydnj
MozReview-Commit-ID: GkEPSkzNeuB

--HG--
rename : xpcom/tests/TestAutoRef.cpp => xpcom/tests/gtest/TestAutoRef.cpp
2016-11-04 16:21:37 -07:00
Eric Rahm
c7e1364869 Bug 1313467 - Part 4: Convert TestAutoPtr to a gtest. r=froydnj
MozReview-Commit-ID: EOKHAQyZ4fZ

--HG--
rename : xpcom/tests/TestAutoPtr.cpp => xpcom/tests/gtest/TestAutoPtr.cpp
2016-11-04 11:13:58 -07:00
Eric Rahm
f7eeed4c07 Bug 1313467 - Part 3: Cleanup the formatting of the rest of the file. r=froydnj
MozReview-Commit-ID: AfMDPcBjf3Y
2016-11-04 11:13:56 -07:00
Eric Rahm
f4fdee3210 Bug 1313467 - Part 2: Move tests into individual functions. r=froydnj
This just moves code into separate functions. No logic changes were made.

MozReview-Commit-ID: 98NqhCb4T67
2016-11-04 11:13:55 -07:00
Eric Rahm
5672d02d4b Bug 1313467 - Part 1: Remove RefPtr tests from TestAutoPtr. r=froydnj
This is a test for nsAutoPtr, we shouldn't be testing RefPtr here.

MozReview-Commit-ID: IqwgINAuYar
2016-11-04 11:13:54 -07:00
Eric Rahm
491422bbde Bug 1313466 - Remove XPCOM test ShowAlignments. r=froydnj
MozReview-Commit-ID: 9FpMhw2MsjH
2016-11-04 11:13:25 -07:00
Phil Ringnalda
c0dcc76ef6 Backed out 18 changesets (bug 1313469, bug 1313468, bug 1313474, bug 1313472, bug 1313473, bug 1313470, bug 1313471, bug 1313467, bug 1313466) for OS X gtest crashes
CLOSED TREE

Backed out changeset 5b5686e1bcd1 (bug 1313474)
Backed out changeset e8d20bdd13d4 (bug 1313473)
Backed out changeset 643bdd25166e (bug 1313473)
Backed out changeset 9a33c84ab30a (bug 1313472)
Backed out changeset 4d84926813e9 (bug 1313472)
Backed out changeset c85e7a7a5a99 (bug 1313471)
Backed out changeset 5d82bc9436ab (bug 1313471)
Backed out changeset 00f7b342bb29 (bug 1313470)
Backed out changeset f012923cfd8b (bug 1313470)
Backed out changeset e7d5b8135ae6 (bug 1313470)
Backed out changeset 82bf00ff6505 (bug 1313469)
Backed out changeset 5364fc8db9b0 (bug 1313469)
Backed out changeset 02959aa60196 (bug 1313468)
Backed out changeset 3c25a6ed5914 (bug 1313467)
Backed out changeset 0acc0a131101 (bug 1313467)
Backed out changeset 6fae1bbd3819 (bug 1313467)
Backed out changeset 107eb264a40d (bug 1313467)
Backed out changeset 9b60e295a885 (bug 1313466)

MozReview-Commit-ID: IKsAZxBYMfv

--HG--
rename : xpcom/tests/gtest/TestAutoPtr.cpp => xpcom/tests/TestAutoPtr.cpp
rename : xpcom/tests/gtest/TestAutoRef.cpp => xpcom/tests/TestAutoRef.cpp
rename : xpcom/tests/gtest/TestCOMArray.cpp => xpcom/tests/TestCOMArray.cpp
rename : xpcom/tests/gtest/TestCOMPtr.cpp => xpcom/tests/TestCOMPtr.cpp
rename : xpcom/tests/gtest/TestCOMPtrEq.cpp => xpcom/tests/TestCOMPtrEq.cpp
rename : xpcom/tests/gtest/TestFile.cpp => xpcom/tests/TestFile.cpp
rename : xpcom/tests/gtest/TestHashtables.cpp => xpcom/tests/TestHashtables.cpp
rename : xpcom/tests/gtest/TestID.cpp => xpcom/tests/TestID.cpp
2016-11-03 23:00:47 -07:00
Eric Rahm
6da13d0163 Bug 1313474 - Convert XPCOM test TestID to a gtest. r=froydnj
MozReview-Commit-ID: 7rLi2Y9lYEI

--HG--
rename : xpcom/tests/TestID.cpp => xpcom/tests/gtest/TestID.cpp
2016-11-03 17:56:02 -07:00
Eric Rahm
2f5b6bf1e3 Bug 1313473 - Part 2: Convert XPCOM test TestHashtables to a gtest. r=froydnj
MozReview-Commit-ID: DTOeKiesYBP

--HG--
rename : xpcom/tests/TestHashtables.cpp => xpcom/tests/gtest/TestHashtables.cpp
2016-10-31 16:58:42 -07:00
Eric Rahm
c3422371de Bug 1313473 - Part 1: Split out test functions. r=froydnj
MozReview-Commit-ID: 4A0JgxyXWPz
2016-10-31 16:34:24 -07:00
Eric Rahm
09cf3af3b2 Bug 1313472 - Part 1: Convert XPCOM test TestFile to a gtest. r=froydnj
This is a very straightforward conversion of TestFile to a gtest. It sticks
with using one main test function to avoid dealing with possible dependency
issues between subtests.

MozReview-Commit-ID: IoIeGgisMGE

--HG--
rename : xpcom/tests/TestFile.cpp => xpcom/tests/gtest/TestFile.cpp
2016-11-03 17:55:30 -07:00
Eric Rahm
fac3abb865 Bug 1313472 - Part 0: Cleanup indentation. r=froydnj
MozReview-Commit-ID: 8LrPZNELGkJ
2016-11-03 17:55:29 -07:00
Eric Rahm
9c2e2af38c Bug 1313471 - Part 2: Convert TestCOMPtrEq to a gtest. r=froydnj
MozReview-Commit-ID: GifbCK1zzxh

--HG--
rename : xpcom/tests/TestCOMPtrEq.cpp => xpcom/tests/gtest/TestCOMPtrEq.cpp
2016-11-03 17:55:28 -07:00
Eric Rahm
eab5b6b405 Bug 1313471 - Part 1: Remove dead code. r=froydnj
MozReview-Commit-ID: FzGVmd0LO73
2016-11-03 17:55:26 -07:00
Eric Rahm
6a05e61ed8 Bug 1313470 - Part 2: Convert TestCOMPtr to a gtest. r=froydnj
MozReview-Commit-ID: HfcLTmvkRc8

--HG--
rename : xpcom/tests/TestCOMPtr.cpp => xpcom/tests/gtest/TestCOMPtr.cpp
2016-11-03 17:55:25 -07:00
Eric Rahm
c15570e9d7 Bug 1313470 - Part 1: Split out test functions. r=froydnj
This just splits out test functions, no logic is changed.

MozReview-Commit-ID: EjGYyUjf1b2
2016-11-03 17:55:24 -07:00
Eric Rahm
2b3f5930cb Bug 1313470 - Part 0: Cleanup indentation. r=froydnj
This is just whitespace changes with a few minor deletions.

MozReview-Commit-ID: A7fpHLqt5fU
2016-11-03 17:55:22 -07:00
Eric Rahm
a20fe79aec Bug 1313469 - Part 2: Convert TestCOMArray to a gtest. r=froydnj
MozReview-Commit-ID: CEhXX60lpZ8

--HG--
rename : xpcom/tests/TestCOMArray.cpp => xpcom/tests/gtest/TestCOMArray.cpp
2016-11-03 17:55:21 -07:00
Eric Rahm
feb303e87f Bug 1313469 - Part 1: Split out test functions. r=froydnj
This just splits out the test functions, no logic is changed.

MozReview-Commit-ID: KjUA9rQ7iOS
2016-11-03 17:55:20 -07:00
Eric Rahm
aea4240774 Bug 1313468: Convert XPCOM test TestAutoRef to a gtest. r=froydnj
MozReview-Commit-ID: GkEPSkzNeuB

--HG--
rename : xpcom/tests/TestAutoRef.cpp => xpcom/tests/gtest/TestAutoRef.cpp
2016-11-03 17:55:16 -07:00
Eric Rahm
de9486a254 Bug 1313467 - Part 4: Convert TestAutoPtr to a gtest. r=froydnj
MozReview-Commit-ID: EOKHAQyZ4fZ

--HG--
rename : xpcom/tests/TestAutoPtr.cpp => xpcom/tests/gtest/TestAutoPtr.cpp
2016-11-03 17:49:01 -07:00
Eric Rahm
a7b2c53840 Bug 1313467 - Part 3: Cleanup the formatting of the rest of the file. r=froydnj
MozReview-Commit-ID: AfMDPcBjf3Y
2016-11-03 17:48:17 -07:00
Eric Rahm
d99dcde62e Bug 1313467 - Part 2: Move tests into individual functions. r=froydnj
This just moves code into separate functions. No logic changes were made.

MozReview-Commit-ID: 98NqhCb4T67
2016-11-03 17:48:16 -07:00
Eric Rahm
1c09ee8cf0 Bug 1313467 - Part 1: Remove RefPtr tests from TestAutoPtr. r=froydnj
This is a test for nsAutoPtr, we shouldn't be testing RefPtr here.

MozReview-Commit-ID: IqwgINAuYar
2016-11-03 17:48:14 -07:00
Eric Rahm
7662f973fd Bug 1313466 - Remove XPCOM test ShowAlignments. r=froydnj
MozReview-Commit-ID: 9FpMhw2MsjH
2016-11-03 17:48:13 -07:00
Eric Rahm
ea799cdb96 Bug 1311191 - Part 1: Add nsISupportsArray-like iteration to nsArray. r=froydnj
This adds an intermediate interface, nsIArrayExtensions, that inherits from
nsIArray. This is necessary as nsISupportsArray implements nsIArray as well
so the methods could not just be addded to nsIArray. nsIMutableArray inherits
from nsIArrayExtensions and so any interface that works with an nsIMutableArray
can be updated to return an nsIArrayExtensions.

This will allow interfaces that currently return an nsISupportsArray to instead
return an nsIArrayExtensions and internally work with an nsIMutableArray.
Consumers of these functions will continue to be able to use
nsISupportsArray-like iteration even though they're now working with an
nsIArray.

MozReview-Commit-ID: 9uRjsJbg9Jp
2016-10-24 13:24:26 -07:00
Eric Rahm
3ee733ccd7 Bug 1310040 - Make nsSupportsArray implement nsIArray. r=froydnj
This makes nsSupportsArray implement the |nsIArray| interface. This will allow
us to replace references to nsISupportsArray as a param in our gecko interfaces
with nsIArray instead.

The goal is to remove this adapter (and nsISupportsArray) after a full release
cycle.

MozReview-Commit-ID: If7RiO5muIk
2016-10-18 11:52:08 -07:00
Chris Peterson
69596fd26b Bug 1309462 - Replace MOZ_ASSERT with MOZ_RELEASE_ASSERT in xpcom/tests/. r=froydnj 2016-10-12 19:40:45 -07:00
Tom Tromey
7bc8491bea Bug 1067547 - unify ScopedLogging implementations and use in nsEmbedFunctions; r=bsmedberg
MozReview-Commit-ID: 6hDZDaBsNFM

--HG--
extra : rebase_source : 9422c235ebdffd84e06137bb2c63ce106cb39f0b
2016-09-26 11:06:38 -06:00
Gijs Kruitbosch
926b56b96c Bug 1279240 - move path parsing of commandline handlers for mimetypes/protocols to nsILocalFileWin, r=froydnj
MozReview-Commit-ID: 4CENm3iqGUH

--HG--
extra : rebase_source : 2e208aa73d4c9d6827a11e3ef73fdeca6ed4a348
2016-09-30 17:18:41 +01:00
Wes Kocher
485474bedb Backed out 3 changesets (bug 1279240) for leaks on Windows VM mochitests a=backout
Backed out changeset 4b69e32e3a83 (bug 1279240)
Backed out changeset d0d5180dc062 (bug 1279240)
Backed out changeset dc1b725b47d4 (bug 1279240)
2016-09-29 17:44:41 -07:00
Gijs Kruitbosch
c85dd42c4b Bug 1279240 - move path parsing of commandline handlers for mimetypes/protocols to nsILocalFileWin, r=froydnj
MozReview-Commit-ID: 4CENm3iqGUH

--HG--
extra : rebase_source : f9932abcee9f923b58e964ade81f3428181707d5
2016-09-27 11:51:43 +01:00
Byron Campen [:bwc]
f6af4a9282 Bug 1157323 - Part 1: Make TestTimers a unit-test. r=froydnj
MozReview-Commit-ID: HPdP3muvzU8

--HG--
extra : rebase_source : a4728b9a4fdf1b1de354c04351d35dfb58edf693
2016-06-23 17:05:40 -05:00
Andrea Marchesini
d62e084ce0 Bug 1288997 - memory blob should not be shared across processes - part 2 - SlicedInputStream, r=froydnj 2016-07-25 22:41:02 +02:00
Eric Rahm
395fa9e2ed Bug 1301742 - Improve UTF-16 to UTF-8 conversion speed. r=froydnj
This adds an SSE2 optimized path for UTF-16 strings that can be trivially
converted to UTF-8 (they contain no characters > 0X7F). It has a
speedup for the case where many of the leading characters are < 0X80 and
should have the same performance in the worst-case scenario where the first
character is > 0X7F.
2016-09-15 15:46:29 -07:00
Ben Kelly
f0d440f9d1 Bug 1300118 P1 Make TaskQueue deliver runnables to nsIEventTarget. r=bholley 2016-09-13 20:12:15 -07:00
Wes Kocher
42f4e48aee Backed out 6 changesets (bug 1300118) for frequent Windows VM Xpcshell failures a=backout CLOSED TREE
Backed out changeset 24f714ad248c (bug 1300118)
Backed out changeset 6fe61ed092e8 (bug 1300118)
Backed out changeset dd18e29b64bf (bug 1300118)
Backed out changeset 50882fb40551 (bug 1300118)
Backed out changeset 60e82c1780e5 (bug 1300118)
Backed out changeset e40df52925d5 (bug 1300118)

--HG--
extra : amend_source : 7475f45d827654abe309696d73fd86e75a497c32
2016-09-12 16:34:41 -07:00
Ben Kelly
621f6bacd6 Bug 1300118 P1 Make TaskQueue deliver runnables to nsIEventTarget. r=bholley 2016-09-12 12:32:20 -07:00
Ben Kelly
a8a4ae3c4f Backout rev 5c7368370ff9 to 980659720b86 (bug 1300118 and bug 1300658) for incorrect bug number in commit message. r=me 2016-09-12 12:29:17 -07:00
Ben Kelly
157b0fe1ed Bug 1300118 P1 Make TaskQueue deliver runnables to nsIEventTarget. r=bholley 2016-09-12 11:21:01 -07:00
Michael Layzell
36e08437d0 Bug 1018486 - Part 8: Various other changes, r=smaug
MozReview-Commit-ID: B0dsomkWgEk
2016-09-07 10:50:45 -04:00
Kan-Ru Chen
b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Chris Manchester
b0b84a1928 Bug 1240134 - Incorporate the interfaces.xpt from downloaded artifacts instead of building XPIDL during an artifact build. r=glandium
MozReview-Commit-ID: 8oEyS1xLOwV
2016-08-17 15:02:31 -07:00
Nathan Froyd
114e020c41 Bug 1294809 - remove cppunittest TestPipe; r=erahm
We have TestPipes gtests that does the same thing (see the TestPipe2
function and callers) as this test.
2016-08-15 21:31:04 -04:00
Nicholas Nethercote
3b0485fcdb Bug 1294645 - Don't use NS_CALLBACK for callbacks in nsI{Input,Output,UnicharInput},Stream.idl. r=froydnj.
Slightly less than half (93 / 210) of the NS_METHOD instances in the codebase
are because of the use of NS_CALLBACK in
nsI{Input,Output,UnicharInput},Stream.idl. The use of __stdcall on Win32 isn't
important for these callbacks because they are only used as arguments to
[noscript] methods.

This patch converts them to vanilla |nsresult| functions. It increases the size
of xul.dll by about ~600 bytes, which is about 0.001%.

--HG--
extra : rebase_source : c15d85298e0975fd030cd8f8f8e54501f453959b
2016-08-12 17:36:22 +10:00
Nathan Froyd
96fd6a0aed Bug 1254779 - add tests to verify allocation function hooking; r=glandium 2016-08-12 18:55:07 -04:00
Nicholas Nethercote
bab6d17ebf Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj.
This patch makes the following changes on many in-class methods.

- NS_IMETHODIMP F() override;      --> NS_IMETHOD F() override;
- NS_IMETHODIMP F() override {...} --> NS_IMETHOD F() override {...}
- NS_IMETHODIMP F() final;         --> NS_IMETHOD F() final;
- NS_IMETHODIMP F() final {...}    --> NS_IMETHOD F() final {...}

Using NS_IMETHOD is the preferred way of marking in-class virtual methods.
Although these transformations add an explicit |virtual|, they are safe --
there's an implicit |virtual| anyway because |override| and |final| only work
with virtual methods.

--HG--
extra : rebase_source : 386ee4e4ea2ecd8d5001efabc3ac87b4d6c0659f
2016-08-08 10:54:47 +10:00
Nicholas Nethercote
e7f10a07fd Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Carsten "Tomcat" Book
bd81ddd0b0 merge mozilla-inbound to mozilla-central a=merge 2016-08-02 17:09:31 +02:00
JW Wang
48675814bd Bug 1290338. Part 1 - add a gtest to test WatchManager::Shutdown(). r=bholley
MozReview-Commit-ID: CJ3JJU2zLUF

--HG--
extra : rebase_source : 2495a541366c5baedec3eddf135e2507589824c6
2016-07-29 11:26:41 +08:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Chris Peterson
b175c9fdd5 Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
Thomas Zimmermann
4bee1b2945 Bug 1288077: Forward declare arrays by including 'nsTArrayForwardDeclare.h', r=froydnj
MozReview-Commit-ID: 4RBeHDyhQgr
2016-07-20 17:29:36 +02:00
Honza Bambas
c88a1286d2 Bug 1244306 - Rotate mozlog files within a size limit. r=erahm 2016-07-29 06:51:00 -04:00
Nathan Froyd
5dba0130cc Bug 1271751 - part 8 - fix bug in nsTArray_CopyWithConstructors; r=erahm
The backwards copying case in MoveOverlappingRegion had a bug: rather
than destroying each element from the source range as we moved it, we
would always destroy the element at the beginning of the source range.
Fortunately, none of the existing types that were copied via
constructors seem to trigger the problematic code.
2016-07-08 16:59:04 -04:00
Nathan Froyd
09a852e8b4 Bug 1271751 - part 0 - remove heap functions from nsTArray; r=erahm
They are unused, except for tests.
2016-07-08 16:59:05 -04:00
Eric Rahm
878eac623e Bug 1249352 - Part 4: Add a fallible NS_EscapeURL. r=froydnj 2016-06-27 11:10:46 -07:00
Jan Varga
2d1e6d62c8 Bug 1246828 - Part 4: Rename profile-before-change2 to profile-before-change-qm and profile-before-change3 to profile-before-change-telemetry; r=asuth 2016-06-15 11:49:04 +01:00
Jan Varga
b85865d615 Bug 1246828 - Part 1: Add an additional notification profile-before-change3 and update telemetry sending code to use it; r=asuth 2016-06-15 11:48:39 +01:00
Gerald Squelart
e4f93ee534 Bug 1271593 - Unit test for NS_NewRunnableFunction - r=froydnj
Tests to verify that the number of copies and moves are as expected.
Also check that the runnable is fully self-contained and can be used after the
initial function objects have been destroyed or moved-from.

MozReview-Commit-ID: ArwIG9BEhDX

--HG--
extra : rebase_source : b2ee07294fcff17b76da468ddbaeb2b62d600536
2016-06-02 00:53:35 +02:00
Andrew McCreight
35eaf64b42 Bug 1273190, part 3 - Fix some modelines in xpcom/. r=froydnj
Autogenerated by modeline.py.
2016-05-24 14:45:44 -07:00
Andrew McCreight
1ab7f7f2be Bug 1273190, part 2 - Add some missing licenses and mode lines to XPCOM gtests. r=froydnj 2016-05-24 14:45:44 -07:00
Andrew McCreight
21bb33df87 Bug 1273190, part 1 - Fix indentation and mode lines for various xpcom/ files. r=froydnj 2016-05-24 14:45:44 -07:00
Honza Bambas
bd3a9d8a05 Bug 1274583 - Add SkipUntil method to mozilla::Tokenizer, r=froydnj
MozReview-Commit-ID: HndyF0L0pdx

--HG--
extra : rebase_source : ffac585c1ed47eebe6e5e9f0ae8c4d566c7cd317
2016-05-22 07:33:00 -07:00
Ben Kelly
77ab8893ab Bug 1093357 P4 Follow-on to nsPipe3.cpp to address review feedback missing in P0 patch. r=me 2016-05-16 03:31:48 -07:00
Chris Peterson
8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Kyle Huey
941ab1f522 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Kyle Huey
7c2af31504 Bug 1268313: Part 5 - Make NS_NewRunnableMethod able to call const functions. r=froydnj 2016-05-05 01:44:59 -07:00
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
Nathan Froyd
78c64c0cde Backout 5649b6b8cec3 (bug 1219246) for Linux xpcshell bustage 2015-10-31 13:34:06 -04:00
Nathan Froyd
a5bf910f3f Bug 1219246 - use UniquePtr instead of nsAutoArrayPtr in xpcom/; r=erahm 2015-10-28 09:50:29 -04:00
Carsten "Tomcat" Book
6d8a42769f Backed out changeset d84d5faa4852 (bug 1201997) for m2 perma failures
--HG--
rename : xpcom/glue/tests/gtest/TestNsDeque.cpp => xpcom/tests/TestDeque.cpp
extra : rebase_source : 689453beeca1b317d9b2f57889ba1b133b628821
2015-10-30 15:53:22 +01:00
Honza Bambas
ba03a4f818 Bug 1219726 - Nit: Tokenizer.ShortcutChecks gtest should use nsDependentCSubstring. r=nfroyd 2015-10-29 05:58:00 +01:00
sajitk
d4bc9904dc 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
extra : rebase_source : 76fe6e0468ad1e0402a536bcb313bd4bb83f9c17
2015-10-29 19:55:00 +01:00
Tooru Fujisawa
1619a85fbf Bug 1217424 - Remove for-each from xpcom/. r=bholley
--HG--
extra : commitid : 6mnwhyI2pYK
2015-10-19 05:43:45 +09:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
c947ee6806 Bug 1126295 - Move TestAtoms.cpp to gtest and enable it; r=froydnj
commit 7d4543037c618cc0e95b6f1801c2187e3361c82a (HEAD, explicit)
Author: Ehsan Akhgari <ehsan@mozilla.com>
    Bug 1126295 - Move TestAtoms.cpp to gtest and enable it; r=froydnj

--HG--
rename : xpcom/tests/TestAtoms.cpp => xpcom/tests/gtest/TestAtoms.cpp
2015-01-27 09:28:45 -05:00
sajitk
b564e1db32 Bug 996105 - Added tests for registry access. Fixed wrong condition in ReadStringValue code. r=bsmedberg
--HG--
extra : amend_source : 8b78a62b071a515f3652e77c2abd37561ebf3380
2015-10-14 11:17:07 +05:30
Nigel Babu
640106b762 Backed out changeset 7077589b174c (bug 996105) for failing its own tests ON A CLOSED TREE 2015-10-13 16:10:39 +05:30
sajitk
5491f00db4 Bug 996105 - Added tests for registry access. Fixed wrong condition in ReadStringValue code. r=bsmedberg 2015-09-27 17:16:00 +02:00
Aryeh Gregor
c48c61128c Bug 1213862 - Align nsString whitespace handling with web specs; r=froydnj 2015-10-12 20:47:57 +03:00
Hiroyuki Ikezoe
00b0491dd0 Bug 1167627 - Part 3: Use mozinfo in xpcom/. r=bsmedberg 2015-10-11 21:48:00 +02:00
Carsten "Tomcat" Book
08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Tooru Fujisawa
5d153352bf Bug 1207499 - Part 13: Remove use of expression closure from xpcom/. r=froydnj
--HG--
extra : commitid : DVEzMkDSqJL
extra : rebase_source : 6d705caf89dfde999ed144d702c8d9173844e86a
2015-09-23 18:42:20 +09:00
Chris Peterson
71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Nicholas Nethercote
647b520991 Bug 1201135 - Rename pldhash.{h,cpp} to PLDHashTable.{h,cpp}. r=mccr8.
--HG--
rename : xpcom/glue/pldhash.cpp => xpcom/glue/PLDHashTable.cpp
rename : xpcom/glue/pldhash.h => xpcom/glue/PLDHashTable.h
extra : rebase_source : 06b9d30db96ed78500fd44d9c0b51609103508a3
2015-09-15 20:49:53 -07:00
Nicholas Nethercote
6f036921dc Bug 1203427 (part 1) - Add nsExpirationTracker::mName. r=froydnj.
There are many sub-classes of nsExpirationTracker. In order to distinguish them
nicely in the logging of timer firings, it's necessary to manually name each
one. (This wouldn't be necessary if there was a way to stringify template
parameters, but there isn't.)

--HG--
extra : rebase_source : 89b99e9dbb2a806bd21145d04a5e023794643b61
2015-09-09 21:07:07 -07:00
Chris Peterson
0dbaae1ce2 Bug 1204403 - Fix -Wshadow warnings in xpcom. r=mccr8 2015-09-07 23:56:16 -07:00
Nicholas Nethercote
2ee4fd783b Bug 1121760 (part 6) - Move all remaining PL_DHash*() functions into PLDHashTable. r=poiru.
--HG--
extra : rebase_source : 3cdc975507170d783b02d70f7c7d95c6bf2e1bcd
2015-09-14 14:23:47 -07:00
Nicholas Nethercote
59683492e5 Bug 1121760 (part 3) - Remove PL_DHashTableRemove(). r=poiru.
--HG--
extra : rebase_source : c34d693de4aca45f2ea05c2767c8b1007c89df29
2015-09-14 14:23:24 -07:00
Nicholas Nethercote
479244f7c9 Bug 1121760 (part 2) - Remove PL_DHashTableAdd(). r=poiru.
--HG--
extra : rebase_source : 41eb939bfb5c925cba58b1af57abce9a4e5fdb30
2015-09-14 14:23:12 -07:00
Nicholas Nethercote
fcfdd8f54b Bug 1121760 (part 1) - Remove PL_DHashTableSearch(). r=poiru.
--HG--
extra : rebase_source : 770e1f49a451ecbadd778e071b204611e27cf701
2015-05-21 00:34:25 -07:00
Andrew McCreight
5446225d17 Bug 1201271 - Warn about unused results for more methods of nsTArray. r=froydnj
This leaves alone the AppendElement methods.
2015-09-15 15:30:44 -07:00
Shu-yu Guo
64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Ben Kelly
233c4ec7a9 Bug 1203680 P4 Fix bug in nsStorageStream with reading streams created before data is populated. r=froydnj 2015-09-15 10:15:45 -07:00
Kyle Huey
0efe211e55 Bug 1200922: Add the ability to shut down a thread asynchronously. r=froydnj 2015-09-14 18:24:43 -07:00
Wes Kocher
a336f83a0a Backed out 9 changesets (bug 1203680) for mochitest bustage CLOSED TREE
Backed out changeset e4733b9eb53c (bug 1203680)
Backed out changeset fb33eb2a55b0
Backed out changeset eb42e21bbb96 (bug 1203680)
Backed out changeset 86642d84e604 (bug 1203680)
Backed out changeset 1026da4b02fb (bug 1203680)
Backed out changeset 311f9810e0b3 (bug 1203680)
Backed out changeset 6fedc85dc0d9 (bug 1203680)
Backed out changeset b25230c0a193 (bug 1093357)
Backed out changeset 2369d63ef14a (bug 1203680)
2015-09-14 14:27:57 -07:00
Ben Kelly
79ccea7ed6 Bug 1203680 P4 Fix bug in nsStorageStream with reading streams created before data is populated. r=froydnj 2015-09-14 12:04:56 -07:00
Ben Kelly
e0bbb6d4d2 Bug 1203760 P2 Add gtests for nsPipeInputStream AsyncRead(). r=froydnj 2015-09-14 08:49:09 -07:00
Honza Bambas
3506e6ec97 Bug 1199775 - mozilla::Tokenizer improvements vol 2. r=nfroyd 2015-09-02 06:20:00 +02:00
Wes Kocher
ba9de6a2f7 Backed out changeset f5b2a11c64c9 (bug 1201271) for bustage 2015-09-09 15:56:21 -07:00
Andrew McCreight
3e590f4e78 Bug 1201271 - Warn about unused results for more methods of nsTArray. r=froydnj
This leaves alone the AppendElement methods.
2015-09-09 15:39:10 -07:00
Eric Rahm
42afa97523 Bug 1199400 - Part 2: Add tests for possible nsDeque corner cases. r=froydnj 2015-09-04 15:05:01 -07:00
Andrew McCreight
13445609b8 Backed out changeset 351d5f864f9e for not compiling. 2015-09-04 09:52:24 -07:00
Andrew McCreight
cc00f8d5c9 Bug 1201271 - Warn about unused results for more methods of nsTArray. r=froydnj
This leaves alone the AppendElement methods.
2015-09-04 09:45:44 -07:00
Mike Hommey
fba2225be7 Bug 1201453 - Make TestTArray's test_fallible use array sizes slightly less than 128MB. r=nfroyd 2015-09-04 14:35:53 +09:00
Nicholas Nethercote
f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Honza Bambas
c0030e0da9 Bug 1188983 - mozilla::Tokenizer improvements, r=nfroyd
--HG--
extra : rebase_source : 8cfe594e6c320a9330f09b34d7d7018e023938da
2015-08-19 15:14:25 -07:00
Xidorn Quan
9602783f5f Bug 1195154 - Replace operator overloads for comparing nsRefPtr to 0 with those for comparing to nullptr. r=froydnj 2015-08-19 11:06:05 -07:00
Nigel Babu
0005d3bf06 Backed out changeset 20c6f74296e2 (bug 1195154) for causing Bug 1196115
--HG--
extra : rebase_source : 59356f3ff488b4000e4f3034f9c676d4afe8b49f
2015-08-19 20:43:11 +05:30
Xidorn Quan
aedc156767 Bug 1195154 - Replace operator overloads for comparing nsRefPtr to 0 with those for comparing to nullptr. r=froydnj
--HG--
extra : source : 3303e551336985eca8b501dcc12cf6f2dddbdec3
2015-08-19 09:09:08 +10:00
Nicholas Nethercote
0a97485195 Bug 1190735 - Remove nsITimer.TYPE_REPEATING_PRECISE. r=froydnj.
--HG--
extra : rebase_source : e4424bde52b0f90adbd328071f62b89193098d34
2015-08-04 17:30:53 -07:00
Botond Ballo
1ad5e05028 Bug 1056356 - Add support for nsRefPtr<const T>. r=froydnj
--HG--
extra : rebase_source : 7b86c6e7bc47c7b3ebc19075559cf0f7d24ededf
2015-08-05 13:52:06 -04:00
James Cheng
315911c26e Bug 1189231 - Impl operator->* to nsAutoPtr. r=nfroyd 2015-07-30 21:02:00 -04:00
Nicholas Nethercote
2d56c1f52e Bug 1189156 (part 1) - Don't use enumeration style for PLDHashTable::SizeOf{In,Ex}cludingThis(). r=froydnj.
After this change, we have PLDHashTable::ShallowSizeOf{In,Ex}cludingThis(),
which don't do anything to measure children. (They can be combined with
iteration to measure children.)

This patch also removes the PL_DHashTableSizeOf{In,Ex}cludingThis() functions.
They're not necessary because the methods can be used instead.

Finally, the patch deliberately converts some SizeOfExcludingThis() calls to
SizeOfIncludingThis(). These are all done on heap pointers so this change is
valid.

--HG--
extra : rebase_source : b1d51096a8e7dcac29d7efd92e28938836ff5481
2015-07-29 22:28:20 -07:00
James Cheng
9aed940662 Bug 975246 - Part2- Test Invoking via operator->*. r=nfroyd 2015-07-29 02:52:00 +02:00
Byron Campen [:bwc]
0978da8e2c Bug 1059572 - Part 0.5: Fixes for pre-existing problems in TestTimers. r=nfroyd
--HG--
extra : rebase_source : c1b7e705e4a46f69f2567469ae54f866768de0a4
2015-07-29 11:43:40 -05:00
Byron Campen [:bwc]
e9930c8020 Bug 1059572 - Part 0: Fuzz test for timers. r=nfroyd
--HG--
extra : rebase_source : ca1e13f6b60ed61b190f8ace90d28f78e531e90b
2015-07-29 11:16:14 -05:00
Bobby Holley
97b9240b34 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Honza Bambas
61aeafa22b Bug 1024056 - Simple ASCII lexical analyzer. r=nfroyd 2015-07-27 05:07:00 -04:00
Nicholas Nethercote
50600e08a2 Bug 1181443 (part 2) - Use nsTHashtable::Iterator in TestHashtables.cpp. r=froydnj.
--HG--
extra : rebase_source : 8af9bef1f1f474555f09b41ec3d985add6d9d728
2015-07-23 02:36:13 -07:00
Birunthan Mohanathas
4db7ee5707 Bug 1185589 - Properly handle self-assignment in nsTArray::operator=. r=mccr8 2015-07-21 09:42:58 -07:00