[CCA] Add onAppWindowCreatedForTesting in background.
Use a callback instead of polling a boolean flag to notify the window created event for test, because we might restart CCA when running a test. An alternative is to set the boolean flag to |false| in |onClosed|, but that might hit a race condition if the app window is closed soon after it's created, and before the |true| state is polled by test. Bug: b:135905426 Test: Restart CCA 200 times in Tast. Change-Id: Ia29e0221d072845b23e4598ca2d594330b3b1ac0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1672827Reviewed-by:Sheng-hao Tsao <shenghao@chromium.org> Commit-Queue: Shik Chen <shik@chromium.org> Cr-Commit-Position: refs/heads/master@{#672787}
Showing
Please register or sign in to comment