1 // 2 // Copyright (c) 2010-2020 Antmicro 3 // 4 // This file is licensed under the MIT License. 5 // Full license text is available in 'licenses/MIT.txt'. 6 // 7 using System; 8 using Antmicro.Renode.Core; 9 using Antmicro.Renode.Peripherals.Bus; 10 11 namespace Antmicro.Renode.Tests.UnitTests.Mocks 12 { 13 public class MachineTestPeripheral : IBytePeripheral 14 { 15 /* 16 The mock peripheral is used in unit tests to verify if Renode CreationDriver can distinguish between parameter of Machine type (for which user cannot manually assign a value) 17 and parameter that is named machine, but of non-machine type (for which manual assignment is correct) 18 */ MachineTestPeripheral(Machine mach, int machine)19 public MachineTestPeripheral(Machine mach, int machine) 20 { 21 } 22 Reset()23 public void Reset() 24 { 25 } 26 ReadByte(long offset)27 public byte ReadByte(long offset) 28 { 29 throw new NotImplementedException(); 30 } 31 WriteByte(long offset, byte value)32 public void WriteByte(long offset, byte value) 33 { 34 throw new NotImplementedException(); 35 } 36 } 37 }