summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorFabian Kozynski <kozynski@google.com>2020-09-14 16:08:08 -0400
committerFabian Kozynski <kozynski@google.com>2020-09-16 14:35:55 -0400
commit59e7a219160b9755bd6b06c339af0b48532499e1 (patch)
tree278636c783bc9c23d596c979c6d10d3c8be3abd6 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent5f028c99ff4ffe400b0ba517361d7dace2055dbe (diff)
Wait for state refreshed in TileQueryHelper
When adding the stock tiles for TileAdapter, TileQueryHelper will set them to listening for a brief period of time to refresh the state and show the current state. It used to work because all the operations were done in the background thread. After switching the lifecycle logic to the main thread, there was a race condition preventing the new state (between RESUMED and STARTED) to be collected before it was copied. This CL adds a class TileCollector that will wait until all tiles have properly refreshed at least once before collecting their state. Test: manual Test: atest TileQueryHelperTest Fixes: 168444501 Change-Id: I5f356ae4648e837cbe1bcdbaec9ba6d5b7c09891
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions