Call SF#processDisplayChangesLocked in testable SF

processDisplayChangesLocked updates rotations and should be
performed in testable SF's commitTransactionsLocked. Several
tests involving rotations had broken after the legacy frontend
flag was removed because these rotations were not being updated.
SF already calls processDisplayChangesLocked in correct
locations, but some test suites neglect to do so. These changes
are therefore isolated to just the testable SF API.

Bug: b/330785038
Test: atest ActiveDispayRotationFlagsTest
Test: atest DisplayModeSwitchingTest
Test: atest DisplayTransactionCommitTest
Test: presubmit
Change-Id: I9ca7bc70b9a5a462e623a788f7a98a738c6a3482
diff --git a/services/surfaceflinger/tests/unittests/TestableSurfaceFlinger.h b/services/surfaceflinger/tests/unittests/TestableSurfaceFlinger.h
index 85b1717..85da422 100644
--- a/services/surfaceflinger/tests/unittests/TestableSurfaceFlinger.h
+++ b/services/surfaceflinger/tests/unittests/TestableSurfaceFlinger.h
@@ -448,6 +448,7 @@
     void commitTransactionsLocked(uint32_t transactionFlags) {
         Mutex::Autolock lock(mFlinger->mStateLock);
         ftl::FakeGuard guard(kMainThreadContext);
+        mFlinger->processDisplayChangesLocked();
         mFlinger->commitTransactionsLocked(transactionFlags);
     }