LCOV - code coverage report
Current view: top level - dom/quota - QuotaResults.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 33 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 14 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=8 sts=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
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #include "QuotaResults.h"
       8             : 
       9             : namespace mozilla {
      10             : namespace dom {
      11             : namespace quota {
      12             : 
      13           0 : UsageResult::UsageResult(const nsACString& aOrigin,
      14             :                          bool aPersisted,
      15           0 :                          uint64_t aUsage)
      16             :   : mOrigin(aOrigin)
      17             :   , mUsage(aUsage)
      18           0 :   , mPersisted(aPersisted)
      19             : {
      20           0 : }
      21             : 
      22           0 : NS_IMPL_ISUPPORTS(UsageResult,
      23             :                   nsIQuotaUsageResult)
      24             : 
      25             : NS_IMETHODIMP
      26           0 : UsageResult::GetOrigin(nsACString& aOrigin)
      27             : {
      28           0 :   aOrigin = mOrigin;
      29           0 :   return NS_OK;
      30             : }
      31             : 
      32             : NS_IMETHODIMP
      33           0 : UsageResult::GetPersisted(bool* aPersisted)
      34             : {
      35           0 :   MOZ_ASSERT(aPersisted);
      36             : 
      37           0 :   *aPersisted = mPersisted;
      38           0 :   return NS_OK;
      39             : }
      40             : 
      41             : NS_IMETHODIMP
      42           0 : UsageResult::GetUsage(uint64_t* aUsage)
      43             : {
      44           0 :   MOZ_ASSERT(aUsage);
      45             : 
      46           0 :   *aUsage = mUsage;
      47           0 :   return NS_OK;
      48             : }
      49             : 
      50           0 : OriginUsageResult::OriginUsageResult(uint64_t aUsage,
      51             :                                      uint64_t aFileUsage,
      52           0 :                                      uint64_t aLimit)
      53             :   : mUsage(aUsage)
      54             :   , mFileUsage(aFileUsage)
      55           0 :   , mLimit(aLimit)
      56             : {
      57           0 : }
      58             : 
      59           0 : NS_IMPL_ISUPPORTS(OriginUsageResult,
      60             :                   nsIQuotaOriginUsageResult)
      61             : 
      62             : NS_IMETHODIMP
      63           0 : OriginUsageResult::GetUsage(uint64_t* aUsage)
      64             : {
      65           0 :   MOZ_ASSERT(aUsage);
      66             : 
      67           0 :   *aUsage = mUsage;
      68           0 :   return NS_OK;
      69             : }
      70             : 
      71             : NS_IMETHODIMP
      72           0 : OriginUsageResult::GetFileUsage(uint64_t* aFileUsage)
      73             : {
      74           0 :   MOZ_ASSERT(aFileUsage);
      75             : 
      76           0 :   *aFileUsage = mFileUsage;
      77           0 :   return NS_OK;
      78             : }
      79             : 
      80             : NS_IMETHODIMP
      81           0 : OriginUsageResult::GetLimit(uint64_t* aLimit)
      82             : {
      83           0 :   MOZ_ASSERT(aLimit);
      84             : 
      85           0 :   *aLimit = mLimit;
      86           0 :   return NS_OK;
      87             : }
      88             : 
      89             : } // namespace quota
      90             : } // namespace dom
      91             : } // namespace mozilla

Generated by: LCOV version 1.13