LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PTestShellCommandChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 67 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 16 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //
       2             : // Automatically generated by ipdlc.
       3             : // Edit at your own risk
       4             : //
       5             : 
       6             : 
       7             : #include "mozilla/ipc/PTestShellCommandChild.h"
       8             : 
       9             : #include "mozilla/ipc/PTestShellChild.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace ipc {
      16             : 
      17             : 
      18           0 : auto PTestShellCommandChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      19             : {
      20           0 : }
      21             : 
      22           0 : MOZ_IMPLICIT PTestShellCommandChild::PTestShellCommandChild() :
      23             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      24           0 :     mState(PTestShellCommand::__Dead)
      25             : {
      26           0 :     MOZ_COUNT_CTOR(PTestShellCommandChild);
      27           0 : }
      28             : 
      29           0 : PTestShellCommandChild::~PTestShellCommandChild()
      30             : {
      31           0 :     MOZ_COUNT_DTOR(PTestShellCommandChild);
      32           0 : }
      33             : 
      34           0 : auto PTestShellCommandChild::Manager() const -> PTestShellChild*
      35             : {
      36           0 :     return static_cast<PTestShellChild*>(IProtocol::Manager());
      37             : }
      38             : 
      39           0 : auto PTestShellCommandChild::Send__delete__(
      40             :         PTestShellCommandChild* actor,
      41             :         const nsString& aResponse) -> bool
      42             : {
      43           0 :     if ((!(actor))) {
      44           0 :         return false;
      45             :     }
      46             : 
      47           0 :     IPC::Message* msg__ = PTestShellCommand::Msg___delete__((actor)->Id());
      48             : 
      49           0 :     (actor)->Write(actor, msg__, false);
      50             :     // Sentinel = 'actor'
      51           0 :     (msg__)->WriteSentinel(875202478);
      52           0 :     (actor)->Write(aResponse, msg__);
      53             :     // Sentinel = 'aResponse'
      54           0 :     (msg__)->WriteSentinel(4228544409);
      55             : 
      56             : 
      57             : 
      58           0 :     if (mozilla::ipc::LoggingEnabledFor("PTestShellCommandChild")) {
      59           0 :         mozilla::ipc::LogMessageForProtocol("PTestShellCommandChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      60             :     }
      61           0 :     AUTO_PROFILER_LABEL("PTestShellCommand::Msg___delete__", OTHER);
      62           0 :     PTestShellCommand::Transition(PTestShellCommand::Msg___delete____ID, (&((actor)->mState)));
      63             : 
      64           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
      65             : 
      66           0 :     IProtocol* mgr = (actor)->Manager();
      67           0 :     (actor)->DestroySubtree(Deletion);
      68           0 :     (actor)->DeallocSubtree();
      69           0 :     (mgr)->RemoveManagee(PTestShellCommandMsgStart, actor);
      70           0 :     return sendok__;
      71             : }
      72             : 
      73           0 : auto PTestShellCommandChild::RemoveManagee(
      74             :         int32_t aProtocolId,
      75             :         ProtocolBase* aListener) -> void
      76             : {
      77           0 :     FatalError("unreached");
      78           0 :     return;
      79             : }
      80             : 
      81           0 : auto PTestShellCommandChild::OnMessageReceived(const Message& msg__) -> PTestShellCommandChild::Result
      82             : {
      83           0 :     switch ((msg__).type()) {
      84             :     case PTestShellCommand::Reply___delete____ID:
      85             :         {
      86           0 :             return MsgProcessed;
      87             :         }
      88             :     default:
      89             :         {
      90           0 :             return MsgNotKnown;
      91             :         }
      92             :     }
      93             : }
      94             : 
      95           0 : auto PTestShellCommandChild::OnMessageReceived(
      96             :         const Message& msg__,
      97             :         Message*& reply__) -> PTestShellCommandChild::Result
      98             : {
      99           0 :     return MsgNotKnown;
     100             : }
     101             : 
     102           0 : auto PTestShellCommandChild::OnCallReceived(
     103             :         const Message& msg__,
     104             :         Message*& reply__) -> PTestShellCommandChild::Result
     105             : {
     106           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     107             :     return MsgNotKnown;
     108             : }
     109             : 
     110           0 : auto PTestShellCommandChild::GetProtocolTypeId() -> int32_t
     111             : {
     112           0 :     return PTestShellCommandMsgStart;
     113             : }
     114             : 
     115           0 : auto PTestShellCommandChild::ProtocolName() const -> const char*
     116             : {
     117           0 :     return "PTestShellCommandChild";
     118             : }
     119             : 
     120           0 : auto PTestShellCommandChild::DestroySubtree(ActorDestroyReason why) -> void
     121             : {
     122             :     // Unregister from our manager.
     123           0 :     Unregister(Id());
     124             : 
     125             :     // Reject owning pending promises.
     126           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     127             : 
     128             :     // Finally, destroy "us".
     129           0 :     ActorDestroy(why);
     130           0 : }
     131             : 
     132           0 : auto PTestShellCommandChild::DeallocSubtree() -> void
     133             : {
     134           0 : }
     135             : 
     136           0 : auto PTestShellCommandChild::Write(
     137             :         const PTestShellCommandChild* v__,
     138             :         Message* msg__,
     139             :         bool nullable__) -> void
     140             : {
     141             :     int32_t id;
     142           0 :     if ((!(v__))) {
     143           0 :         if ((!(nullable__))) {
     144           0 :             FatalError("NULL actor value passed to non-nullable param");
     145             :         }
     146           0 :         id = 0;
     147             :     }
     148             :     else {
     149           0 :         id = (v__)->Id();
     150           0 :         if ((1) == (id)) {
     151           0 :             FatalError("actor has been |delete|d");
     152             :         }
     153             :     }
     154             : 
     155           0 :     Write(id, msg__);
     156           0 : }
     157             : 
     158           0 : auto PTestShellCommandChild::Read(
     159             :         PTestShellCommandChild** v__,
     160             :         const Message* msg__,
     161             :         PickleIterator* iter__,
     162             :         bool nullable__) -> bool
     163             : {
     164           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PTestShellCommand", PTestShellCommandMsgStart);
     165           0 :     if ((actor).isNothing()) {
     166           0 :         return false;
     167             :     }
     168             : 
     169           0 :     (*(v__)) = static_cast<PTestShellCommandChild*>((actor).value());
     170           0 :     return true;
     171             : }
     172             : 
     173             : 
     174             : 
     175             : } // namespace ipc
     176             : } // namespace mozilla

Generated by: LCOV version 1.13