Skip to content

VPAAMP-129 fix: always compile ResetForTesting, remove AAMP_TEST_BUILD guard#1349

Merged
pstroffolino merged 1 commit into
dev_sprint_25_2from
fix/VPAAMP-129-reset-for-testing-build
Apr 23, 2026
Merged

VPAAMP-129 fix: always compile ResetForTesting, remove AAMP_TEST_BUILD guard#1349
pstroffolino merged 1 commit into
dev_sprint_25_2from
fix/VPAAMP-129-reset-for-testing-build

Conversation

@pstroffolino
Copy link
Copy Markdown
Contributor

Summary

Surgical follow-up to the VPAAMP-129 merge.

NetPersonaFitter::ResetForTesting() was guarded by #ifdef AAMP_TEST_BUILD, but the unit test build does not define that macro — causing a compile error in NetPersonaFitterTestCases.cpp.

Change

Remove the #ifdef / #endif guards from both net_persona_fitter.h and net_persona_fitter.cpp. The method is test-only by convention; its presence in production builds is inert (it is never called outside test code).

Files changed

  • simnet/net_persona_fitter.h — remove #ifdef AAMP_TEST_BUILD guard
  • simnet/net_persona_fitter.cpp — remove #ifdef AAMP_TEST_BUILD guard

…D guard

The test build does not define AAMP_TEST_BUILD, so the method was compiled
out and caused a build error in NetPersonaFitterTestCases.cpp. Remove the
ifdef guards — ResetForTesting() is test-only by convention and inert in
production (never called outside test code).
@pstroffolino pstroffolino requested a review from a team as a code owner April 23, 2026 16:59
@pstroffolino pstroffolino merged commit ca929af into dev_sprint_25_2 Apr 23, 2026
10 checks passed
@pstroffolino pstroffolino deleted the fix/VPAAMP-129-reset-for-testing-build branch April 23, 2026 17:14
Abhi-jith-S pushed a commit that referenced this pull request May 12, 2026
…D guard (#1349)

Reason for Change: The test build does not define AAMP_TEST_BUILD, so the method was compiled
out and caused a build error in NetPersonaFitterTestCases.cpp. Remove the
ifdef guards — ResetForTesting() is test-only by convention and inert in
production (never called outside test code).
varatharajan568 pushed a commit that referenced this pull request May 20, 2026
…D guard (#1349)

Reason for Change: The test build does not define AAMP_TEST_BUILD, so the method was compiled
out and caused a build error in NetPersonaFitterTestCases.cpp. Remove the
ifdef guards — ResetForTesting() is test-only by convention and inert in
production (never called outside test code).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant