Coverage for /Syzygy/kasko/api/kasko_dll.cc

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
0.0%0018.C++source

Line-by-line coverage:

   1    :  // Copyright 2014 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    :  #include <windows.h>
  16    :  
  17    :  #include "base/logging.h"
  18    :  
  19  m :  extern "C" {
  20    :  
  21    :  // This is to ensure that we have our own version of the CRT so as not to
  22    :  // conflict with instrumented code.
  23    :  #ifdef _DLL
  24    :  #error Must be statically linked to the CRT.
  25    :  #endif
  26    :  
  27  m :  BOOL WINAPI DllMain(HMODULE instance, DWORD reason, LPVOID reserved) {
  28  m :    switch (reason) {
  29  m :      case DLL_PROCESS_ATTACH:
  30    :        // Nothing to do here.
  31  m :        break;
  32    :  
  33  m :      case DLL_THREAD_ATTACH:
  34    :        // Nothing to do here.
  35  m :        break;
  36    :  
  37  m :      case DLL_THREAD_DETACH:
  38    :        // Nothing to do here.
  39  m :        break;
  40    :  
  41  m :      case DLL_PROCESS_DETACH:
  42    :        // Nothing to do here.
  43  m :        break;
  44    :  
  45  m :      default:
  46  m :        NOTREACHED();
  47  m :        break;
  48  m :    }
  49    :  
  50  m :    return TRUE;
  51  m :  }
  52    :  
  53  m :  }  // extern "C"

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