Files
tubestation/ipc/ipdl/test/cxx/IPDLUnitTestProcessChild.cpp
Nika Layzell df2cb02e04 Bug 1706374 - Part 12b: Use NodeController for primary process channels, r=handyman
This extends on the changes in part 12a and consumes the new PortRef-based API
in all existing process types other than the fork server. The IPDL C++ unit
tests were already broken before this change, and were not updated.

Differential Revision: https://phabricator.services.mozilla.com/D112777
2021-06-22 18:17:23 +00:00

28 lines
820 B
C++

/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/ipc/IOThreadChild.h"
#include "IPDLUnitTestProcessChild.h"
#include "IPDLUnitTests.h"
#include "nsRegion.h"
using mozilla::ipc::IOThreadChild;
namespace mozilla {
namespace _ipdltest {
bool IPDLUnitTestProcessChild::Init(int aArgc, char* aArgv[]) {
// FIXME(nika): this is quite clearly broken and needs to be fixed.
IPDLUnitTestChildInit(IOThreadChild::TakeChannel(), ParentPid(),
IOThreadChild::message_loop());
return true;
}
} // namespace _ipdltest
} // namespace mozilla