Coverage for /Syzygy/instrument/transforms/unittest_util.h

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
0.0%0011.C++test

Line-by-line coverage:

   1    :  // Copyright 2012 Google Inc. All Rights Reserved.
   2    :  //
   3    :  // Licensed under the Apache License, Version 2.0 (the "License");
   4    :  // you may not use this file except in compliance with the License.
   5    :  // You may obtain a copy of the License at
   6    :  //
   7    :  //     http://www.apache.org/licenses/LICENSE-2.0
   8    :  //
   9    :  // Unless required by applicable law or agreed to in writing, software
  10    :  // distributed under the License is distributed on an "AS IS" BASIS,
  11    :  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12    :  // See the License for the specific language governing permissions and
  13    :  // limitations under the License.
  14    :  //
  15    :  // A common test fixture which knows how to decompose the test dll.
  16    :  
  17    :  #ifndef SYZYGY_INSTRUMENT_TRANSFORMS_UNITTEST_UTIL_H_
  18    :  #define SYZYGY_INSTRUMENT_TRANSFORMS_UNITTEST_UTIL_H_
  19    :  
  20    :  #include "syzygy/block_graph/block_graph.h"
  21    :  #include "syzygy/core/unittest_util.h"
  22    :  #include "syzygy/pe/pe_file.h"
  23    :  #include "syzygy/pe/pe_transform_policy.h"
  24    :  #include "syzygy/pe/unittest_util.h"
  25    :  
  26  m :  namespace testing {
  27    :  
  28    :  // A common test fixture which knows how to decompose the "standard" test dll.
  29  m :  class TestDllTransformTest : public testing::PELibUnitTest {
  30  m :   public:
  31  m :    TestDllTransformTest();
  32    :  
  33    :    // Decomposes the test_dll into block_graph_ and sets dos_header_block_.
  34    :    // Typically, you would call inside an ASSERT_NO_FATAL_FAILURE clause.
  35  m :    void DecomposeTestDll();
  36    :  
  37    :    // The policy object restricting how the transform is applied.
  38  m :    pe::PETransformPolicy policy_;
  39    :  
  40    :    // The PEFile instance referring to test_dll.
  41  m :    pe::PEFile pe_file_;
  42    :  
  43    :    // The block graph for test_dll.
  44  m :    block_graph::BlockGraph block_graph_;
  45    :  
  46    :    // The DOS header block for test_dll.
  47  m :    block_graph::BlockGraph::Block* dos_header_block_;
  48  m :  };
  49    :  
  50  m :  }  // namespace testing
  51    :  
  52    :  #endif  // SYZYGY_INSTRUMENT_TRANSFORMS_UNITTEST_UTIL_H_

Coverage information generated Wed Dec 11 11:34:16 2013.