Coverage for /Syzygy/integration_tests/crash_for_exception_export.cc

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
100.0%660.C++source

Line-by-line coverage:

   1    :  // Copyright 2015 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    :  
  16    :  // This file exports CrashForException, which is an optional API that
  17    :  // instrumented processes may export (from their executable module) in order to
  18    :  // handle SyzyASAN reports. The exit code from this method is used to verify
  19    :  // SyzyASAN functionality in instrument_integration_test.cc .
  20    :  //
  21    :  // These are the exports that a Breakpad enabled binary provides. Both of these
  22    :  // exports must be present for the RTL to decide to use this channel.
  23    :  
  24    :  #include <windows.h>
  25    :  
  26    :  extern "C" void __declspec(dllexport) SetCrashKeyValueImpl(
  27  E :      const wchar_t* key, const wchar_t* value) {
  28    :    return;
  29  E :  }
  30    :  
  31    :  extern "C" int __declspec(dllexport) CrashForException(
  32  E :      EXCEPTION_POINTERS* info) {
  33  E :    ::TerminateProcess(::GetCurrentProcess(), 99);
  34  E :    return EXCEPTION_CONTINUE_SEARCH;
  35  E :  }

Coverage information generated Fri Jul 29 11:00:21 2016.