use of com.google.security.zynamics.binnavi.disassembly.CNaviViewEdge in project binnavi by google.
the class ZyGraphTest method createEdgeForAddedEdgeTests.
private Pair<CNaviViewEdge, com.google.security.zynamics.binnavi.yfileswrap.zygraph.NaviEdge> createEdgeForAddedEdgeTests() {
final INaviViewNode source = m_view.getGraph().getNodes().get(0);
final INaviViewNode target = m_view.getGraph().getNodes().get(1);
final CNaviViewEdge edge = m_graph.getRawView().getContent().createEdge(source, target, EdgeType.ENTER_INLINED_FUNCTION);
final com.google.security.zynamics.binnavi.yfileswrap.zygraph.NaviEdge cnn = searchEdge(getEdges(m_graph), edge);
return new Pair<CNaviViewEdge, com.google.security.zynamics.binnavi.yfileswrap.zygraph.NaviEdge>(edge, cnn);
}
use of com.google.security.zynamics.binnavi.disassembly.CNaviViewEdge in project binnavi by google.
the class ZyGraphTest method testAddedEdgeCheckVisibility.
@Test
public void testAddedEdgeCheckVisibility() {
final Pair<CNaviViewEdge, com.google.security.zynamics.binnavi.yfileswrap.zygraph.NaviEdge> p = createEdgeForAddedEdgeTests();
final CNaviViewEdge edge = p.first();
final com.google.security.zynamics.binnavi.yfileswrap.zygraph.NaviEdge cnn = p.second();
assertTrue(edge.isVisible());
assertEquals(edge.isVisible(), cnn.isVisible());
edge.setVisible(false);
assertFalse(edge.isVisible());
assertEquals(edge.isVisible(), cnn.isVisible());
edge.setVisible(true);
assertTrue(edge.isVisible());
assertEquals(edge.isVisible(), cnn.isVisible());
}
use of com.google.security.zynamics.binnavi.disassembly.CNaviViewEdge in project binnavi by google.
the class ZyGraphTest method testAddedEdgeCheckSelection.
@Test
public void testAddedEdgeCheckSelection() {
final Pair<CNaviViewEdge, com.google.security.zynamics.binnavi.yfileswrap.zygraph.NaviEdge> p = createEdgeForAddedEdgeTests();
final CNaviViewEdge edge = p.first();
final com.google.security.zynamics.binnavi.yfileswrap.zygraph.NaviEdge cnn = p.second();
assertFalse(edge.isSelected());
assertEquals(edge.isSelected(), cnn.isSelected());
edge.setSelected(false);
assertFalse(edge.isSelected());
assertEquals(edge.isSelected(), cnn.isSelected());
edge.setSelected(true);
assertTrue(edge.isSelected());
assertEquals(edge.isSelected(), cnn.isSelected());
}
Aggregations