Coverage for /Syzygy/trace/parse/unittests_main.cc

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
91.7%11120.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    :  #include <objbase.h>
  16    :  
  17    :  #include "base/at_exit.h"
  18    :  #include "base/command_line.h"
  19    :  #include "base/logging.h"
  20    :  #include "base/files/file_path.h"
  21    :  #include "gtest/gtest.h"
  22    :  
  23  E :  int main(int argc, char** argv) {
  24  E :    ::CoInitialize(NULL);
  25    :  
  26  E :    testing::InitGoogleTest(&argc, argv);
  27  E :    CommandLine::Init(argc, argv);
  28  E :    base::AtExitManager at_exit;
  29    :  
  30    :    if (!logging::InitLogging(
  31    :            L"",
  32    :            logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG,
  33    :            logging::DONT_LOCK_LOG_FILE,
  34    :            logging::APPEND_TO_OLD_LOG_FILE,
  35  E :            logging::ENABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS)) {
  36  i :      return 1;
  37    :    }
  38    :  
  39  E :    logging::SetMinLogLevel(logging::LOG_ERROR);
  40    :  
  41  E :    int ret = RUN_ALL_TESTS();
  42    :  
  43  E :    ::CoUninitialize();
  44    :  
  45  E :    return ret;
  46  E :  }

Coverage information generated Thu Jul 04 09:34:53 2013.