1 // 2 // Copyright (c) 2010-2019 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.Peripherals.Bus; 9 10 namespace Antmicro.Renode.Tests.UnitTests.Mocks 11 { 12 public class MockPeripheralWithStringAttribute : IBytePeripheral 13 { MockPeripheralWithStringAttribute(string mockString)14 public MockPeripheralWithStringAttribute(string mockString) 15 { 16 MockString = mockString; 17 } 18 Reset()19 public void Reset() 20 { 21 } 22 ReadByte(long offset)23 public byte ReadByte(long offset) 24 { 25 throw new NotImplementedException(); 26 } 27 WriteByte(long offset, byte value)28 public void WriteByte(long offset, byte value) 29 { 30 throw new NotImplementedException(); 31 } 32 33 public string MockString { get; set; } 34 35 } 36 } 37