use of com.google.security.zynamics.binnavi.disassembly.MockFunction in project binnavi by google.
the class CCrossReferencesModelTest method test5ValueAt.
@Test
public void test5ValueAt() {
final CCrossReferencesModel model = new CCrossReferencesModel();
final CCrossReference reference = new CCrossReference(new MockFunction(), new MockFunction());
final List<CCrossReference> crossReferences = new ArrayList<CCrossReference>();
crossReferences.add(reference);
model.setCrossReferences(crossReferences);
assertEquals("Mock Function", model.getValueAt(0, 0));
assertEquals("Mock Function", model.getValueAt(0, 1));
}
use of com.google.security.zynamics.binnavi.disassembly.MockFunction in project binnavi by google.
the class CCrossReferencesModelTest method test1Simple.
@Test
public void test1Simple() {
final CCrossReferencesModel model = new CCrossReferencesModel();
final CCrossReference reference = new CCrossReference(new MockFunction(), new MockFunction());
final List<CCrossReference> crossReferences = new ArrayList<CCrossReference>();
crossReferences.add(reference);
model.setCrossReferences(crossReferences);
}
use of com.google.security.zynamics.binnavi.disassembly.MockFunction in project binnavi by google.
the class CCrossReferencesModelTest method test3getCoulmName.
@Test
public void test3getCoulmName() {
final CCrossReferencesModel model = new CCrossReferencesModel();
final CCrossReference reference = new CCrossReference(new MockFunction(), new MockFunction());
final List<CCrossReference> crossReferences = new ArrayList<CCrossReference>();
crossReferences.add(reference);
model.setCrossReferences(crossReferences);
assertEquals("Called Function", model.getColumnName(0));
assertEquals("Calling Function", model.getColumnName(1));
}
use of com.google.security.zynamics.binnavi.disassembly.MockFunction in project binnavi by google.
the class CCrossReferencesModelTest method test2GetColumnCount.
@Test
public void test2GetColumnCount() {
final CCrossReferencesModel model = new CCrossReferencesModel();
final CCrossReference reference = new CCrossReference(new MockFunction(), new MockFunction());
final List<CCrossReference> crossReferences = new ArrayList<CCrossReference>();
crossReferences.add(reference);
model.setCrossReferences(crossReferences);
assertEquals(2, model.getColumnCount());
}
use of com.google.security.zynamics.binnavi.disassembly.MockFunction in project binnavi by google.
the class CUnInlinerTest method testOneBlock.
@Test
public void testOneBlock() {
final List<INaviViewNode> nodes = new FilledList<INaviViewNode>();
final List<INaviEdge> edges = new FilledList<INaviEdge>();
final INaviFunction mockFunction = new MockFunction();
final CCodeNode node = new CCodeNode(0, 0, 0, 0, 0, Color.RED, Color.RED, false, true, null, mockFunction, new HashSet<CTag>(), m_provider);
nodes.add(node);
final MockView view = new MockView(nodes, edges, m_provider);
CUnInliner.unInline(view, node);
}
Aggregations