The fixture for testing class Foo.
| 69 | |
| 70 | // The fixture for testing class Foo. |
| 71 | class LogTest : public ::testing::Test { |
| 72 | protected: |
| 73 | // Note, if the tests ever fail to compile due to these symbols not being |
| 74 | // found, it's most likely that someone updated the testHelper/main.cc file. |
| 75 | // In this case, check testHelper/GeneratedCode.cc for updated values and |
| 76 | // change the declarations above and uses below to match. |
| 77 | int noParamsId = __fmtId__Simple32log32message32with32032parameters__testHelper47client46cc__20__; |
| 78 | int stringParamId = __fmtId__This32is32a32string3237s__testHelper47client46cc__21__; |
| 79 | |
| 80 | int integerParamId = __fmtId__I32have32an32integer3237d__testHelper47client46cc__28__; |
| 81 | int uint64_tParamId = __fmtId__I32have32a32uint6495t3237lu__testHelper47client46cc__29__; |
| 82 | int doubleParamId = __fmtId__I32have32a32double3237lf__testHelper47client46cc__30__; |
| 83 | int mixParamId = __fmtId__I32have32a32couple32of32things3237d443237f443237u443237s__testHelper47client46cc__31__; |
| 84 | LogTest() |
| 85 | { |
| 86 | char dictionary[4096]; |
| 87 | dictionaryBytes = GeneratedFunctions::writeDictionary(dictionary, |
| 88 | dictionary + sizeof(dictionary)); |
| 89 | assert(dictionaryBytes > 0); |
| 90 | } |
| 91 | |
| 92 | virtual ~LogTest() { |
| 93 | } |
| 94 | |
| 95 | // If the constructor and destructor are not enough for setting up |
| 96 | // and cleaning up each test, you can define the following methods: |
| 97 | |
| 98 | virtual void SetUp() { |
| 99 | // Code here will be called immediately after the constructor (right |
| 100 | // before each test). |
| 101 | } |
| 102 | |
| 103 | virtual void TearDown() { |
| 104 | // Code here will be called immediately after each test (right |
| 105 | // before the destructor). |
| 106 | } |
| 107 | |
| 108 | // Objects declared here can be used by all tests in the test case for Foo. |
| 109 | |
| 110 | uint32_t dictionaryBytes; |
| 111 | }; |
| 112 | |
| 113 | TEST_F(LogTest, maxSizeOfHeader) { |
| 114 | char buffer[100]; |
nothing calls this directly
no outgoing calls
no test coverage detected