Lines Matching +full:0 +full:xc000
41 EXPECT_EQ(uh.header().id, 0x5548); in TEST()
43 EXPECT_EQ(uh.header().version, 0x01); in TEST()
44 EXPECT_EQ(uh.header().subType, 0x0A); in TEST()
45 EXPECT_EQ(uh.header().componentID, 0x0B0C); in TEST()
47 EXPECT_EQ(uh.subsystem(), 0x10); in TEST()
48 EXPECT_EQ(uh.scope(), 0x04); in TEST()
49 EXPECT_EQ(uh.severity(), 0x20); in TEST()
50 EXPECT_EQ(uh.eventType(), 0x00); in TEST()
51 EXPECT_EQ(uh.problemDomain(), 0x03); in TEST()
52 EXPECT_EQ(uh.problemVector(), 0x04); in TEST()
53 EXPECT_EQ(uh.actionFlags(), 0x80C0); in TEST()
80 data.at(0) = 0; // corrupt the section ID in TEST()
92 data.at(4) = 0x22; // corrupt the version in TEST()
109 regEntry.severity = {{"", 0x40}}; in TEST()
110 regEntry.actionFlags = 0xC000; in TEST()
121 EXPECT_EQ(uh.header().id, 0x5548); in TEST()
123 EXPECT_EQ(uh.header().version, 0x01); in TEST()
124 EXPECT_EQ(uh.header().subType, 0x00); in TEST()
129 EXPECT_EQ(uh.severity(), 0x40); in TEST()
132 EXPECT_EQ(uh.problemDomain(), 0); in TEST()
133 EXPECT_EQ(uh.problemVector(), 0); in TEST()
134 EXPECT_EQ(uh.actionFlags(), 0xC000); in TEST()
139 // then set them to 0xFFFF. in TEST()
144 EXPECT_EQ(uh.actionFlags(), 0xFFFF); in TEST()
154 regEntry.severity = {{"", 0x20}, {"systemB", 0x10}, {"systemA", 0x00}}; in TEST()
172 EXPECT_EQ(uh.severity(), 0x00); in TEST()
179 EXPECT_EQ(uh.severity(), 0x10); in TEST()
186 EXPECT_EQ(uh.severity(), 0x20); in TEST()
200 regEntry.actionFlags = 0xC000; in TEST()
210 ASSERT_EQ(uh.severity(), 0x40); in TEST()
222 regEntry.actionFlags = 0xC000; in TEST()
232 ASSERT_EQ(uh.severity(), 0x50); in TEST()
244 regEntry.actionFlags = 0xC000; in TEST()
256 ASSERT_EQ(uh.severity(), 0x51); in TEST()
267 regEntry.severity = {{"", 0x40}}; in TEST()
268 regEntry.actionFlags = 0xC000; in TEST()
276 ASSERT_EQ(uh.eventType(), 0); in TEST()
277 ASSERT_EQ(uh.scope(), 0x03); in TEST()
289 regEntry.actionFlags = 0xC000; in TEST()
292 regEntry.severity = {{"", 0x40}, {"systemB", 0x10}, {"systemA", 0x00}}; in TEST()
295 regEntry.mfgSeverity = {{"systemA", 0x20}}; in TEST()
296 regEntry.mfgActionFlags = 0xF000; in TEST()
309 EXPECT_EQ(uh.severity(), 0x20); in TEST()
310 EXPECT_EQ(uh.actionFlags(), 0xF000); in TEST()
323 regEntry.actionFlags = 0xC000; in TEST()
328 std::map<std::string, std::string> adData{{"PEL_SUBSYSTEM", "0x25"}}; in TEST()
333 ASSERT_EQ(uh.subsystem(), 0x25); in TEST()
340 regEntry.actionFlags = 0xC000; in TEST()
345 std::map<std::string, std::string> adData{{"PEL_SUBSYSTEM", "0x99"}}; in TEST()
350 ASSERT_EQ(uh.subsystem(), 0x70); // others in TEST()
357 regEntry.actionFlags = 0xC000; in TEST()
367 ASSERT_EQ(uh.subsystem(), 0x70); // others in TEST()