LCOV - code coverage report
Current view: top level - media/mtransport - transportlayerlog.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 2 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=2 et sw=2 tw=80: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
       5             :  * You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : // Original author: ekr@rtfm.com
       8             : 
       9             : #ifndef transportlayerlog_h__
      10             : #define transportlayerlog_h__
      11             : 
      12             : #include "m_cpp_utils.h"
      13             : #include "transportflow.h"
      14             : #include "transportlayer.h"
      15             : 
      16             : namespace mozilla {
      17             : 
      18           0 : class TransportLayerLogging : public TransportLayer {
      19             : public:
      20             :   TransportLayerLogging() {}
      21             : 
      22             :   // Overrides for TransportLayer
      23             :   TransportResult SendPacket(const unsigned char *data, size_t len) override;
      24             : 
      25             :   // Signals (forwarded to upper layer)
      26             :   void StateChange(TransportLayer *layer, State state);
      27             :   void PacketReceived(TransportLayer* layer, const unsigned char *data,
      28             :                       size_t len);
      29             : 
      30           0 :   TRANSPORT_LAYER_ID("log")
      31             : 
      32             : protected:
      33             :   void WasInserted() override;
      34             : 
      35             : private:
      36             :   DISALLOW_COPY_ASSIGN(TransportLayerLogging);
      37             : };
      38             : 
      39             : 
      40             : }  // close namespace
      41             : #endif

Generated by: LCOV version 1.13