LCOV - code coverage report
Current view: top level - media/webrtc/signaling/src/sdp - SdpErrorHolder.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 10 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 6 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             : #ifndef _SDPERRORHOLDER_H_
       8             : #define _SDPERRORHOLDER_H_
       9             : 
      10             : #include <vector>
      11             : #include <string>
      12             : 
      13             : namespace mozilla
      14             : {
      15             : 
      16             : class SdpErrorHolder
      17             : {
      18             : public:
      19           0 :   SdpErrorHolder() {}
      20           0 :   virtual ~SdpErrorHolder() {}
      21             : 
      22             :   void
      23           0 :   AddParseError(size_t line, const std::string& message)
      24             :   {
      25           0 :     mErrors.push_back(std::make_pair(line, message));
      26           0 :   }
      27             : 
      28             :   void
      29           0 :   ClearParseErrors()
      30             :   {
      31           0 :     mErrors.clear();
      32           0 :   }
      33             : 
      34             :   /**
      35             :    * Returns a reference to the list of parse errors.
      36             :    * This gets cleared out when you call Parse.
      37             :    */
      38             :   const std::vector<std::pair<size_t, std::string> >&
      39           0 :   GetParseErrors() const
      40             :   {
      41           0 :     return mErrors;
      42             :   }
      43             : 
      44             : private:
      45             :   std::vector<std::pair<size_t, std::string> > mErrors;
      46             : };
      47             : 
      48             : } // namespace mozilla
      49             : 
      50             : #endif

Generated by: LCOV version 1.13