Lines Matching full:contents
323 example, implementing a fake EEPROM that stores the "contents" in an
352 char contents[FAKE_EEPROM_CONTENTS_SIZE];
360 memcpy(buffer, this->contents + offset, count);
370 memcpy(this->contents + offset, buffer, count);
379 memset(this->contents, 0, FAKE_EEPROM_CONTENTS_SIZE);
401 KUNIT_EXPECT_EQ(test, fake_eeprom->contents[0], 0);
404 KUNIT_EXPECT_EQ(test, fake_eeprom->contents[1], 0);
407 KUNIT_EXPECT_EQ(test, fake_eeprom->contents[0], 0xff);
408 KUNIT_EXPECT_EQ(test, fake_eeprom->contents[1], 0xff);
421 KUNIT_EXPECT_EQ(test, fake_eeprom->contents[0], 0);
424 KUNIT_EXPECT_EQ(test, fake_eeprom->contents[0], 0xff);
425 KUNIT_EXPECT_EQ(test, fake_eeprom->contents[1], 0xff);
438 KUNIT_EXPECT_EQ(test, fake_eeprom->contents[0], 0);
441 KUNIT_EXPECT_EQ(test, fake_eeprom->contents[0], 0xff);
442 KUNIT_EXPECT_EQ(test, fake_eeprom->contents[1], 0xff);
444 KUNIT_EXPECT_EQ(test, fake_eeprom->contents[2], 0);