LCOV - code coverage report
Current view: top level - netwerk/base - nsAuthInformationHolder.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 30 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 12 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 "nsAuthInformationHolder.h"
       6             : 
       7           0 : NS_IMPL_ISUPPORTS(nsAuthInformationHolder, nsIAuthInformation)
       8             : 
       9             : NS_IMETHODIMP
      10           0 : nsAuthInformationHolder::GetFlags(uint32_t* aFlags)
      11             : {
      12           0 :     *aFlags = mFlags;
      13           0 :     return NS_OK;
      14             : }
      15             : 
      16             : NS_IMETHODIMP
      17           0 : nsAuthInformationHolder::GetRealm(nsAString& aRealm)
      18             : {
      19           0 :     aRealm = mRealm;
      20           0 :     return NS_OK;
      21             : }
      22             : 
      23             : NS_IMETHODIMP
      24           0 : nsAuthInformationHolder::GetAuthenticationScheme(nsACString& aScheme)
      25             : {
      26           0 :     aScheme = mAuthType;
      27           0 :     return NS_OK;
      28             : }
      29             : 
      30             : NS_IMETHODIMP
      31           0 : nsAuthInformationHolder::GetUsername(nsAString& aUserName)
      32             : {
      33           0 :     aUserName = mUser;
      34           0 :     return NS_OK;
      35             : }
      36             : 
      37             : NS_IMETHODIMP
      38           0 : nsAuthInformationHolder::SetUsername(const nsAString& aUserName)
      39             : {
      40           0 :     if (!(mFlags & ONLY_PASSWORD))
      41           0 :         mUser = aUserName;
      42           0 :     return NS_OK;
      43             : }
      44             : 
      45             : NS_IMETHODIMP
      46           0 : nsAuthInformationHolder::GetPassword(nsAString& aPassword)
      47             : {
      48           0 :     aPassword = mPassword;
      49           0 :     return NS_OK;
      50             : }
      51             : 
      52             : NS_IMETHODIMP
      53           0 : nsAuthInformationHolder::SetPassword(const nsAString& aPassword)
      54             : {
      55           0 :     mPassword = aPassword;
      56           0 :     return NS_OK;
      57             : }
      58             : 
      59             : NS_IMETHODIMP
      60           0 : nsAuthInformationHolder::GetDomain(nsAString& aDomain)
      61             : {
      62           0 :     aDomain = mDomain;
      63           0 :     return NS_OK;
      64             : }
      65             : 
      66             : NS_IMETHODIMP
      67           0 : nsAuthInformationHolder::SetDomain(const nsAString& aDomain)
      68             : {
      69           0 :     if (mFlags & NEED_DOMAIN)
      70           0 :         mDomain = aDomain;
      71           0 :     return NS_OK;
      72             : }
      73             : 
      74             : 

Generated by: LCOV version 1.13