LCOV - code coverage report
Current view: top level - widget/headless - HeadlessClipboardData.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 10 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* This Source Code Form is subject to the terms of the Mozilla Public
       2             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       3             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       4             : 
       5             : #include "HeadlessClipboardData.h"
       6             : 
       7             : namespace mozilla {
       8             : namespace widget {
       9             : 
      10             : void
      11           0 : HeadlessClipboardData::SetText(const nsAString &aText)
      12             : {
      13           0 :   mPlain = aText;
      14           0 : }
      15             : 
      16             : bool
      17           0 : HeadlessClipboardData::HasText() const
      18             : {
      19           0 :   return !mPlain.IsEmpty();
      20             : }
      21             : 
      22             : const nsAString&
      23           0 : HeadlessClipboardData::GetText() const
      24             : {
      25           0 :   return mPlain;
      26             : }
      27             : 
      28             : void
      29           0 : HeadlessClipboardData::Clear()
      30             : {
      31           0 :   mPlain.Truncate(0);
      32           0 : }
      33             : 
      34             : } // namespace widget
      35             : } // namespace mozilla

Generated by: LCOV version 1.13