mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 03:49:42 +00:00

In the following patch we are going to change the signature of ShouldSanitizePreference to take a Pref object. Pref is only known to the Preferences compilation unit; so to keep this member (whose signature will change) we would need to expose the Pref class. However it will only be a forward declaration, one could not construct a Pref object in e.g. the gtest. It is simpler to just remove the member entirely and call ShouldSanitizePreference unconditionally - the member was only used for the gtest, and while the gtest will be less robust because of this change, it will still do some testing. Depends on D141419 Differential Revision: https://phabricator.services.mozilla.com/D141420
There are two major categories of tests, segregated into different top-level directories under test/. The first category (ipdl/) is IPDL-compiler tests. These tests check that the IPDL compiler is successfully compiling correct specifications, and successfully rejecting erroneous specifications. To run these tests yourself locally, the correct invocation is make -C obj-dir/ipc/ipdl/test/ipdl check The second category (cxx/) is C++ tests of IPDL semantics. These tests check that async/sync/rpc semantics are implemented correctly, ctors/dtors behave as they should, etc.