Search in sources :

Example 6 with IGraphModel

use of com.google.security.zynamics.binnavi.Gui.GraphWindows.IGraphModel in project binnavi by google.

the class CMemoryViewerSynchronizerTest method setUp.

@Before
public void setUp() {
    final IGraphModel graphModel = new MockGraphModel();
    m_model = new CDebugPerspectiveModel(graphModel);
    final CMemoryProvider provider = new CMemoryProvider();
    m_hexView.setData(provider);
    m_synchronizer = new CMemoryViewerSynchronizer(m_hexView, provider, m_model);
    m_debugger = new MockDebugger(new ModuleTargetSettings(CommonTestObjects.MODULE));
    m_model.setActiveDebugger(m_debugger);
}
Also used : MockDebugger(com.google.security.zynamics.binnavi.Debug.Debugger.MockDebugger) CDebugPerspectiveModel(com.google.security.zynamics.binnavi.Gui.GraphWindows.Panels.CDebugPerspectiveModel) IGraphModel(com.google.security.zynamics.binnavi.Gui.GraphWindows.IGraphModel) ModuleTargetSettings(com.google.security.zynamics.binnavi.debug.debugger.ModuleTargetSettings) MockGraphModel(com.google.security.zynamics.binnavi.Gui.GraphWindows.MockGraphModel) Before(org.junit.Before)

Aggregations

IGraphModel (com.google.security.zynamics.binnavi.Gui.GraphWindows.IGraphModel)6 MockGraphModel (com.google.security.zynamics.binnavi.Gui.GraphWindows.MockGraphModel)6 CDebugPerspectiveModel (com.google.security.zynamics.binnavi.Gui.GraphWindows.Panels.CDebugPerspectiveModel)6 MockDebugger (com.google.security.zynamics.binnavi.Debug.Debugger.MockDebugger)5 ModuleTargetSettings (com.google.security.zynamics.binnavi.debug.debugger.ModuleTargetSettings)5 Test (org.junit.Test)5 TargetProcessThread (com.google.security.zynamics.binnavi.debug.models.processmanager.TargetProcessThread)4 AbstractDebugger (com.google.security.zynamics.binnavi.debug.debugger.AbstractDebugger)3 IDebugger (com.google.security.zynamics.binnavi.debug.debugger.interfaces.IDebugger)3 LinkedHashSet (java.util.LinkedHashSet)3 JHexView (com.google.security.zynamics.zylib.gui.JHexPanel.JHexView)2 TargetInformationReply (com.google.security.zynamics.binnavi.debug.connection.packets.replies.TargetInformationReply)1 DebuggerOptions (com.google.security.zynamics.binnavi.debug.models.targetinformation.DebuggerOptions)1 RegisterDescription (com.google.security.zynamics.binnavi.debug.models.targetinformation.RegisterDescription)1 TargetInformation (com.google.security.zynamics.binnavi.debug.models.targetinformation.TargetInformation)1 ArrayList (java.util.ArrayList)1 Before (org.junit.Before)1