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

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
88.9%890.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    :  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  E :  BOOL WINAPI DllMain(HMODULE instance, DWORD reason, LPVOID reserved) {
  28  E :    switch (reason) {
  29    :      case DLL_PROCESS_ATTACH:
  30    :        // Nothing to do here.
  31  E :        break;
  32    :  
  33    :      case DLL_THREAD_ATTACH:
  34    :        // Nothing to do here.
  35  E :        break;
  36    :  
  37    :      case DLL_THREAD_DETACH:
  38    :        // Nothing to do here.
  39  E :        break;
  40    :  
  41    :      case DLL_PROCESS_DETACH:
  42    :        // Nothing to do here.
  43  E :        break;
  44    :  
  45    :      default:
  46  i :        NOTREACHED();
  47    :        break;
  48    :    }
  49    :  
  50  E :    return TRUE;
  51  E :  }
  52    :  
  53    :  }  // extern "C"

Coverage information generated Thu Jan 14 17:40:38 2016.