public SingleValueFuzzDescription(IFuzzLocation fuzzLocation) { if (typeof(InMemoryFuzzLocation).IsAssignableFrom (fuzzLocation.GetType ()) == false) throw new ArgumentException ("PointerValueFuzzDescription needs an in memory fuzzer"); _fuzzLocation = (InMemoryFuzzLocation)fuzzLocation; }
public void Init(XmlElement fuzzLocationRoot, ITargetConnector connector, Dictionary<string, IFuzzLocation> predefinedFuzzers) { IDictionary<string, string> config = DictionaryHelper.ReadDictionaryXml (fuzzLocationRoot, "FuzzerArg"); string id = DictionaryHelper.GetString ("id", config, null); if (!predefinedFuzzers.ContainsKey (id)) throw new ArgumentException (string.Format ("Could not find fuzzer with id '{0}'", id)); _childLocation = predefinedFuzzers[id]; }
/// <summary> /// Creates a new FuzzController. Once the snapshotBreakpoint is reached a snapshot is created. /// The snapshot gets restored once restore Breakpoint is reached /// </summary> /// <param name="connector">connector to use</param> /// <param name="snapshotBreakpoint">Location to create a snapshot</param> /// <param name="restoreBreakpoint">Location to restore the snapshot</param> public FuzzController(ITargetConnector connector, string logDestination, IDataLogger logger, FuzzDescription fuzzDescription, IFuzzLocation[] preConditions) { _connector = connector; _snapshot = null; _dataLogger = logger; _logDestination = logDestination; _errorLog = new ErrorLog (_logDestination); _fuzzDescription = fuzzDescription; _fuzzDescription.Init (); _preConditions = preConditions; }
public void AddFuzzLocation(IFuzzLocation fuzzLocation) { _fuzzLocations.Add (fuzzLocation); }