Use virtual clipboard for tests
Using the system clipboard for tests causes race conditions (it's a shared resource), means that tests pollute global state, and causes tests to fail on Windows if the workstation is locked (opening the clipboard fails in that case). So, using the TestClipboard is important. This was tested by running this command: unit_tests --gtest_filter=SharedClipboardMessageHandlerTest* Before the clipboard contents were perturbed. After, they were not. Bug: 996325 Change-Id: Idec21ce709463bcd9c70d7d25f1a6bc851170ba1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1881988 Auto-Submit: Bruce Dawson <brucedawson@chromium.org> Commit-Queue: Michael van Ouwerkerk <mvanouwerkerk@chromium.org> Reviewed-by:Michael van Ouwerkerk <mvanouwerkerk@chromium.org> Cr-Commit-Position: refs/heads/master@{#710727}
Showing
Please register or sign in to comment