LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PTestShellCommandParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 75 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 15 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/PTestShellCommandParent.h"
       8             : 
       9             : #include "mozilla/ipc/PTestShellParent.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace ipc {
      16             : 
      17             : 
      18           0 : auto PTestShellCommandParent::Recv__delete__(const nsString& aResponse) -> mozilla::ipc::IPCResult
      19             : {
      20           0 :     return IPC_OK();
      21             : }
      22             : 
      23             : 
      24           0 : MOZ_IMPLICIT PTestShellCommandParent::PTestShellCommandParent() :
      25             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      26           0 :     mState(PTestShellCommand::__Dead)
      27             : {
      28           0 :     MOZ_COUNT_CTOR(PTestShellCommandParent);
      29           0 : }
      30             : 
      31           0 : PTestShellCommandParent::~PTestShellCommandParent()
      32             : {
      33           0 :     MOZ_COUNT_DTOR(PTestShellCommandParent);
      34           0 : }
      35             : 
      36           0 : auto PTestShellCommandParent::Manager() const -> PTestShellParent*
      37             : {
      38           0 :     return static_cast<PTestShellParent*>(IProtocol::Manager());
      39             : }
      40             : 
      41           0 : auto PTestShellCommandParent::RemoveManagee(
      42             :         int32_t aProtocolId,
      43             :         ProtocolBase* aListener) -> void
      44             : {
      45           0 :     FatalError("unreached");
      46           0 :     return;
      47             : }
      48             : 
      49           0 : auto PTestShellCommandParent::OnMessageReceived(const Message& msg__) -> PTestShellCommandParent::Result
      50             : {
      51           0 :     switch ((msg__).type()) {
      52             :     case PTestShellCommand::Msg___delete____ID:
      53             :         {
      54           0 :             if (mozilla::ipc::LoggingEnabledFor("PTestShellCommandParent")) {
      55           0 :                 mozilla::ipc::LogMessageForProtocol("PTestShellCommandParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
      56             :             }
      57           0 :             AUTO_PROFILER_LABEL("PTestShellCommand::Msg___delete__", OTHER);
      58             : 
      59           0 :             PickleIterator iter__(msg__);
      60             :             PTestShellCommandParent* actor;
      61           0 :             nsString aResponse;
      62             : 
      63           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
      64           0 :                 FatalError("Error deserializing 'PTestShellCommandParent'");
      65           0 :                 return MsgValueError;
      66             :             }
      67             :             // Sentinel = 'actor'
      68           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
      69           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PTestShellCommandParent'");
      70           0 :                 return MsgValueError;
      71             :             }
      72           0 :             if ((!(Read((&(aResponse)), (&(msg__)), (&(iter__)))))) {
      73           0 :                 FatalError("Error deserializing 'nsString'");
      74           0 :                 return MsgValueError;
      75             :             }
      76             :             // Sentinel = 'aResponse'
      77           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4228544409)))) {
      78           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
      79           0 :                 return MsgValueError;
      80             :             }
      81           0 :             (msg__).EndRead(iter__, (msg__).type());
      82           0 :             PTestShellCommand::Transition(PTestShellCommand::Msg___delete____ID, (&(mState)));
      83           0 :             if ((!(Recv__delete__(mozilla::Move(aResponse))))) {
      84           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
      85             :                 // Error handled in mozilla::ipc::IPCResult
      86           0 :                 return MsgProcessingError;
      87             :             }
      88             : 
      89             : 
      90           0 :             IProtocol* mgr = (actor)->Manager();
      91           0 :             (actor)->DestroySubtree(Deletion);
      92           0 :             (actor)->DeallocSubtree();
      93           0 :             (mgr)->RemoveManagee(PTestShellCommandMsgStart, actor);
      94             : 
      95           0 :             return MsgProcessed;
      96             :         }
      97             :     default:
      98             :         {
      99           0 :             return MsgNotKnown;
     100             :         }
     101             :     }
     102             : }
     103             : 
     104           0 : auto PTestShellCommandParent::OnMessageReceived(
     105             :         const Message& msg__,
     106             :         Message*& reply__) -> PTestShellCommandParent::Result
     107             : {
     108           0 :     return MsgNotKnown;
     109             : }
     110             : 
     111           0 : auto PTestShellCommandParent::OnCallReceived(
     112             :         const Message& msg__,
     113             :         Message*& reply__) -> PTestShellCommandParent::Result
     114             : {
     115           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     116             :     return MsgNotKnown;
     117             : }
     118             : 
     119           0 : auto PTestShellCommandParent::GetProtocolTypeId() -> int32_t
     120             : {
     121           0 :     return PTestShellCommandMsgStart;
     122             : }
     123             : 
     124           0 : auto PTestShellCommandParent::ProtocolName() const -> const char*
     125             : {
     126           0 :     return "PTestShellCommandParent";
     127             : }
     128             : 
     129           0 : auto PTestShellCommandParent::DestroySubtree(ActorDestroyReason why) -> void
     130             : {
     131             :     // Unregister from our manager.
     132           0 :     Unregister(Id());
     133             : 
     134             :     // Reject owning pending promises.
     135           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     136             : 
     137             :     // Finally, destroy "us".
     138           0 :     ActorDestroy(why);
     139           0 : }
     140             : 
     141           0 : auto PTestShellCommandParent::DeallocSubtree() -> void
     142             : {
     143           0 : }
     144             : 
     145           0 : auto PTestShellCommandParent::Write(
     146             :         const PTestShellCommandParent* v__,
     147             :         Message* msg__,
     148             :         bool nullable__) -> void
     149             : {
     150             :     int32_t id;
     151           0 :     if ((!(v__))) {
     152           0 :         if ((!(nullable__))) {
     153           0 :             FatalError("NULL actor value passed to non-nullable param");
     154             :         }
     155           0 :         id = 0;
     156             :     }
     157             :     else {
     158           0 :         id = (v__)->Id();
     159           0 :         if ((1) == (id)) {
     160           0 :             FatalError("actor has been |delete|d");
     161             :         }
     162             :     }
     163             : 
     164           0 :     Write(id, msg__);
     165           0 : }
     166             : 
     167           0 : auto PTestShellCommandParent::Read(
     168             :         PTestShellCommandParent** v__,
     169             :         const Message* msg__,
     170             :         PickleIterator* iter__,
     171             :         bool nullable__) -> bool
     172             : {
     173           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PTestShellCommand", PTestShellCommandMsgStart);
     174           0 :     if ((actor).isNothing()) {
     175           0 :         return false;
     176             :     }
     177             : 
     178           0 :     (*(v__)) = static_cast<PTestShellCommandParent*>((actor).value());
     179           0 :     return true;
     180             : }
     181             : 
     182             : 
     183             : 
     184             : } // namespace ipc
     185             : } // namespace mozilla

Generated by: LCOV version 1.13