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

107 Коммитов

Автор SHA1 Сообщение Дата
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
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 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 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 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 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 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 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
Phil Ringnalda 44d4420081 Backed out changeset 14d7b6dbe0fb (bug 1314827) to be able to back out something else
MozReview-Commit-ID: 39mFOtrNixM

--HG--
rename : dom/base/test/gtest/TestNativeXMLHttpRequest.cpp => dom/base/test/TestNativeXMLHttpRequest.cpp
rename : dom/base/test/gtest/TestPlainTextSerializer.cpp => dom/base/test/TestPlainTextSerializer.cpp
2016-11-03 22:59:49 -07:00
Nicholas Nethercote bed5771bdb Bug 1314827 - gtestify dom/base/test/*.cpp. r=baku.
The commit removes TestGetURL.cpp which wasn't doing anything useful anyway
because it required an argument but wasn't being passed one, and so it was just
aborting immediately with a usage message.

--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
extra : rebase_source : 224fd2f984eb456b7db56fbe7fc396aeec3a84c1
2016-11-04 14:36:23 +11: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 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 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 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 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 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 7662f973fd Bug 1313466 - Remove XPCOM test ShowAlignments. r=froydnj
MozReview-Commit-ID: 9FpMhw2MsjH
2016-11-03 17:48:13 -07:00
Nicholas Nethercote 108b8f0823 Bug 1314497 (part 1) - Convert intl/lwbrk/tests/TestLineBreak.cpp to a gtest. r=emk.
This commit does the following.

- Converts the test to a gtest, including renaming the directory.

- Factors out the duplicated checking code into a separate Check() function.

- Avoids printing any output unless a failure occurs. (The gtest harness prints
  out minimal output, like the name of the current test.)

- Removes SampleWordBreakUsage(), which prints some output but doesn't actually
  test anything, and so isn't useful.

--HG--
rename : intl/lwbrk/tests/TestLineBreak.cpp => intl/lwbrk/gtest/TestLineBreak.cpp
rename : intl/lwbrk/tests/moz.build => intl/lwbrk/gtest/moz.build
extra : rebase_source : e673299e237a1a8a3b0a33cfc0a0024ab7dee271
2016-11-03 13:46:12 +11:00
Nicholas Nethercote 2af130581e Bug 1314556 - Convert TestAudioEventTimeline.cpp to a gtest. r=padenot.
This required moving template function ValidateEvent into the .h file to avoid
linking problems in xul-gtest.

--HG--
rename : dom/media/webaudio/compiledtest/TestAudioEventTimeline.cpp => dom/media/webaudio/gtest/TestAudioEventTimeline.cpp
rename : dom/media/webaudio/compiledtest/moz.build => dom/media/webaudio/gtest/moz.build
extra : rebase_source : 1a8917fc0e75e9c264bc88aec5565d9fff085c12
2016-11-03 13:39:26 +11:00
James Cheng 3bf8f58291 Bug 1309466 - Add Test for the init value by constructor. r=froydnj
MozReview-Commit-ID: 9BguTY6dlRD

--HG--
extra : rebase_source : 8aef83263e8a406f6a4bb54f7cac6368cb75d904
2016-10-19 18:12:11 +08:00
David Keeler 83858eab7a bug 1311077 - fix builtin root module loading so it works in Android Cpp unit tests r=Cykesiopka
Also updates the relevant test (TestCertDB) to ensure that we actually are
loading builtin root certificates.

MozReview-Commit-ID: LXA4TqTzy8T

--HG--
extra : rebase_source : d217556e84a7e205e0f9e767b759d1b637d201a7
2016-10-19 15:14:23 -07:00
Nathan Froyd d1108c1e52 Bug 1311068 - remove InitializerList.h; r=botond
We needed this polyfill for <initializer_list> when some of our C++
standard libraries did not support said header.  They all do now, so the
polyfill is redundant.
2016-10-19 00:33:14 -04: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
Jeremy Chen 722ad026a3 Bug 1297306 - part4:rename IsEnumFittingWithin with EnumTypeFitsWithin and move it to mfbt/EnumTypeTraits.h. r=froydnj
With this change, we could share this EnumTypeTraits between files easily.

MozReview-Commit-ID: 9Q2augati7l

--HG--
extra : rebase_source : b7d9fc95d9d7722ba3eb99ec9798a64ebdbeb484
2016-09-07 10:20:16 +08: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
Cykesiopka d93f9d1b28 Bug 1282004 - Convert TestMD4 CPP unit test into a GTest. r=mgoodwin
Nothing in the file requires functionality provided by the CPP unit test harness,
so making the file a GTest makes it more accessible.

MozReview-Commit-ID: FaAtF0blCwV

--HG--
rename : security/manager/ssl/tests/compiled/TestMD4.cpp => security/manager/ssl/tests/gtest/MD4Test.cpp
extra : transplant_source : edV%1F%0B97%1B%25%FA%0ABH%14%F5%A2Ms/%7E
2016-06-27 09:06:51 -07:00
Jon Coppeard e416ea06e2 Bug 1265033 - Add some mfbt tests that were not being run r=Waldo 2016-04-19 11:55:43 +01:00
David Keeler 2f0004e1be bug 1228175 - fix IsCertBuiltInRoot r=Cykesiopka,mgoodwin
When a built-in root certificate has its trust changed from the default value,
the platform has to essentially create a copy of it in the read/write
certificate database with the new trust settings. At that point, the desired
behavior is that the platform still considers that certificate a built-in root.
Before this patch, this would indeed happen for the duration of that run of the
platform, but as soon as it restarted, the certificate in question would only
appear to be from the read/write database, and thus was not considered a
built-in root. This patch changes the test of built-in-ness to explicitly
search the built-in certificate slot for the certificate in question. If found,
it is considered a built-in root.

MozReview-Commit-ID: HCtZpPQVEGZ

--HG--
extra : rebase_source : 759e9c5a7bb14f14a77e62eae2ba40c085f04ccd
2016-03-04 17:06:33 -08:00
Thomas Zimmermann ad6d42d817 Bug 1194721: Add |Saturate| template for saturation arithmetics, r=nfroyd
|Saturate<T>| implements saturation arithmetics for arbitrary basic
types. Operations on its value won't over- or underflow the type's
range.
2016-02-04 12:35:12 +01:00
Carsten "Tomcat" Book 4ff72292de Backed out changeset 8d6c228ef008 (bug 1194721) on developers request 2016-02-03 16:25:00 +01:00
Thomas Zimmermann 3d9f64bb3e Bug 1194721: Add |Saturate| template for saturation arithmetics, r=nfroyd
|Saturate<T>| implements saturation arithmetics for arbitrary basic
types. Operations on its value won't over- or underflow the type's
range.
2016-02-03 15:16:00 +01:00
Jeff Muizelaar b29099ae6d Bug 1228641. Add a polyfill of std::initializer_list. r=froydnj 2016-01-06 22:06:35 -05:00
Byron Campen [:bwc] bc30932b74 Bug 1192390 - Part 2: Simulcast and RID negotiation. r=mt
--HG--
extra : transplant_source : %D1%CAj%05%C7%7B%92%D9%CDV%24j%FF%CB%24B%D4%03%92%5E
2015-11-02 09:32:16 -06: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
Liang-Heng Chen 5a9d777bf3 Bug 1186315 - Fix TestTuple error and add it into testing list. r=nfroyd 2015-07-21 22:54:00 +02:00
Ehsan Akhgari cc1bfa080c Bug 1113086 follow-up: Remove TestAudioChannelService from cppunittest.init 2015-07-11 13:15:12 -04:00
Xidorn Quan 5ebb867d28 Bug 1175485 part 4 - Add unit test for integer range. r=waldo
--HG--
extra : source : 2fb0dd6ca01c21b9282e0d7637ac09c2e8539a02
2015-07-02 13:31:07 +10:00
Andrew Bartlett 8cdf1bf8c6 bug 496234 - add test vectors from RFC 1320 for md4 implementation r=mayhemer 2015-06-25 12:10:40 -07:00
Nils Ohlmeier [:drno] 0dd79f25d9 Bug 1176377 - Activate multi_tcp_socket_unittest. r=jesup
--HG--
extra : rebase_source : 0a6d88bb86fa3b4b444c650993c0ec0ed2212b5e
2015-06-19 13:17:58 -07:00
Byron Campen [:bwc] dc3971b1c9 Bug 1035468: A NAT simulator based on NrSocket, and integrate into ice_unittest. r=ekr
--HG--
extra : rebase_source : 1ca1bb919526b3a4e091022e5aba04140efc9c90
extra : source : d354fa12177226f079090cc34277aaf1016e23fa
2015-06-10 15:27:12 -07:00
Geoff Brown 9ed314bccf Bug 1140454 - Disable a few cppunit tests on Android debug; r=me,test-only 2015-06-04 10:51:14 -06:00
Randall Barker ef19488c6f Bug 1101651 - Part 3: Update cppunitest.ini file. r=dminor
Enable WebRTC unit tests to be built using standalone WebRTC

--HG--
extra : rebase_source : f6b8b12eef419d56fed4e1c6559ac2d38e357427
2015-04-09 09:16:00 -04:00
Wes Kocher 8fb9e9e391 Backed out changeset af45e9fc2953 (bug 1101651) 2015-04-02 13:42:27 -07:00
Randall Barker e8247909b0 Bug 1101651 - Part 3, update cppunitest.ini file. r=jesup
Enable WebRTC unit tests to be built using standalone WebRTC
2015-04-02 12:15:12 -07:00
Geoff Brown 8cc673ff66 Bug 1146574 - Update Android 4.3 configs for cppunit; r=dminor 2015-03-26 20:35:36 -06:00
Byron Campen [:bwc] f6c5da1b53 Bug 1140637: Add jsep_session_unittest to testing/cppunittest.ini, and unbust it. r=jesup
--HG--
extra : rebase_source : 91980628dd06114ab24be29c9b77629fef387619
extra : amend_source : 10cd425cafef72cc3555b27e1f05acf25e8ec856
2015-03-09 14:45:46 -07:00
Anish 4063a569ed Bug 958147 - Choose one of run-if or skip-if and get rid of the other.r=jmaher, mwargers 2015-03-03 08:46:37 -05:00
Dan Minor 7c19db87c2 Bug 1087567 - Add proper manifest for cppunit tests; r=ted
--HG--
extra : rebase_source : 622e454f491462d9d2c4125d1309a28854a92b0b
2014-10-28 09:38:21 -04:00