Coverage for /Syzygy/pe/unittest_util.h

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
0.0%0024.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    :  #ifndef SYZYGY_PE_UNITTEST_UTIL_H_
  16    :  #define SYZYGY_PE_UNITTEST_UTIL_H_
  17    :  
  18    :  #include <windows.h>
  19    :  
  20    :  #include "base/file_path.h"
  21    :  #include "base/file_util.h"
  22    :  #include "gtest/gtest.h"
  23    :  #include "syzygy/common/unittest_util.h"
  24    :  
  25  m :  namespace testing {
  26    :  
  27    :  // Name of the test DLL and PDB. These exist in the output directory, and again
  28    :  // in the test_data directory.
  29  m :  extern const wchar_t kTestDllName[];
  30  m :  extern const wchar_t kTestDllPdbName[];
  31    :  
  32    :  // Name of the various test DLLs generated by the test_data project.
  33    :  // These are placed in $(OutputDir)\test_data, so use
  34    :  // GetExeTestDataRelativePath to build paths to them.
  35  m :  extern const wchar_t kAsanInstrumentedTestDllName[];
  36  m :  extern const wchar_t kAsanInstrumentedTestDllPdbName[];
  37  m :  extern const wchar_t kBBEntryInstrumentedTestDllName[];
  38  m :  extern const wchar_t kBBEntryInstrumentedTestDllPdbName[];
  39  m :  extern const wchar_t kCallTraceInstrumentedTestDllName[];
  40  m :  extern const wchar_t kCallTraceInstrumentedTestDllPdbName[];
  41  m :  extern const wchar_t kCoverageInstrumentedTestDllName[];
  42  m :  extern const wchar_t kCoverageInstrumentedTestDllPdbName[];
  43  m :  extern const wchar_t kProfileInstrumentedTestDllName[];
  44  m :  extern const wchar_t kProfileInstrumentedTestDllPdbName[];
  45  m :  extern const wchar_t kRandomizedTestDllName[];
  46  m :  extern const wchar_t kRandomizedTestDllPdbName[];
  47    :  
  48    :  // Name of the various trace files. These are also relative to the test data
  49    :  // directory.
  50  m :  extern const wchar_t *kBBEntryTraceFiles[4];
  51  m :  extern const wchar_t *kCallTraceTraceFiles[4];
  52  m :  extern const wchar_t *kCoverageTraceFiles[4];
  53  m :  extern const wchar_t *kProfileTraceFiles[4];
  54    :  
  55  m :  class PELibUnitTest : public testing::ApplicationTestBase {
  56  m :   public:
  57    :    // Performs a series of assertations on the test DLL's integrity.
  58  m :    static void CheckTestDll(const FilePath& path);
  59  m :  };
  60    :  
  61  m :  }  // namespace testing
  62    :  
  63    :  #endif  // SYZYGY_PE_UNITTEST_UTIL_H_

Coverage information generated Thu Mar 14 11:53:36 2013.