Lines Matching refs:mock_rsk
55 static RollbackSpaceKernel mock_rsk; variable
71 Memset(&mock_rsk, 0, sizeof(mock_rsk)); in ResetMocks()
135 TEST_EQ(length, sizeof(mock_rsk), "TlclRead rsk size"); in TlclRead()
136 Memcpy(data, &mock_rsk, length); in TlclRead()
155 TEST_EQ(length, sizeof(mock_rsk), "TlclWrite rsk size"); in TlclWrite()
156 Memcpy(&mock_rsk, data, length); in TlclWrite()
157 MaybeInjectNoise(&mock_rsk, length); in TlclWrite()
362 mock_rsk.struct_version = 2; in CrcTestKernel()
373 mock_rsk.struct_version = 2; in CrcTestKernel()
374 mock_rsk.crc8 = Crc8(&mock_rsk, offsetof(RollbackSpaceKernel, crc8)); in CrcTestKernel()
386 TEST_EQ(mock_rsk.struct_version, 2, "WriteSpaceKernel(), check v2"); in CrcTestKernel()
410 TEST_EQ(mock_rsk.struct_version, 2, "WriteSpaceKernel(), check v2"); in CrcTestKernel()
538 TEST_EQ(mock_rsk.struct_version, ROLLBACK_SPACE_KERNEL_VERSION, in OneTimeInitTest()
540 TEST_EQ(mock_rsk.uid, ROLLBACK_SPACE_KERNEL_UID, "rsk uid"); in OneTimeInitTest()
541 TEST_EQ(mock_rsk.kernel_versions, 0, "rsk kernel_versions"); in OneTimeInitTest()
901 mock_rsk.uid = ROLLBACK_SPACE_KERNEL_UID; in RollbackKernelTest()
903 mock_rsk.kernel_versions = 0x87654321; in RollbackKernelTest()
921 mock_rsk.uid = ROLLBACK_SPACE_KERNEL_UID + 1; in RollbackKernelTest()
927 mock_rsk.uid = ROLLBACK_SPACE_KERNEL_UID; in RollbackKernelTest()
935 TEST_EQ(mock_rsk.kernel_versions, 0xBEAD4321, in RollbackKernelTest()