LCOV - code coverage report
Current view: top level - js/xpconnect/tests/components/native - xpctest_returncode.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 11 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 6 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 "xpctest_private.h"
       6             : #include "xpctest_interfaces.h"
       7             : #include "nsComponentManagerUtils.h"
       8             : 
       9           0 : NS_IMPL_ISUPPORTS(nsXPCTestReturnCodeParent, nsIXPCTestReturnCodeParent)
      10             : 
      11           0 : nsXPCTestReturnCodeParent::nsXPCTestReturnCodeParent()
      12             : {
      13           0 : }
      14             : 
      15           0 : nsXPCTestReturnCodeParent::~nsXPCTestReturnCodeParent()
      16             : {
      17           0 : }
      18             : 
      19           0 : NS_IMETHODIMP nsXPCTestReturnCodeParent::CallChild(int32_t childBehavior, nsresult* _retval)
      20             : {
      21             :     nsresult rv;
      22           0 :     nsCOMPtr<nsIXPCTestReturnCodeChild> child(do_CreateInstance("@mozilla.org/js/xpc/test/js/ReturnCodeChild;1", &rv));
      23           0 :     NS_ENSURE_SUCCESS(rv, rv);
      24           0 :     rv = child->DoIt(childBehavior);
      25           0 :     *_retval = rv;
      26           0 :     return NS_OK;
      27             : }

Generated by: LCOV version 1.13