LCOV - code coverage report
Current view: top level - dom/payments - PaymentAddress.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 48 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 21 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim:set ts=2 sw=2 sts=2 et cindent: */
       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 "mozilla/dom/PaymentAddress.h"
       8             : #include "mozilla/dom/PaymentAddressBinding.h"
       9             : 
      10             : namespace mozilla {
      11             : namespace dom {
      12             : 
      13           0 : NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(PaymentAddress, mOwner)
      14             : 
      15           0 : NS_IMPL_CYCLE_COLLECTING_ADDREF(PaymentAddress)
      16           0 : NS_IMPL_CYCLE_COLLECTING_RELEASE(PaymentAddress)
      17             : 
      18           0 : NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(PaymentAddress)
      19           0 :   NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
      20           0 :   NS_INTERFACE_MAP_ENTRY(nsISupports)
      21           0 : NS_INTERFACE_MAP_END
      22             : 
      23           0 : PaymentAddress::PaymentAddress(nsPIDOMWindowInner* aWindow,
      24             :                                const nsAString& aCountry,
      25             :                                const nsTArray<nsString>& aAddressLine,
      26             :                                const nsAString& aRegion,
      27             :                                const nsAString& aCity,
      28             :                                const nsAString& aDependentLocality,
      29             :                                const nsAString& aPostalCode,
      30             :                                const nsAString& aSortingCode,
      31             :                                const nsAString& aLanguageCode,
      32             :                                const nsAString& aOrganization,
      33             :                                const nsAString& aRecipient,
      34           0 :                                const nsAString& aPhone)
      35             :   : mCountry(aCountry)
      36             :   , mAddressLine(aAddressLine)
      37             :   , mRegion(aRegion)
      38             :   , mCity(aCity)
      39             :   , mDependentLocality(aDependentLocality)
      40             :   , mPostalCode(aPostalCode)
      41             :   , mSortingCode(aSortingCode)
      42             :   , mLanguageCode(aLanguageCode)
      43             :   , mOrganization(aOrganization)
      44             :   , mRecipient(aRecipient)
      45             :   , mPhone(aPhone)
      46           0 :   , mOwner(aWindow)
      47             : {
      48           0 : }
      49             : 
      50             : void
      51           0 : PaymentAddress::GetCountry(nsAString& aRetVal) const
      52             : {
      53           0 :   aRetVal = mCountry;
      54           0 : }
      55             : 
      56             : void
      57           0 : PaymentAddress::GetAddressLine(nsTArray<nsString>& aRetVal) const
      58             : {
      59           0 :   aRetVal = mAddressLine;
      60           0 : }
      61             : 
      62             : void
      63           0 : PaymentAddress::GetRegion(nsAString& aRetVal) const
      64             : {
      65           0 :   aRetVal = mRegion;
      66           0 : }
      67             : 
      68             : void
      69           0 : PaymentAddress::GetCity(nsAString& aRetVal) const
      70             : {
      71           0 :   aRetVal = mCity;
      72           0 : }
      73             : 
      74             : void
      75           0 : PaymentAddress::GetDependentLocality(nsAString& aRetVal) const
      76             : {
      77           0 :   aRetVal = mDependentLocality;
      78           0 : }
      79             : 
      80             : void
      81           0 : PaymentAddress::GetPostalCode(nsAString& aRetVal) const
      82             : {
      83           0 :   aRetVal = mPostalCode;
      84           0 : }
      85             : 
      86             : void
      87           0 : PaymentAddress::GetSortingCode(nsAString& aRetVal) const
      88             : {
      89           0 :   aRetVal = mSortingCode;
      90           0 : }
      91             : 
      92             : void
      93           0 : PaymentAddress::GetLanguageCode(nsAString& aRetVal) const
      94             : {
      95           0 :   aRetVal = mLanguageCode;
      96           0 : }
      97             : 
      98             : void
      99           0 : PaymentAddress::GetOrganization(nsAString& aRetVal) const
     100             : {
     101           0 :   aRetVal = mOrganization;
     102           0 : }
     103             : 
     104             : void
     105           0 : PaymentAddress::GetRecipient(nsAString& aRetVal) const
     106             : {
     107           0 :   aRetVal = mRecipient;
     108           0 : }
     109             : 
     110             : void
     111           0 : PaymentAddress::GetPhone(nsAString& aRetVal) const
     112             : {
     113           0 :   aRetVal = mPhone;
     114           0 : }
     115             : 
     116           0 : PaymentAddress::~PaymentAddress()
     117             : {
     118           0 : }
     119             : 
     120             : JSObject*
     121           0 : PaymentAddress::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
     122             : {
     123           0 :   return PaymentAddressBinding::Wrap(aCx, this, aGivenProto);
     124             : }
     125             : 
     126             : 
     127             : } // namespace dom
     128             : } // namespace mozilla

Generated by: LCOV version 1.13