Commit Graph

95 Commits

Author SHA1 Message Date
Dan Minor
06ef52e2cf Bug 1322707 - Stop building signaling_unittest and mediapipeline_unittests; r=jesup,glandium
MozReview-Commit-ID: FAAiByOB4m
2016-12-09 09:09:41 -10:00
Dan Minor
d2e2c4c2a4 Bug 1317714 - port mediaconduit_unittests to xul gtest; r=jesup, glandium
The test results were updated to match current behaviour. The
TestDummyAudioWithTransport and TestDummyVideoWithTransports are disabled due
to shutdown crashes and intermittent failures that show up in automation.
A follow up bug has been filed to fix these. The GMP test was removed
completely as it seems unlikely that it will be practical to test that from a
gtest.

MozReview-Commit-ID: 2pOb7u2Qp7v
2016-11-18 08:17:36 -05:00
Benjamin Smedberg
a0df451c2b Bug 1313752 - Port binary tests in netwerk/test to gtest, or remove the ones that we currently aren't running. r=michal.novotny. Includes the following followups:
* TestUDPSocket wasn't initializing it's members properly, fixup by mcmanus
* Scope the netwerk TestCommon waiting to be non-global, and add assertions so that waiting is deterministic. r=mcmanus

MozReview-Commit-ID: 7jLgNIujrbu
2016-11-29 13:53:48 -05:00
Nathan Froyd
b995466f21 Bug 1320752 - remove mozilla/Function.h; r=gerald
We have std::function available now, which is likely to be somewhat more
efficient.
2016-11-28 11:03:53 -05:00
Nicholas Nethercote
9994803f5a Bug 1315138 - gtestify storage/test/*.cpp. r=mak,erahm.
This change is mostly straightforward, except for the following.

- It removes all the printing from the do_check_* macros because gtest macros
  do appropriate printing.

- test_StatementCache.cpp needs some special gtest magic for the type
  parameterization.

- It merges the four tests in test_unlock_notify.cpp because they rely on being
  executed in order, and so aren't independent.

- storage_test_harness_tail.h is no longer necessary because gtest provides the
  test looping functionality.

- It uses #include and the preprocessor to remove the duplication between
  test_deadlock_detector.cpp and xpcom/tests/DeadlockDetector.cpp.

- It makes the test in test_service_init_background_thread.cpp a death test to
  force it to be the first storage gtest, because it fails otherwise.

- It adds code to undo the SQLite mutex hooking as necessary, so that tests
  don't interfere with each other.

- It de-virtualizes Spinner's destructor (as identified in bug 1318282).
2016-11-11 09:59:23 +11:00
Nicholas Nethercote
6d0bee9f8e Bug 1316792 - gtestify toolkit/components/places/tests/cpp/test_IHistory.cpp. r=mak.
This is a most minimal gtest conversion possible. It leaves in place
significant amounts of non-typical-for-gtest code.

Notable changes:

- All the mock Link and URLSearchParams method definitions are no longer
  needed.

- The changes adds a new constructor for Link that doesn't set mHistory.
  Without that, leaked URLs occur at shutdown.

- The output printed by the test is slightly streamlined, mostly by omitting
  the test filename.

- It disables TestMediaFormatReader.cpp, which was causing problems. That test
  is slated for removal in bug 1318225 anyway.
2016-11-12 06:22:01 +11:00
Dan Minor
7aa1a41023 Bug 1317009 - Port jsep_session_unittest and jsep_track_unittest to xul gtest; r=bwc
MozReview-Commit-ID: spuZSAnSDC
2016-11-15 09:35:14 -05:00
Benjamin Smedberg
ed1f6066be Bug 1314350 - Port TestTXMgr to gtest. This removes the framework for testing object destruction order because that was already non-deterministic due to the cycle collector, r=masayuki
MozReview-Commit-ID: vK4iYmytgt
2016-11-15 13:06:05 -05:00
Benjamin Smedberg
bf5cc1e428 Bug 1314378 part B - port TestStartupCache to gtest, r=froydnj
MozReview-Commit-ID: LTz4slzIkjH
2016-11-11 11:57:08 -05:00
Iris Hsiao
ea85a6b247 Backed out changeset 4585a7b6f3ce (bug 1314378) 2016-11-16 15:30:52 +08:00
Benjamin Smedberg
9ef05e03bd Bug 1314378 part B - port TestStartupCache to gtest, r=froydnj
MozReview-Commit-ID: LTz4slzIkjH
2016-11-11 11:57:08 -05:00
Matthew Gregan
a5db0b5af8 Bug 1314514 - Update libcubeb to 8bab182c. r=padenot 2016-11-11 15:01:56 +13:00
Wes Kocher
a4cbd45ed9 Backed out changeset 359999c77a46 (bug 1314514) for build bustage a=backout CLOSED TREE 2016-11-15 12:03:51 -08:00
Matthew Gregan
94b0e8f159 Bug 1314514 - Update libcubeb to 8bab182c. r=padenot 2016-11-11 15:01:56 +13:00
Dan Minor
43ecf22b49 Bug 1316888 - Port sdp_unittests to xul gtest; r=bwc
MozReview-Commit-ID: 12qrqpZq2pW
2016-11-11 12:24:03 -05:00
Nicholas Nethercote
81687813e8 Bug 1315869 - gtestify security/manager/ssl/tests/compiled/*.cpp. r=cykesiopka. 2016-11-08 15:37:06 +11:00
David Keeler
41b5875a09 bug 1315869 - convert TestIsCertBuiltInRoot to an xpcshell test r=Cykesiopka,njn
MozReview-Commit-ID: 4MYxUtuLj4p
2016-11-08 16:47:37 -08:00
Eric Rahm
7c198dbf2c Bug 1316904 - Convert windows XPCOM tests to gtest. r=froydnj
This converts TestNtPathToDosPath and TestCOM to gtests.

MozReview-Commit-ID: EeNwvsj4cAs
2016-11-11 12:02:52 -08:00
Eric Rahm
ead9925a96 Bug 1313489 - Part 2: Convert DeadlockDetectorScalability to a gtest. r=froydnj
This converts the tests to gtests. Most of them are just runtime tests and just
hava dummy assertion that everything ran. One test remains disabled, although
it's still built-in. You can run the disabled test with the following command:

> GTEST_ALSO_RUN_DISABLED_TESTS=1 ./mach gtest DeadlockDetectorScalability.*

MozReview-Commit-ID: 57rxjiZKjQ6
2016-11-10 12:47:48 -08:00
Eric Rahm
c470495488 Bug 1313488 - Part 1: Convert XPCOM test TestDeadlockDetector to a gtest. r=froydnj
This converts TestDeadlockDetector to a gtest. The logic for spawning off
subprocesses is replaced with gtest's built-in death tests. On linux this will
clone() the process and assert that the child process generates the appropriate
assertion message. On OSX it will use fork(). In theory this should work on
Windows as well buy spawning a new process but this test currently disabled
there.

MozReview-Commit-ID: 9Sl0hHBVGT3
2016-11-10 12:47:23 -08:00
Sebastian Hengst
018f92d608 Backed out changeset deabf7bc6526 (bug 1313488) 2016-11-09 21:10:10 +01:00
Sebastian Hengst
3e99941dbc Backed out changeset 54098e53a584 (bug 1313489) 2016-11-09 21:10:02 +01:00
Eric Rahm
3b194cefac Bug 1313489 - Part 2: Convert DeadlockDetectorScalability to a gtest. r=froydnj
This converts the tests to gtests. Most of them are just runtime tests and just
hava dummy assertion that everything ran. One test remains disabled, although
it's still built-in. You can run the disabled test with the following command:

> GTEST_ALSO_RUN_DISABLED_TESTS=1 ./mach gtest DeadlockDetectorScalability.*

MozReview-Commit-ID: 57rxjiZKjQ6
2016-11-09 10:25:17 -08:00
Eric Rahm
a291f89e15 Bug 1313488 - Part 1: Convert XPCOM test TestDeadlockDetector to a gtest. r=froydnj
This converts TestDeadlockDetector to a gtest. The logic for spawning off
subprocesses is replaced with gtest's built-in death tests. On linux this will
clone() the process and assert that the child process generates the appropriate
assertion message. On OSX it will use fork(). In theory this should work on
Windows as well buy spawning a new process but this test currently disabled
there.

MozReview-Commit-ID: 9Sl0hHBVGT3
2016-11-09 10:24:58 -08:00
Eric Rahm
41c80ef7d6 Bug 1313485 - Convert XPCOM test TestJemalloc to a gtest. r=njn
MozReview-Commit-ID: 5yzn8o33Ne5
2016-11-09 10:24:22 -08:00
Eric Rahm
65829977bc Bug 1313484 - Convert XPCOM test TestTimers to a gtest. r=froydnj
MozReview-Commit-ID: 8sH5fbvv9wZ
2016-11-09 10:23:43 -08:00
Nicholas Nethercote
a0ae5076ac Bug 1315561 - gtestify dom/media/compiledtest/*.cpp. r=padenot.
The only complication was that I had to add namespaces to TestAudioMixer.cpp
and TestAudioSegment.cpp to avoid multiple definitions of a few small helper
functions like GetLowValue().
2016-11-09 08:47:23 +11:00
Phil Ringnalda
8e58245a70 Backed out 5 changesets (bug 1313489, bug 1313488, bug 1313484) in hopes that OS X will go back to building without complaining about missing symbols in nsIFileEnumerator
Backed out changeset 276b093c968f (bug 1313489)
Backed out changeset 5a062f72097d (bug 1313489)
Backed out changeset dbd9b56b50e7 (bug 1313488)
Backed out changeset 22e770047827 (bug 1313488)
Backed out changeset 6a7831fbca69 (bug 1313484)

MozReview-Commit-ID: KP9gk9o11co
2016-11-07 19:12:13 -08:00
Sebastian Hengst
f3b9fd3b49 Backed out changeset 1b545e55e42a (bug 1313485) for bustage. r=backout 2016-11-07 23:46:09 +01:00
Eric Rahm
01c8effab6 Bug 1313489 - Part 2: Convert DeadlockDetectorScalability to a gtest. r=froydnj
This converts the tests to gtests. Most of them are just runtime tests and just
hava dummy assertion that everything ran. One test remains disabled, although
it's still built-in. You can run the disabled test with the following command:

> GTEST_ALSO_RUN_DISABLED_TESTS=1 ./mach gtest DeadlockDetectorScalability.*

MozReview-Commit-ID: 57rxjiZKjQ6
2016-11-07 14:27:20 -08:00
Eric Rahm
5378e98981 Bug 1313488 - Part 1: Convert XPCOM test TestDeadlockDetector to a gtest. r=froydnj
This converts TestDeadlockDetector to a gtest. The logic for spawning off
subprocesses is replaced with gtest's built-in death tests. On linux this will
clone() the process and assert that the child process generates the appropriate
assertion message. On OSX it will use fork(). In theory this should work on
Windows as well buy spawning a new process but this test currently disabled
there.

MozReview-Commit-ID: 9Sl0hHBVGT3
2016-11-07 14:27:04 -08:00
Eric Rahm
f1c4acfec0 Bug 1313485 - Convert XPCOM test TestJemalloc to a gtest. r=njn
MozReview-Commit-ID: 5yzn8o33Ne5
2016-11-07 14:26:25 -08:00
Eric Rahm
fbd35cdac6 Bug 1313484 - Convert XPCOM test TestTimers to a gtest. r=froydnj
MozReview-Commit-ID: 8sH5fbvv9wZ
2016-11-07 14:25:41 -08:00
Nicholas Nethercote
39a85dc1cb Bug 1315170 - gtestify dom/security/test/TestCSPParser.cpp. r=francois. 2016-11-04 17:02:26 +11:00
Nicholas Nethercote
39ab4bab87 Bug 1314870 - gtestify TestWebGLElementArrayCache.cpp. r=jgilbert. 2016-11-04 14:38:59 +11:00
Nicholas Nethercote
ba4f09d5a8 Bug 1314827 (attempt 2) - gtestify dom/base/test/*.cpp. r=baku. 2016-11-04 14:36:23 +11:00
Eric Rahm
dfce577e15 Bug 1313483 - Convert XPCOM test TestThreadUtils to a gtest. r=froydnj
MozReview-Commit-ID: EA0SNRX2EXC
2016-11-04 16:24:59 -07:00
Eric Rahm
af1bf442a8 Bug 1313482 - Convert XPCOM test TestTextFormatter to a gtest. r=froydnj
MozReview-Commit-ID: FQ5K3jvqb7c
2016-11-04 16:24:42 -07:00
Eric Rahm
7c8141fb08 Bug 1313481 - Convert XPCOM test TestTArray to a gtest. r=froydnj
MozReview-Commit-ID: 8fB9Wi9ghD0
2016-11-04 16:24:27 -07:00
Eric Rahm
d248532406 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
09efb12818 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
2016-11-04 16:23:58 -07:00
Eric Rahm
ff77904b3b 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
2016-11-04 16:23:38 -07:00
Eric Rahm
cedc7722e0 Bug 1313475 - Part 2: Convert TestNsRefPtr to a gtest. r=froydnj
This converts the tests over to gtests.

MozReview-Commit-ID: 3oXY9kUZdB6
2016-11-04 16:23:23 -07:00
Eric Rahm
1f087a32fe Bug 1313474 - Convert XPCOM test TestID to a gtest. r=froydnj
MozReview-Commit-ID: 7rLi2Y9lYEI
2016-11-04 16:23:08 -07:00
Eric Rahm
34055f8189 Bug 1313473 - Part 2: Convert XPCOM test TestHashtables to a gtest. r=froydnj
MozReview-Commit-ID: DTOeKiesYBP
2016-10-31 16:58:42 -07:00
Eric Rahm
3ae6a7de89 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
2016-11-04 16:22:43 -07:00
Eric Rahm
19213b3db5 Bug 1313471 - Part 2: Convert TestCOMPtrEq to a gtest. r=froydnj
MozReview-Commit-ID: GifbCK1zzxh
2016-11-04 16:22:29 -07:00
Eric Rahm
ac82bd1946 Bug 1313470 - Part 2: Convert TestCOMPtr to a gtest. r=froydnj
MozReview-Commit-ID: HfcLTmvkRc8
2016-11-04 16:22:14 -07:00
Eric Rahm
a9e0a54347 Bug 1313469 - Part 2: Convert TestCOMArray to a gtest. r=froydnj
MozReview-Commit-ID: CEhXX60lpZ8
2016-11-04 16:21:59 -07:00
Eric Rahm
72ac3faa89 Bug 1313468: Convert XPCOM test TestAutoRef to a gtest. r=froydnj
MozReview-Commit-ID: GkEPSkzNeuB
2016-11-04 16:21:37 -07:00