LCOV - code coverage report
Current view: top level - dom/bindings/test - TestInterfaceMaplike.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 2 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 9 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             : #ifndef mozilla_dom_TestInterfaceMaplike_h
       8             : #define mozilla_dom_TestInterfaceMaplike_h
       9             : 
      10             : #include "nsWrapperCache.h"
      11             : #include "nsCOMPtr.h"
      12             : 
      13             : class nsPIDOMWindowInner;
      14             : 
      15             : namespace mozilla {
      16             : 
      17             : class ErrorResult;
      18             : 
      19             : namespace dom {
      20             : 
      21             : class GlobalObject;
      22             : 
      23             : // Implementation of test binding for webidl maplike interfaces, using
      24             : // primitives for key and value types.
      25             : class TestInterfaceMaplike final : public nsISupports,
      26             :                                    public nsWrapperCache
      27             : {
      28             : public:
      29             :   NS_DECL_CYCLE_COLLECTING_ISUPPORTS
      30           0 :   NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(TestInterfaceMaplike)
      31             : 
      32             :   explicit TestInterfaceMaplike(nsPIDOMWindowInner* aParent);
      33             :   nsPIDOMWindowInner* GetParentObject() const;
      34             :   virtual JSObject* WrapObject(JSContext* aCx,
      35             :                                JS::Handle<JSObject*> aGivenProto) override;
      36             :   static already_AddRefed<TestInterfaceMaplike>
      37             :     Constructor(const GlobalObject& aGlobal, ErrorResult& rv);
      38             : 
      39             :   // External access for testing internal convenience functions.
      40             :   void SetInternal(const nsAString& aKey, int32_t aValue);
      41             :   void ClearInternal();
      42             :   bool DeleteInternal(const nsAString& aKey);
      43             :   bool HasInternal(const nsAString& aKey);
      44             : private:
      45           0 :   virtual ~TestInterfaceMaplike() {}
      46             :   nsCOMPtr<nsPIDOMWindowInner> mParent;
      47             : };
      48             : 
      49             : } // namespace dom
      50             : } // namespace mozilla
      51             : 
      52             : #endif // mozilla_dom_TestInterfaceMaplike_h

Generated by: LCOV version 1.13