Commit Graph

15407 Commits

Author SHA1 Message Date
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
Wes Kocher
df5dbf81cc Merge central to inbound a=merge 2016-11-02 17:31:08 -07:00
Matt Woodrow
12feacb4da Bug 1314191 - Make sure we shut down VideoDecoderManagerChild before threads go away. r=dvander 2016-11-03 09:57:17 +13:00
Aaron Klotz
9a3cf49632 Bug 1314183: Ensure that nsWindowsDllInterceptor does not accept RIP-relative displacements on amd64; r=dmajor
MozReview-Commit-ID: DNf3h9UiRkG

--HG--
extra : rebase_source : 5357b972f72ca10579c6a8ba4a73b61ea84870bb
2016-11-02 10:42:07 -06:00