@@ -48,7 +48,7 @@ static void TestDumpWithAddress(uint64_t base_addr, size_t item_count,
48
48
ASSERT_EQ (expected, result.GetString ());
49
49
}
50
50
51
- TEST (DumpDataExtractorTest, BaseAddress) {
51
+ TEST_F (DumpDataExtractorTest, BaseAddress) {
52
52
TestDumpWithAddress (0x12341234 , 1 , " 0x12341234: 0x11" );
53
53
TestDumpWithAddress (LLDB_INVALID_ADDRESS, 1 , " 0x11" );
54
54
TestDumpWithAddress (0x12341234 , 2 , " 0x12341234: 0x11\n 0x12341235: 0x22" );
@@ -69,7 +69,7 @@ static void TestDumpWithOffset(offset_t start_offset,
69
69
ASSERT_EQ (expected, result.GetString ());
70
70
}
71
71
72
- TEST (DumpDataExtractorTest, StartOffset) {
72
+ TEST_F (DumpDataExtractorTest, StartOffset) {
73
73
TestDumpWithOffset (0 , " 0x00000000: 0x11 0x22 0x33" );
74
74
// The offset applies to the DataExtractor, not the address used when
75
75
// formatting.
@@ -78,7 +78,7 @@ TEST(DumpDataExtractorTest, StartOffset) {
78
78
TestDumpWithOffset (3 , " " );
79
79
}
80
80
81
- TEST (DumpDataExtractorTest, NullStream) {
81
+ TEST_F (DumpDataExtractorTest, NullStream) {
82
82
// We don't do any work if there is no output stream.
83
83
uint8_t c = 0x11 ;
84
84
StreamString result;
@@ -128,7 +128,7 @@ static void TestDump(const std::vector<T> data, lldb::Format format,
128
128
LLDB_INVALID_ADDRESS, format, expected);
129
129
}
130
130
131
- TEST (DumpDataExtractorTest, Formats) {
131
+ TEST_F (DumpDataExtractorTest, Formats) {
132
132
TestDump<uint8_t >(1 , lldb::eFormatDefault, " 0x01" );
133
133
TestDump<uint8_t >(1 , lldb::eFormatBoolean, " true" );
134
134
TestDump<uint8_t >(0xAA , lldb::eFormatBinary, " 0b10101010" );
@@ -274,7 +274,7 @@ TEST(DumpDataExtractorTest, Formats) {
274
274
TestDump<int >(99 , lldb::Format::eFormatVoid, " 0x00000063" );
275
275
}
276
276
277
- TEST (DumpDataExtractorTest, FormatCharArray) {
277
+ TEST_F (DumpDataExtractorTest, FormatCharArray) {
278
278
// Unlike the other formats, charArray isn't 1 array of N chars.
279
279
// It must be passed as N chars of 1 byte each.
280
280
// (eFormatVectorOfChar does this swap for you)
@@ -315,7 +315,7 @@ void TestDumpMultiLine(const T *data, size_t num_items, lldb::Format format,
315
315
0x80000000 , format, expected);
316
316
}
317
317
318
- TEST (DumpDataExtractorTest, MultiLine) {
318
+ TEST_F (DumpDataExtractorTest, MultiLine) {
319
319
// A vector counts as 1 item regardless of size.
320
320
TestDumpMultiLine (std::vector<uint8_t >{0x11 },
321
321
lldb::Format::eFormatVectorOfUInt8, 1 ,
@@ -370,7 +370,7 @@ void TestDumpWithItemByteSize(size_t item_byte_size, lldb::Format format,
370
370
expected);
371
371
}
372
372
373
- TEST (DumpDataExtractorTest, ItemByteSizeErrors) {
373
+ TEST_F (DumpDataExtractorTest, ItemByteSizeErrors) {
374
374
TestDumpWithItemByteSize (
375
375
16 , lldb::Format::eFormatBoolean,
376
376
" error: unsupported byte size (16) for boolean format" );
0 commit comments