Fix plugin after gerrit recent changes.
Google-Bug-Id: b/289356590
Release-Notes: skip
Change-Id: Iaaf35d25f1f02dacfb49f51e37ce7c8ffdad1ef6
diff --git a/java/com/google/gerrit/plugins/checks/acceptance/AbstractCheckersTest.java b/java/com/google/gerrit/plugins/checks/acceptance/AbstractCheckersTest.java
index 51fcc41..7d05fd5 100644
--- a/java/com/google/gerrit/plugins/checks/acceptance/AbstractCheckersTest.java
+++ b/java/com/google/gerrit/plugins/checks/acceptance/AbstractCheckersTest.java
@@ -26,6 +26,8 @@
import com.google.gerrit.plugins.checks.api.Checkers;
import com.google.gerrit.plugins.checks.api.ChecksFactory;
import com.google.gerrit.plugins.checks.api.PendingChecks;
+import com.google.gerrit.server.config.AllProjectsName;
+import com.google.gerrit.server.config.AllUsersName;
import com.google.inject.Inject;
import org.junit.Before;
@@ -47,9 +49,12 @@
protected PendingChecks pendingChecksApi;
@Override
- protected ProjectResetter.Config resetProjects() {
- return super.resetProjects()
- .reset(allProjects, CheckerRef.REFS_CHECKERS + "*", CheckerRef.REFS_META_CHECKERS);
+ protected ProjectResetter.Config resetProjects(
+ AllProjectsName allProjects, AllUsersName allUsers) {
+ return super.resetProjects(allProjects, allUsers)
+ .toBuilder()
+ .reset(allProjects, CheckerRef.REFS_CHECKERS + "*", CheckerRef.REFS_META_CHECKERS)
+ .build();
}
@Before