Coverage for /Syzygy/pdb/pdb_symbol_record_unittest.cc

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
100.0%12120.C++test

Line-by-line coverage:

   1    :  // Copyright 2012 Google Inc.
   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 "syzygy/pdb/pdb_symbol_record.h"
  16    :  
  17    :  #include "base/file_util.h"
  18    :  #include "gtest/gtest.h"
  19    :  #include "syzygy/core/unittest_util.h"
  20    :  #include "syzygy/pdb/unittest_util.h"
  21    :  
  22    :  namespace pdb {
  23    :  
  24  E :  TEST(PdbReadSymbolRecordTest, ReadValidSymRecordStream) {
  25    :    FilePath valid_sym_record_path = testing::GetSrcRelativePath(
  26  E :        testing::kValidPdbSymbolRecordStreamPath);
  27    :  
  28    :    scoped_refptr<pdb::PdbFileStream> valid_sym_record_stream =
  29  E :        testing::GetStreamFromFile(valid_sym_record_path);
  30  E :    SymbolRecordVector symbol_vector;
  31    :    EXPECT_TRUE(ReadSymbolRecord(valid_sym_record_stream.get(),
  32    :                                 valid_sym_record_stream->length(),
  33  E :                                 &symbol_vector));
  34  E :  }
  35    :  
  36  E :  TEST(PdbReadSymbolRecordTest, ReadInvalidSymRecordStream) {
  37    :    FilePath invalid_sym_record_path = testing::GetSrcRelativePath(
  38  E :        testing::kInvalidPdbSymbolRecordStreamPath);
  39    :  
  40    :    scoped_refptr<pdb::PdbFileStream> invalid_sym_record_stream =
  41  E :        testing::GetStreamFromFile(invalid_sym_record_path);
  42  E :    SymbolRecordVector symbol_vector;
  43    :    EXPECT_FALSE(ReadSymbolRecord(invalid_sym_record_stream.get(),
  44    :                                  invalid_sym_record_stream->length(),
  45  E :                                  &symbol_vector));
  46  E :  }
  47    :  
  48    :  }  // namespace pdb

Coverage information generated Thu Sep 06 11:30:46 2012.