Ghidra is a software reverse engineering (SRE) framework
Minor test tweaks
dragonmacher88952d8309f3
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/FieldMouseHandler.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/FieldMouseHandler.javaindex 3327d88915..80050dfa3f 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/FieldMouseHandler.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/FieldMouseHandler.java@@ -15,13 +15,12 @@*/package ghidra.app.util.viewer.field;-import ghidra.app.nav.Navigatable;-import ghidra.framework.plugintool.ServiceProvider;-import ghidra.program.util.ProgramLocation;-import java.awt.event.MouseEvent;import docking.widgets.fieldpanel.field.Field;+import ghidra.app.nav.Navigatable;+import ghidra.framework.plugintool.ServiceProvider;+import ghidra.program.util.ProgramLocation;public interface FieldMouseHandler {/**@@ -32,16 +31,17 @@ public interface FieldMouseHandler {* @param clickedObject The object that was clicked* @param sourceNavigatable The source navigatable that was clicked upon.* @param programLocation The location at the time the click was made. Due to swing delay, this- * location may not be the same as you would get if you asked the navagatable for the current+ * location may not be the same as you would get if you asked the navigatable for the current* location.SC* @param mouseEvent The mouse event that triggered the click* @param serviceProvider A service provider used to access system resources.* @return true if this handler wishes to have exclusive handling rights to processing the* <code>clickedObject</code>- * @see ListingField#getClickedObject(ghidra.util.bean.field.FieldLocation)+ * @see ListingField#getClickedObject(docking.widgets.fieldpanel.support.FieldLocation)*/public boolean fieldElementClicked(Object clickedObject, Navigatable sourceNavigatable,- ProgramLocation programLocation, MouseEvent mouseEvent, ServiceProvider serviceProvider);+ ProgramLocation programLocation, MouseEvent mouseEvent,+ ServiceProvider serviceProvider);/*** Returns an array of types that this handler wishes to handle.diff --git a/Ghidra/Features/Base/src/main/java/ghidra/test/AbstractGhidraHeadlessIntegrationTest.java b/Ghidra/Features/Base/src/main/java/ghidra/test/AbstractGhidraHeadlessIntegrationTest.javaindex c3a9b33fdc..215787b6e3 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/test/AbstractGhidraHeadlessIntegrationTest.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/test/AbstractGhidraHeadlessIntegrationTest.java@@ -180,7 +180,7 @@ public abstract class AbstractGhidraHeadlessIntegrationTest extends AbstractDock* @return result of command applyTo method* @throws RollbackException thrown if thrown by command applyTo method*/- public static boolean applyCmd(Program program, Command cmd) throws RollbackException {+ public static boolean applyCmd(Program program, Command<Program> cmd) throws RollbackException {int txId = program.startTransaction(cmd.getName());boolean commit = true;try {@@ -498,6 +498,11 @@ public abstract class AbstractGhidraHeadlessIntegrationTest extends AbstractDockwaitForSwing();}+ public void clearSelection(PluginTool tool, Program p) {+ AddressSet set = new AddressSet();+ makeSelection(tool, p, set);+ }+/*** Returns the global symbol with the given name if and only if it is the only global symbol* with that name.diff --git a/Ghidra/Framework/Generic/src/main/resources/generic.log4jtest.xml b/Ghidra/Framework/Generic/src/main/resources/generic.log4jtest.xmlindex 4ee5f636f5..c0ebeecd45 100644--- a/Ghidra/Framework/Generic/src/main/resources/generic.log4jtest.xml+++ b/Ghidra/Framework/Generic/src/main/resources/generic.log4jtest.xml@@ -70,7 +70,8 @@<logger name="ghidra.app.script" level="INFO" /><logger name="ghidra.app.util.importer" level="INFO" /><logger name="ghidra.app.util.opinion" level="DEBUG" />- <logger name="ghidra.util.classfinder" level="DEBUG" />+ <logger name="ghidra.util.classfinder" level="DEBUG" />+ <logger name="ghidra.util.extensions" /><logger name="ghidra.util.task" level="DEBUG" /><logger name="functioncalls" level="DEBUG" /><logger name="org.jungrapht.visualization" level="WARN" />