Add mock progress center items count helper for unittests
Add helper to count the number of items on the MockProgressCenter. Use it in drive_sync_handler_unittest as an example, to remove a shed-load of closure compiler complaints about the following code: Object.keys(progressCenter.items) Move that code into the MockProgressCenter helper: getItemCount(), and the Closure compiler will be a happy koala. No change in test behavior, no new tests. Bug: 907964 No-try: true Change-Id: I3da5fda8226a64a0cad27dcb57b84fac6c7a43be Reviewed-on: https://chromium-review.googlesource.com/c/1351201 Commit-Queue: Noel Gordon <noel@chromium.org> Reviewed-by:Stuart Langley <slangley@chromium.org> Cr-Commit-Position: refs/heads/master@{#611038}
Showing
Please register or sign in to comment