LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PScriptCache.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 16 42 38.1 %
Date: 2017-07-14 16:53:18 Functions: 5 10 50.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/loader/PScriptCache.h"
       8             : 
       9             : namespace mozilla {
      10             : namespace loader {
      11             : namespace PScriptCache {
      12             : 
      13             : nsresult
      14           0 : CreateEndpoints(
      15             :         base::ProcessId aParentDestPid,
      16             :         base::ProcessId aChildDestPid,
      17             :         mozilla::ipc::Endpoint<mozilla::loader::PScriptCacheParent>* aParent,
      18             :         mozilla::ipc::Endpoint<mozilla::loader::PScriptCacheChild>* aChild)
      19             : {
      20           0 :     return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, PScriptCacheMsgStart, PScriptCacheMsgStartChild, aParent, aChild);
      21             : }
      22             : void
      23           3 : Transition(
      24             :         MessageType msg,
      25             :         State* next)
      26             : {
      27           3 :     switch ((*(next))) {
      28             :     case __Null:
      29           3 :         if ((Msg___delete____ID) == (msg)) {
      30           3 :             (*(next)) = __Dead;
      31             :         }
      32           3 :         break;
      33             :     case __Dead:
      34           0 :         mozilla::ipc::LogicError("__delete__()d actor");
      35           0 :         break;
      36             :     default:
      37           0 :         mozilla::ipc::LogicError("corrupted actor state");
      38           0 :         break;
      39             :     }
      40           3 : }
      41             : IPC::Message*
      42           2 : Msg___delete__(int32_t routingId)
      43             : {
      44           2 :     return new IPC::Message(routingId, Msg___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PScriptCache::Msg___delete__", true);
      45             : }
      46             : IPC::Message*
      47           0 : Reply___delete__(int32_t routingId)
      48             : {
      49           0 :     return new IPC::Message(routingId, Reply___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PScriptCache::Reply___delete__", true);
      50             : }
      51             : 
      52             : } // namespace PScriptCache
      53             : } // namespace loader
      54             : } // namespace mozilla
      55             : 
      56             : //-----------------------------------------------------------------------------
      57             : // Method definitions for the IPDL type |struct ScriptData|
      58             : //
      59             : namespace mozilla {
      60             : namespace loader {
      61          84 : MOZ_IMPLICIT ScriptData::ScriptData() :
      62             :     url_(),
      63             :     cachePath_(),
      64          84 :     loadTime_()
      65             : {
      66          84 :     Init();
      67          84 : }
      68             : 
      69          84 : ScriptData::~ScriptData()
      70             : {
      71          84 : }
      72             : 
      73           0 : auto ScriptData::operator==(const ScriptData& _o) const -> bool
      74             : {
      75           0 :     if ((!((url()) == ((_o).url())))) {
      76           0 :         return false;
      77             :     }
      78           0 :     if ((!((cachePath()) == ((_o).cachePath())))) {
      79           0 :         return false;
      80             :     }
      81           0 :     if ((!((loadTime()) == ((_o).loadTime())))) {
      82           0 :         return false;
      83             :     }
      84           0 :     if ((!((xdrData()) == ((_o).xdrData())))) {
      85           0 :         return false;
      86             :     }
      87           0 :     return true;
      88             : }
      89             : 
      90           0 : auto ScriptData::operator!=(const ScriptData& _o) const -> bool
      91             : {
      92           0 :     return (!(operator==(_o)));
      93             : }
      94             : 
      95          84 : auto ScriptData::Init() -> void
      96             : {
      97          84 : }
      98             : 
      99           0 : auto ScriptData::Assign(
     100             :         const nsCString& _url,
     101             :         const nsCString& _cachePath,
     102             :         const TimeStamp& _loadTime,
     103             :         const nsTArray<uint8_t>& _xdrData) -> void
     104             : {
     105           0 :     url_ = _url;
     106           0 :     cachePath_ = _cachePath;
     107           0 :     loadTime_ = _loadTime;
     108           0 :     xdrData_ = _xdrData;
     109           0 : }
     110             : 
     111             : } // namespace loader
     112             : } // namespace mozilla

Generated by: LCOV version 1.13