Skip to content

Commit

Permalink
Inject FingerprintValueService from subclasses of FrontierSerializerT…
Browse files Browse the repository at this point in the history
…estBase.

PiperOrigin-RevId: 678220174
Change-Id: Iac52038b0264440415ab9dd0ca1157613aeb0deb
  • Loading branch information
aoeui authored and copybara-github committed Sep 24, 2024
1 parent 355b000 commit 0a6c663
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import com.google.devtools.build.lib.skyframe.serialization.analysis.FrontierSerializer.SelectionMarking;
import com.google.devtools.build.skyframe.InMemoryGraph;
import com.google.devtools.build.skyframe.SkyKey;
import com.google.errorprone.annotations.ForOverride;
import com.google.perftools.profiles.ProfileProto.Profile;
import com.google.protobuf.ExtensionRegistry;
import java.nio.file.Files;
Expand All @@ -60,7 +61,12 @@ public void setup() {
// Give each test case a unique instance of the fingerprint value service, so that test cases
// don't share state. This instance will then last the lifetime of the test case, regardless
// of the number of command invocations.
service = FingerprintValueService.createForTesting();
service = createFingerprintValueService();
}

@ForOverride
protected FingerprintValueService createFingerprintValueService() {
return FingerprintValueService.createForTesting();
}

@Before
Expand Down

0 comments on commit 0a6c663

Please sign in to comment.