Search in sources :

Example 31 with DebuggerTemplate

use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.

the class PostgreSQLProviderTest method testAssignDebuggerModule2.

@Test(expected = NullPointerException.class)
public void testAssignDebuggerModule2() throws CouldntLoadDataException, CouldntSaveDataException {
    final DebuggerTemplate debuggerTemplate = getProvider().loadDebuggers().getDebugger(0);
    getProvider().assignDebugger((CModule) null, debuggerTemplate);
}
Also used : DebuggerTemplate(com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate) ExpensiveBaseTest(com.google.security.zynamics.binnavi.disassembly.types.ExpensiveBaseTest) Test(org.junit.Test)

Example 32 with DebuggerTemplate

use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.

the class PostgreSQLProviderTest method testSetNameDebugger1.

@Test
public void testSetNameDebugger1() throws CouldntSaveDataException, CouldntLoadDataException {
    final DebuggerTemplate debuggerTemplate = getProvider().loadDebuggers().getDebugger(0);
    getProvider().setName(debuggerTemplate, "localhost");
}
Also used : DebuggerTemplate(com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate) ExpensiveBaseTest(com.google.security.zynamics.binnavi.disassembly.types.ExpensiveBaseTest) Test(org.junit.Test)

Example 33 with DebuggerTemplate

use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.

the class PostgreSQLProviderTest method testAssignDebuggerModule1.

@Test
public void testAssignDebuggerModule1() throws CouldntSaveDataException, CouldntLoadDataException {
    final INaviModule module = getProvider().loadModules().get(0);
    final DebuggerTemplate debuggerTemplate = getProvider().loadDebuggers().getDebugger(0);
    getProvider().assignDebugger(module, debuggerTemplate);
    getProvider().assignDebugger(module, null);
}
Also used : INaviModule(com.google.security.zynamics.binnavi.disassembly.INaviModule) DebuggerTemplate(com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate) ExpensiveBaseTest(com.google.security.zynamics.binnavi.disassembly.types.ExpensiveBaseTest) Test(org.junit.Test)

Example 34 with DebuggerTemplate

use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.

the class PostgreSQLProviderTest method testCProjectFunctionsRemoveDebugger1.

@Test
public void testCProjectFunctionsRemoveDebugger1() throws CouldntLoadDataException, LoadCancelledException, CouldntSaveDataException {
    final INaviProject project = getProvider().loadProjects().get(0);
    project.load();
    final DebuggerTemplate debugger = new DebuggerTemplate(1, "foo", "host", 1234, getProvider());
    PostgreSQLProjectFunctions.removeDebugger((AbstractSQLProvider) getProvider(), project, debugger);
}
Also used : INaviProject(com.google.security.zynamics.binnavi.disassembly.INaviProject) DebuggerTemplate(com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate) ExpensiveBaseTest(com.google.security.zynamics.binnavi.disassembly.types.ExpensiveBaseTest) Test(org.junit.Test)

Example 35 with DebuggerTemplate

use of com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate in project binnavi by google.

the class PostgreSQLProviderTest method testSetPort3.

@Test(expected = IllegalArgumentException.class)
public void testSetPort3() throws CouldntSaveDataException, CouldntLoadDataException {
    final DebuggerTemplate debuggerTemplate = getProvider().loadDebuggers().getDebugger(0);
    getProvider().setPort(debuggerTemplate, -1);
}
Also used : DebuggerTemplate(com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate) ExpensiveBaseTest(com.google.security.zynamics.binnavi.disassembly.types.ExpensiveBaseTest) Test(org.junit.Test)

Aggregations

DebuggerTemplate (com.google.security.zynamics.binnavi.debug.debugger.DebuggerTemplate)55 Test (org.junit.Test)29 Date (java.util.Date)20 CModule (com.google.security.zynamics.binnavi.disassembly.Modules.CModule)16 CAddress (com.google.security.zynamics.zylib.disassembly.CAddress)16 MockSqlProvider (com.google.security.zynamics.binnavi.Database.MockClasses.MockSqlProvider)12 MockDatabase (com.google.security.zynamics.binnavi.Database.MockClasses.MockDatabase)11 ExpensiveBaseTest (com.google.security.zynamics.binnavi.disassembly.types.ExpensiveBaseTest)11 CProject (com.google.security.zynamics.binnavi.disassembly.CProject)8 ArrayList (java.util.ArrayList)8 Before (org.junit.Before)8 ResultSet (java.sql.ResultSet)7 SQLException (java.sql.SQLException)6 CConnection (com.google.security.zynamics.binnavi.Database.CConnection)5 CouldntLoadDataException (com.google.security.zynamics.binnavi.Database.Exceptions.CouldntLoadDataException)5 CTag (com.google.security.zynamics.binnavi.Tagging.CTag)5 CInstruction (com.google.security.zynamics.binnavi.disassembly.CInstruction)5 SQLProvider (com.google.security.zynamics.binnavi.Database.Interfaces.SQLProvider)4 CTagManager (com.google.security.zynamics.binnavi.Tagging.CTagManager)4 MockTagManager (com.google.security.zynamics.binnavi.Tagging.MockTagManager)4