Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 648829590
  • Loading branch information
SiliFuzz Team authored and copybara-github committed Jul 2, 2024
1 parent b88c451 commit 8389ccc
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions common/snapshot_test_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,18 @@ absl::StatusOr<Snapshot::EndState> ApplySideEffects(
return es_with_sideeffects;
}

template <typename Arch>
inline constexpr PlatformId kDefaultTestSnapshotPlatform =
PlatformId::kUndefined;

template <>
inline constexpr PlatformId kDefaultTestSnapshotPlatform<X86_64> =
PlatformId::kIntelSkylake;

template <>
inline constexpr PlatformId kDefaultTestSnapshotPlatform<AArch64> =
PlatformId::kArmNeoverseN1;

} // namespace

template <typename Arch>
Expand All @@ -174,18 +186,6 @@ bool TestSnapshotExists(TestSnapshot type) {
template bool TestSnapshotExists<X86_64>(TestSnapshot type);
template bool TestSnapshotExists<AArch64>(TestSnapshot type);

template <typename Arch>
static constexpr PlatformId kDefaultTestSnapshotPlatform =
PlatformId::kUndefined;

template <>
static constexpr PlatformId kDefaultTestSnapshotPlatform<X86_64> =
PlatformId::kIntelSkylake;

template <>
static constexpr PlatformId kDefaultTestSnapshotPlatform<AArch64> =
PlatformId::kArmNeoverseN1;

template <typename Arch>
PlatformId TestSnapshotPlatform() {
if (Host::architecture_id == Arch::architecture_id) {
Expand Down

0 comments on commit 8389ccc

Please sign in to comment.