use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.
the class PostgreSQLProviderTest method testSetPort1.
@Test
public void testSetPort1() throws CouldntSaveDataException, CouldntLoadDataException {
final DebuggerTemplate debuggerTemplate = getProvider().loadDebuggers().getDebugger(0);
getProvider().setPort(debuggerTemplate, 123);
}
use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.
the class PostgreSQLProviderTest method testAssignDebuggerAddressSpace2.
@Test(expected = NullPointerException.class)
public void testAssignDebuggerAddressSpace2() throws CouldntSaveDataException, CouldntLoadDataException {
final DebuggerTemplate debuggerTemplate = getProvider().loadDebuggers().getDebugger(0);
getProvider().assignDebugger((CAddressSpace) null, debuggerTemplate);
}
use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.
the class PostgreSQLProviderTest method testSetHost1.
@Test
public void testSetHost1() throws CouldntSaveDataException, CouldntLoadDataException {
final DebuggerTemplate debuggerTemplate = getProvider().loadDebuggers().getDebugger(0);
getProvider().setHost(debuggerTemplate, "localhost");
}
use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.
the class CProjectContainerTest method testListenersSomehow.
@Test
public void testListenersSomehow() throws CouldntSaveDataException, CouldntLoadDataException, LoadCancelledException, CouldntDeleteException {
@SuppressWarnings("unused") final CProjectContainer container = new CProjectContainer(m_database, m_project);
final DebuggerTemplate template = new DebuggerTemplate(2, "bla", "horst", 2222, m_provider);
m_space.getConfiguration().setDebuggerTemplate(template);
m_space.getConfiguration().setDebuggerTemplate(null);
assertEquals(1, m_space.getContent().getModules().size());
m_space.getContent().removeModule(m_module);
m_space.getContent().addModule(m_module);
m_module.load();
m_project.load();
m_space.close();
m_space.load();
}
use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.
the class CProjectContainerTest method setUp.
@Before
public void setUp() throws CouldntLoadDataException, LoadCancelledException, CouldntSaveDataException, IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException {
m_provider = new MockSqlProvider();
m_module = new MockModule(m_provider);
m_database = new MockDatabase(m_provider);
m_function = new MockFunction(m_provider);
m_project = new CProject(123, "Name", "Comment", new Date(), new Date(), 55, new FilledList<DebuggerTemplate>(), m_provider);
m_project.load();
m_space = m_project.getContent().createAddressSpace("space");
m_space.load();
m_space.getContent().addModule(m_module);
m_debugger = new DebuggerTemplate(2, "gdb", "local", 2222, m_provider);
m_space.getConfiguration().setDebuggerTemplate(m_debugger);
m_listener = new MockAddressSpaceListener();
m_space.addListener(m_listener);
m_module.load();
CFunctionContainerHelper.addFunction(m_module.getContent().getFunctionContainer(), m_function);
final CView view = m_module.getContent().getViewContainer().createView("foo", "bar");
@SuppressWarnings("unused") final MockViewContainer mockViewContainer = new MockViewContainer();
final MockViewListener listener = new MockViewListener();
view.addListener(listener);
}
Aggregations