DC001: Full lifecycle destroy chain. Covers all 6 APIs in a single subprocess run: initAGenUIEngine (global env) → createSurfaceManager → beginTextStream → receiveTextChunk → endTextStream → destroySurfaceManager → destroyAGenUIEngine Two complete streaming sessions are exercised (createSurface + updateComponents) to prove the engine processes real protocol data before being torn down.
| 245 | // updateComponents) to prove the engine processes real protocol data |
| 246 | // before being torn down. |
| 247 | TEST_F(EngineDestroyChainDeathTest, DC001_FullLifecycleDestroyChain) { |
| 248 | EXPECT_EXIT(runDC001(), ::testing::ExitedWithCode(0), ""); |
| 249 | } |
| 250 | |
| 251 | // DC002: Mid-stream destroy (incomplete streaming session). |
| 252 | // |