#include "test/gtest_and_gmock.h"
#include "perfetto/ext/base/file_utils.h"
#include "perfetto/ext/base/temp_file.h"
#include "src/profiling/symbolizer/breakpad_parser.h"
namespace perfetto {
namespace profiling {
namespace {
constexpr char kFakeFilePath[] = …;
TEST(BreakpadParserTest, FileIsEmpty) { … }
TEST(BreakpadParserTest, FileNotOpened) { … }
TEST(BreakpadParserTest, ContainsNoFuncRecord) { … }
TEST(BreakpadParserTest, ContainsOneFuncRecord) { … }
TEST(BreakpadParserTest, ContainsManyFuncRecords) { … }
TEST(BreakpadParserTest, OptionalArgument) { … }
TEST(BreakpadParserTest, FuncNameWithSpaces) { … }
TEST(BreakpadParserTest, NonHexAddress) { … }
TEST(BreakpadParserTest, NoModuleRecord) { … }
constexpr char kGetSymbolTestContents[] = …;
TEST(BreakpadParserTest, GivenStartAddr) { … }
TEST(BreakpadParserTest, GivenAddrInRange) { … }
TEST(BreakpadParserTest, AddrTooLow) { … }
TEST(BreakpadParserTest, AddrTooHigh) { … }
TEST(BreakpadParserTest, AddrBetweenFunctions) { … }
}
}
}