Bug 1604001 - Add the missing process type of the fork server for tests. r=gsvelto

Differential Revision: https://phabricator.services.mozilla.com/D57218

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Thinker Li 2019-12-19 15:50:03 +00:00
parent 57e4c6d0e2
commit 238a08c7d3
5 changed files with 16 additions and 1 deletions

View File

@ -693,6 +693,9 @@ static WebIDLProcType ProcTypeToWebIDL(mozilla::ProcType aType) {
PROCTYPE_TO_WEBIDL_CASE(RDD, Rdd);
PROCTYPE_TO_WEBIDL_CASE(Socket, Socket);
PROCTYPE_TO_WEBIDL_CASE(RemoteSandboxBroker, RemoteSandboxBroker);
#ifdef MOZ_ENABLE_FORKSERVER
PROCTYPE_TO_WEBIDL_CASE(ForkServer, ForkServer);
#endif
PROCTYPE_TO_WEBIDL_CASE(Unknown, Unknown);
}
@ -803,6 +806,11 @@ already_AddRefed<Promise> ChromeUtils::RequestProcInfo(GlobalObject& aGlobal,
case GeckoProcessType::GeckoProcessType_RemoteSandboxBroker:
type = mozilla::ProcType::RemoteSandboxBroker;
break;
#ifdef MOZ_ENABLE_FORKSERVER
case GeckoProcessType::GeckoProcessType_ForkServer:
type = mozilla::ProcType::ForkServer;
break;
#endif
default:
// Leave the default Unknown value in |type|.
break;

View File

@ -461,6 +461,9 @@ enum WebIDLProcType {
"rdd",
"socket",
"remoteSandboxBroker",
#ifdef MOZ_ENABLE_FORKSERVER
"forkServer",
#endif
"unknown",
};

View File

@ -838,6 +838,7 @@ class MochitestArguments(ArgumentContainer):
options.leakThresholds = {
"default": options.defaultLeakThreshold,
"tab": options.defaultLeakThreshold,
"forkserver": options.defaultLeakThreshold,
# GMP rarely gets a log, but when it does, it leaks a little.
"gmplugin": 20000,
"rdd": 400,

View File

@ -164,7 +164,7 @@ def process_leak_log(leak_log_file, leak_thresholds=None,
# This list is based on kGeckoProcessTypeString. ipdlunittest processes likely
# are not going to produce leak logs we will ever see.
knownProcessTypes = ["default", "plugin", "tab", "gmplugin", "gpu", "rdd", "vr", "socket"]
knownProcessTypes = ["default", "forkserver", "plugin", "tab", "gmplugin", "gpu", "rdd", "vr", "socket"]
for processType in knownProcessTypes:
log.info("TEST-INFO | leakcheck | %s process: leak threshold set at %d bytes"

View File

@ -35,6 +35,9 @@ enum class ProcType {
RDD,
Socket,
RemoteSandboxBroker,
#ifdef MOZ_ENABLE_FORKSERVER
ForkServer,
#endif
// Unknown type of process
Unknown,
Max = Unknown,