Граф коммитов

101 Коммитов

Автор SHA1 Сообщение Дата
Andrew McCreight 95785a8675 Bug 1402151, part 9 - Implement gtest for FTP directory listing parsing. r=michal
This test turns the existing stand alone test for the FTP directory
listing parser into a gtest.

MozReview-Commit-ID: 7n60TfcTXTJ

--HG--
extra : rebase_source : 79c88708a9bf9bee6c27a82f2c93a95016e063dd
2017-09-25 11:19:33 -07:00
Matt Woodrow a56e3551a2 Bug 1397056 - Add Contains and a return parameter to Remove for SmallPointerArray. r=froydnj
* * *
[mq]: fix

MozReview-Commit-ID: 5laM7PQLP7X
2017-09-12 14:11:47 -04:00
Wes Kocher b1233c7d04 Backed out changeset 371a03aa9b24 (bug 1397056) for build errors in SmallPointerArray.h a=backout CLOSED TREE
MozReview-Commit-ID: FNVPjKmVCWB

--HG--
extra : rebase_source : 41e380e59d9eead945ba515d85c1b9195329bc74
2017-09-12 12:39:09 -07:00
Matt Woodrow 5675f29866 Bug 1397056 - Add Contains and a return parameter to Remove for SmallPointerArray. r=froydnj
* * *
[mq]: fix

MozReview-Commit-ID: 5laM7PQLP7X

--HG--
extra : rebase_source : f1baa7c1581fcc864d2b548989e967f57e24b921
2017-09-12 14:11:47 -04:00
Marco Castelluccio 3b9bc766e9 Bug 1371970 - Add TestPrintf to cppunittest.ini to make it execute on automation. r=glandium
--HG--
extra : rebase_source : 2687ffc879e05e89b171ea229f159e10b9a18777
2017-07-11 23:46:12 +02:00
Botond Ballo 2c2d3ded79 Bug 1371771 - Add a MOZ_DEFINE_ENUM macro and variants to MFBT. r=froydnj
The macro simultaneously declares an enumeration and a count of its
enumerators.

A few variants of the macro are also provided to handle things like
enum classes, underlying types, and enumerations declared at class
scope.

MozReview-Commit-ID: 3z6yHnfXbLj

--HG--
extra : rebase_source : 92c333693e4bbf85b89cd3d7ac5b31f4b5434367
2017-06-30 19:58:11 -04:00
Dan Minor 233a09db76 Bug 1322707 - Stop building signaling_unittest and mediapipeline_unittests; r=jesup,glandium
MozReview-Commit-ID: FAAiByOB4m

--HG--
extra : rebase_source : 6f686a36ab7b405ad414bb06c93429e055dbf292
2016-12-09 09:09:41 -10:00
Dan Minor 7f00193ae1 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

--HG--
rename : media/webrtc/signaling/test/mediaconduit_unittests.cpp => media/webrtc/signaling/gtest/mediaconduit_unittests.cpp
extra : rebase_source : 992330f83e0a6a57810f1c5f0b4ea77f2512cd92
2016-11-18 08:17:36 -05:00
Benjamin Smedberg d5e468da6c 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

--HG--
extra : rebase_source : fabee29260f06686e874d0130cb00067c769ad6f
2016-11-29 13:53:48 -05:00
Nathan Froyd 2ebbd09068 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 7e1a8cf56c 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).

--HG--
rename : storage/test/storage_test_harness.h => storage/test/gtest/storage_test_harness.h
rename : storage/test/test_AsXXX_helpers.cpp => storage/test/gtest/test_AsXXX_helpers.cpp
rename : storage/test/test_StatementCache.cpp => storage/test/gtest/test_StatementCache.cpp
rename : storage/test/test_asyncStatementExecution_transaction.cpp => storage/test/gtest/test_asyncStatementExecution_transaction.cpp
rename : storage/test/test_async_callbacks_with_spun_event_loops.cpp => storage/test/gtest/test_async_callbacks_with_spun_event_loops.cpp
rename : storage/test/test_binding_params.cpp => storage/test/gtest/test_binding_params.cpp
rename : storage/test/test_deadlock_detector.cpp => storage/test/gtest/test_deadlock_detector.cpp
rename : storage/test/test_file_perms.cpp => storage/test/gtest/test_file_perms.cpp
rename : storage/test/test_mutex.cpp => storage/test/gtest/test_mutex.cpp
rename : storage/test/test_service_init_background_thread.cpp => storage/test/gtest/test_service_init_background_thread.cpp
rename : storage/test/test_statement_scoper.cpp => storage/test/gtest/test_statement_scoper.cpp
rename : storage/test/test_transaction_helper.cpp => storage/test/gtest/test_transaction_helper.cpp
rename : storage/test/test_true_async.cpp => storage/test/gtest/test_true_async.cpp
rename : storage/test/test_unlock_notify.cpp => storage/test/gtest/test_unlock_notify.cpp
extra : rebase_source : dbb695c112564efa1945116be1a8435988982e74
2016-11-11 09:59:23 +11:00
Nicholas Nethercote 5daac04ccf 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.

--HG--
rename : toolkit/components/places/tests/cpp/mock_Link.h => toolkit/components/places/tests/gtest/mock_Link.h
rename : toolkit/components/places/tests/cpp/moz.build => toolkit/components/places/tests/gtest/moz.build
rename : toolkit/components/places/tests/cpp/places_test_harness.h => toolkit/components/places/tests/gtest/places_test_harness.h
rename : toolkit/components/places/tests/cpp/places_test_harness_tail.h => toolkit/components/places/tests/gtest/places_test_harness_tail.h
rename : toolkit/components/places/tests/cpp/test_IHistory.cpp => toolkit/components/places/tests/gtest/test_IHistory.cpp
extra : rebase_source : b7def3f9afce3a44e99f5ed35cb220f7814551cd
2016-11-12 06:22:01 +11:00
Dan Minor 77356a7daa Bug 1317009 - Port jsep_session_unittest and jsep_track_unittest to xul gtest; r=bwc
MozReview-Commit-ID: spuZSAnSDC

--HG--
rename : media/webrtc/signaling/test/jsep_session_unittest.cpp => media/webrtc/signaling/gtest/jsep_session_unittest.cpp
rename : media/webrtc/signaling/test/jsep_track_unittest.cpp => media/webrtc/signaling/gtest/jsep_track_unittest.cpp
extra : rebase_source : 1f251167ef24d55bfbb7cd8b09b9fc5a65540724
2016-11-15 09:35:14 -05:00
Benjamin Smedberg 00f9f7a30c 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

--HG--
extra : rebase_source : fc4be47bf0e68777aaf45250b339cf0d3d332240
extra : source : bb1325166026fec5e13db34eca7588ce18c94505
2016-11-15 13:06:05 -05:00
Benjamin Smedberg 067ef5e9f7 Bug 1314378 part B - port TestStartupCache to gtest, r=froydnj
MozReview-Commit-ID: LTz4slzIkjH

--HG--
extra : rebase_source : 852ca996bd042d9c363b79bf47a037f83f3cf804
extra : source : 4585a7b6f3ce8c8dc7b7e043e0fae86f8e5ee392
2016-11-11 11:57:08 -05:00
Iris Hsiao d4c39fd92a Backed out changeset 4585a7b6f3ce (bug 1314378) 2016-11-16 15:30:52 +08:00
Benjamin Smedberg a4623c11eb Bug 1314378 part B - port TestStartupCache to gtest, r=froydnj
MozReview-Commit-ID: LTz4slzIkjH

--HG--
extra : rebase_source : 004f3809de2a527f7577e9935221304bb9e6edc2
2016-11-11 11:57:08 -05:00
Matthew Gregan 81105ff0ba Bug 1314514 - Update libcubeb to 8bab182c. r=padenot
--HG--
rename : media/libcubeb/tests/common.h => media/libcubeb/gtest/common.h
rename : media/libcubeb/tests/moz.build => media/libcubeb/gtest/moz.build
rename : media/libcubeb/tests/test_audio.cpp => media/libcubeb/gtest/test_audio.cpp
rename : media/libcubeb/tests/test_devices.cpp => media/libcubeb/gtest/test_devices.cpp
rename : media/libcubeb/tests/test_duplex.cpp => media/libcubeb/gtest/test_duplex.cpp
rename : media/libcubeb/tests/test_record.cpp => media/libcubeb/gtest/test_record.cpp
rename : media/libcubeb/tests/test_resampler.cpp => media/libcubeb/gtest/test_resampler.cpp
rename : media/libcubeb/tests/test_sanity.cpp => media/libcubeb/gtest/test_sanity.cpp
rename : media/libcubeb/tests/test_tone.cpp => media/libcubeb/gtest/test_tone.cpp
2016-11-11 15:01:56 +13:00
Wes Kocher 791bd2888f Backed out changeset 359999c77a46 (bug 1314514) for build bustage a=backout CLOSED TREE
--HG--
rename : media/libcubeb/gtest/common.h => media/libcubeb/tests/common.h
rename : media/libcubeb/gtest/moz.build => media/libcubeb/tests/moz.build
rename : media/libcubeb/gtest/test_audio.cpp => media/libcubeb/tests/test_audio.cpp
rename : media/libcubeb/gtest/test_devices.cpp => media/libcubeb/tests/test_devices.cpp
rename : media/libcubeb/gtest/test_duplex.cpp => media/libcubeb/tests/test_duplex.cpp
rename : media/libcubeb/gtest/test_record.cpp => media/libcubeb/tests/test_record.cpp
rename : media/libcubeb/gtest/test_resampler.cpp => media/libcubeb/tests/test_resampler.cpp
rename : media/libcubeb/gtest/test_sanity.cpp => media/libcubeb/tests/test_sanity.cpp
rename : media/libcubeb/gtest/test_tone.cpp => media/libcubeb/tests/test_tone.cpp
2016-11-15 12:03:51 -08:00
Matthew Gregan 2b9aa95d4c Bug 1314514 - Update libcubeb to 8bab182c. r=padenot
--HG--
rename : media/libcubeb/tests/common.h => media/libcubeb/gtest/common.h
rename : media/libcubeb/tests/moz.build => media/libcubeb/gtest/moz.build
rename : media/libcubeb/tests/test_audio.cpp => media/libcubeb/gtest/test_audio.cpp
rename : media/libcubeb/tests/test_devices.cpp => media/libcubeb/gtest/test_devices.cpp
rename : media/libcubeb/tests/test_duplex.cpp => media/libcubeb/gtest/test_duplex.cpp
rename : media/libcubeb/tests/test_record.cpp => media/libcubeb/gtest/test_record.cpp
rename : media/libcubeb/tests/test_resampler.cpp => media/libcubeb/gtest/test_resampler.cpp
rename : media/libcubeb/tests/test_sanity.cpp => media/libcubeb/gtest/test_sanity.cpp
rename : media/libcubeb/tests/test_tone.cpp => media/libcubeb/gtest/test_tone.cpp
2016-11-11 15:01:56 +13:00
Dan Minor 91c5b2836f Bug 1316888 - Port sdp_unittests to xul gtest; r=bwc
MozReview-Commit-ID: 12qrqpZq2pW

--HG--
rename : media/webrtc/signaling/test/sdp_unittests.cpp => media/webrtc/signaling/gtest/sdp_unittests.cpp
extra : rebase_source : 3fd494a06040a8046abb2ad21b2083e20b501260
2016-11-11 12:24:03 -05:00
Nicholas Nethercote 1381db9e9e Bug 1315869 - gtestify security/manager/ssl/tests/compiled/*.cpp. r=cykesiopka.
--HG--
rename : security/manager/ssl/tests/compiled/TestCertDB.cpp => security/manager/ssl/tests/gtest/CertDBTest.cpp
rename : security/manager/ssl/tests/compiled/TestSTSParser.cpp => security/manager/ssl/tests/gtest/STSParserTest.cpp
2016-11-08 15:37:06 +11:00
David Keeler 46102e8ba8 bug 1315869 - convert TestIsCertBuiltInRoot to an xpcshell test r=Cykesiopka,njn
MozReview-Commit-ID: 4MYxUtuLj4p

--HG--
rename : security/manager/ssl/tests/compiled/TestIsCertBuiltInRoot.cpp => security/manager/ssl/tests/unit/test_cert_isBuiltInRoot_reload.js
2016-11-08 16:47:37 -08:00
Eric Rahm 3fa6be1ab6 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 a94c02e198 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

--HG--
rename : xpcom/tests/TestDeadlockDetectorScalability.cpp => xpcom/tests/gtest/TestDeadlockDetectorScalability.cpp
2016-11-10 12:47:48 -08:00
Eric Rahm 64b21983e5 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

--HG--
rename : xpcom/tests/TestDeadlockDetector.cpp => xpcom/tests/gtest/TestDeadlockDetector.cpp
2016-11-10 12:47:23 -08:00
Sebastian Hengst 1e466eed57 Backed out changeset deabf7bc6526 (bug 1313488)
--HG--
rename : xpcom/tests/gtest/TestDeadlockDetector.cpp => xpcom/tests/TestDeadlockDetector.cpp
2016-11-09 21:10:10 +01:00
Sebastian Hengst 9341b600b5 Backed out changeset 54098e53a584 (bug 1313489)
--HG--
rename : xpcom/tests/gtest/TestDeadlockDetectorScalability.cpp => xpcom/tests/TestDeadlockDetectorScalability.cpp
2016-11-09 21:10:02 +01:00
Eric Rahm e7e98cc775 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

--HG--
rename : xpcom/tests/TestDeadlockDetectorScalability.cpp => xpcom/tests/gtest/TestDeadlockDetectorScalability.cpp
2016-11-09 10:25:17 -08:00
Eric Rahm 1634281923 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

--HG--
rename : xpcom/tests/TestDeadlockDetector.cpp => xpcom/tests/gtest/TestDeadlockDetector.cpp
2016-11-09 10:24:58 -08:00
Eric Rahm 2faeed6d55 Bug 1313485 - Convert XPCOM test TestJemalloc to a gtest. r=njn
MozReview-Commit-ID: 5yzn8o33Ne5

--HG--
rename : xpcom/tests/TestJemalloc.cpp => memory/gtest/TestJemalloc.cpp
2016-11-09 10:24:22 -08:00
Eric Rahm 502d8d220a 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-09 10:23:43 -08:00
Nicholas Nethercote bea3aefea7 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().

--HG--
rename : dom/media/compiledtest/TestAudioBuffers.cpp => dom/media/gtest/TestAudioBuffers.cpp
rename : dom/media/compiledtest/TestAudioMixer.cpp => dom/media/gtest/TestAudioMixer.cpp
rename : dom/media/compiledtest/TestAudioPacketizer.cpp => dom/media/gtest/TestAudioPacketizer.cpp
rename : dom/media/compiledtest/TestAudioSegment.cpp => dom/media/gtest/TestAudioSegment.cpp
extra : rebase_source : f42a1209b98a344c77e1245815eebc86a16866c0
2016-11-09 08:47:23 +11:00
Phil Ringnalda 652fc04e1a 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

--HG--
rename : xpcom/tests/gtest/TestDeadlockDetector.cpp => xpcom/tests/TestDeadlockDetector.cpp
rename : xpcom/tests/gtest/TestDeadlockDetectorScalability.cpp => xpcom/tests/TestDeadlockDetectorScalability.cpp
rename : xpcom/tests/gtest/TestTimers.cpp => xpcom/tests/TestTimers.cpp
2016-11-07 19:12:13 -08:00
Sebastian Hengst 193fc03fc6 Backed out changeset 1b545e55e42a (bug 1313485) for bustage. r=backout
--HG--
rename : memory/gtest/TestJemalloc.cpp => xpcom/tests/TestJemalloc.cpp
2016-11-07 23:46:09 +01:00
Eric Rahm 3162321eb2 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

--HG--
rename : xpcom/tests/TestDeadlockDetectorScalability.cpp => xpcom/tests/gtest/TestDeadlockDetectorScalability.cpp
2016-11-07 14:27:20 -08:00
Eric Rahm d29d2d6fe0 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

--HG--
rename : xpcom/tests/TestDeadlockDetector.cpp => xpcom/tests/gtest/TestDeadlockDetector.cpp
2016-11-07 14:27:04 -08:00
Eric Rahm 52ba7f5179 Bug 1313485 - Convert XPCOM test TestJemalloc to a gtest. r=njn
MozReview-Commit-ID: 5yzn8o33Ne5

--HG--
rename : xpcom/tests/TestJemalloc.cpp => memory/gtest/TestJemalloc.cpp
2016-11-07 14:26:25 -08:00
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
Nicholas Nethercote e13c48fba9 Bug 1315170 - gtestify dom/security/test/TestCSPParser.cpp. r=francois.
--HG--
rename : dom/security/test/TestCSPParser.cpp => dom/security/test/gtest/TestCSPParser.cpp
extra : rebase_source : 52b30a4c063ce2d330108fa4b8382ff8e4adf1b0
2016-11-04 17:02:26 +11:00
Nicholas Nethercote 5ab69ee440 Bug 1314870 - gtestify TestWebGLElementArrayCache.cpp. r=jgilbert.
--HG--
rename : dom/canvas/compiledtest/TestWebGLElementArrayCache.cpp => dom/canvas/gtest/TestWebGLElementArrayCache.cpp
extra : rebase_source : ae30e9bcdfe2b9cdd93ce81dcdf74e887208cffc
2016-11-04 14:38:59 +11:00
Nicholas Nethercote 3dcb97c78c Bug 1314827 (attempt 2) - gtestify dom/base/test/*.cpp. r=baku.
--HG--
rename : dom/base/test/TestNativeXMLHttpRequest.cpp => dom/base/test/gtest/TestNativeXMLHttpRequest.cpp
rename : dom/base/test/TestPlainTextSerializer.cpp => dom/base/test/gtest/TestPlainTextSerializer.cpp
2016-11-04 14:36:23 +11: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 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 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 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