Classes | Functions | Variables
bloaty_test_pe.cc File Reference
#include "test.h"
Include dependency graph for bloaty_test_pe.cc:

Go to the source code of this file.

Classes

class  BloatyOutputTest
 
struct  BloatyTestEntry
 

Functions

bool GetFileContents (const std::string &filename, std::string &contents)
 
 INSTANTIATE_TEST_SUITE_P (BloatyTest, BloatyOutputTest, testing::ValuesIn(tests), TestEntryName)
 
void Normalize (std::string &contents)
 
std::ostream & operator<< (std::ostream &os, const BloatyTestEntry &entry)
 
 TEST_P (BloatyOutputTest, CheckOutput)
 
std::string TestEntryName (const testing::TestParamInfo< struct BloatyTestEntry > &entry)
 

Variables

static BloatyTestEntry tests []
 

Function Documentation

◆ GetFileContents()

bool GetFileContents ( const std::string &  filename,
std::string &  contents 
)
inline

Definition at line 58 of file bloaty_test_pe.cc.

◆ INSTANTIATE_TEST_SUITE_P()

INSTANTIATE_TEST_SUITE_P ( BloatyTest  ,
BloatyOutputTest  ,
testing::ValuesIn(tests ,
TestEntryName   
)

◆ Normalize()

void Normalize ( std::string &  contents)

Definition at line 39 of file bloaty_test_pe.cc.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const BloatyTestEntry entry 
)

Definition at line 29 of file bloaty_test_pe.cc.

◆ TEST_P()

TEST_P ( BloatyOutputTest  ,
CheckOutput   
)

Definition at line 92 of file bloaty_test_pe.cc.

◆ TestEntryName()

std::string TestEntryName ( const testing::TestParamInfo< struct BloatyTestEntry > &  entry)

Definition at line 25 of file bloaty_test_pe.cc.

Variable Documentation

◆ tests

BloatyTestEntry tests[]
static
Initial value:
= {
{ "MSVCR15DLL", {}, "msvc-15.0-foo-bar.dll", "msvc-15.0-foo-bar.dll.txt" },
{ "MSVCR15DLLSEG", {"-d", "segments"}, "msvc-15.0-foo-bar.dll", "msvc-15.0-foo-bar.dll.seg.txt" },
{ "MSVC15EXE", {}, "msvc-15.0-foo-bar-main-cv.bin", "msvc-15.0-foo-bar-main-cv.bin.txt" },
{ "MSVC15EXESEG", {"-d", "segments"}, "msvc-15.0-foo-bar-main-cv.bin", "msvc-15.0-foo-bar-main-cv.bin.seg.txt" },
{ "MSVCR16DLL", {}, "msvc-16.0-foo-bar.dll", "msvc-16.0-foo-bar.dll.txt" },
{ "MSVCR16DLLSEG", {"-d", "segments"}, "msvc-16.0-foo-bar.dll", "msvc-16.0-foo-bar.dll.seg.txt" },
{ "MSVC16EXE", {}, "msvc-16.0-foo-bar-main-cv.bin", "msvc-16.0-foo-bar-main-cv.bin.txt" },
{ "MSVC16EXESEG", {"-d", "segments"}, "msvc-16.0-foo-bar-main-cv.bin", "msvc-16.0-foo-bar-main-cv.bin.seg.txt" },
}

Definition at line 112 of file bloaty_test_pe.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:04