gecko/security/pkix/test/gtest
2014-11-03 13:48:48 -08:00
..
moz.build Bug 1063281, Part 2: Implement IsValidDNSName, r=keeler 2014-09-30 14:41:39 -07:00
pkixbuild_tests.cpp Bug 622859 - Reject EV certificates with key sizes below RSA 2048. r=briansmith 2014-10-18 15:18:00 +02:00
pkixcert_extension_tests.cpp bug 1079658 - follow-up bustage fix (unnecessary multi-line C++-style comment) r=bustage on a CLOSED TREE 2014-11-03 13:48:48 -08:00
pkixcert_signature_algorithm_tests.cpp Bug 622859 - Reject EV certificates with key sizes below RSA 2048. r=briansmith 2014-10-18 15:18:00 +02:00
pkixcheck_CheckKeyUsage_tests.cpp bug 1057123 - mozilla::pkix: allow end-entity certificates to assert keyCertSign in some cases r=briansmith 2014-09-03 10:12:55 -07:00
pkixcheck_CheckValidity_tests.cpp
pkixder_input_tests.cpp Bug 1059924, Part 2: Test that the high tag number form is rejected, r=keeler 2014-08-21 15:48:40 -07:00
pkixder_pki_types_tests.cpp bug 1058812 - (3/3) mozilla::pkix: test handling unsupported signature algorithms r=briansmith 2014-10-08 09:48:15 -07:00
pkixder_universal_types_tests.cpp bug 1060929 - mozilla::pkix: allow explicit encodings of default-valued BOOLEANs for compatibility r=briansmith 2014-09-22 09:26:10 -07:00
pkixgtest.cpp Bug 1063031: Remove mozilla::pkix::test::NSSTest, r=keeler 2014-08-31 20:42:28 -07:00
pkixgtest.h Bug 1063031: Remove mozilla::pkix::test::NSSTest, r=keeler 2014-08-31 20:42:28 -07:00
pkixnames_tests.cpp Bug 1092028 - Fix -Wunused-const-variable warning-as-error in security/pkix/test/gtest. r=bsmith 2014-10-30 23:17:27 -07:00
pkixocsp_CreateEncodedOCSPRequest_tests.cpp Bug 1077859: Make ENCODING_FAILED safe to use in static initializers, r=mmc 2014-10-03 15:52:38 -07:00
pkixocsp_VerifyEncodedOCSPResponse.cpp Bug 1077926: Make test certificate generation faster by reusing key, r=keeler 2014-10-07 18:30:47 -07:00
README.txt

-------------
Running Tests
-------------

Because of the rules below, you can run all the unit tests in this directory,
and only these tests, with:

  mach gtest "pkix*"

You can run just the tests for functions defined in filename pkixfoo.cpp with:

  mach gtest "pkixfoo*"

If you run "mach gtest" then you'll end up running every gtest in Gecko.



------------
Naming Files
------------

Name files containing tests according to one of the following patterns:

  * <filename>_tests.cpp
  * <filename>_<Function>_tests.cpp
  * <filename>_<category>_tests.cpp

  <filename> is the name of the file containing the definitions of the
             function(s) being tested by every test.
  <Function> is the name of the function that is being tested by every
             test.
  <category> describes the group of related functions that are being
             tested by every test.



------------------------------------------------
Always Use a Fixture Class: TEST_F(), not TEST()
------------------------------------------------

Many tests don't technically need a fixture, and so TEST() could technically
be used to define the test. However, when you use TEST_F() instead of TEST(),
the compiler will not allow you to make any typos in the test case name, but
if you use TEST() then the name of the test case is not checked.

See https://code.google.com/p/googletest/wiki/Primer#Test_Fixtures:_Using_the_Same_Data_Configuration_for_Multiple_Te
to learn more about test fixtures.

---------------
Naming Fixtures
---------------

When all tests in a file use the same fixture, use the base name of the file
without the "_tests" suffix as the name of the fixture class; e.g. tests in
"pkixocsp.cpp" should use a fixture "class pkixocsp" by default.

Sometimes tests in a file need separate fixtures. In this case, name the
fixture class according to the pattern <fixture_base>_<fixture_suffix>, where
<fixture_base> is the base name of the file without the "_tests" suffix, and
<fixture_suffix> is a descriptive name for the fixture class, e.g.
"class pkixocsp_DelegatedResponder".