commit | 97b55a54274dc626a81624a1fe92e28703cb9259 | [log] [tgz] |
---|---|---|
author | Sadrul Habib Chowdhury <sadrul@chromium.org> | Sun Dec 22 04:37:36 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Sun Dec 22 04:37:36 2019 |
tree | c96cfa48ac482d74bf43d87716f0415106059ef6 | |
parent | 49a93b09982cecc07a7687a6c2834e6ff31578c4 [diff] |
[cc/metrics] Make it easier to write tests. Add a helper function GenerateSequence() to make it easier to write tests that need to issue a series of commands for a sequence of frames. With this function, it should be possible to write tests for any sequences that hit any of the DCHECK()s in this code. Add a couple of simple tests with this new function. BUG=1034103 Change-Id: I61f2e22ca69f9d2cfb1e09b1e42a18d4c44e429d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1979767 Auto-Submit: Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by: Xida Chen <xidachen@chromium.org> Commit-Queue: Sadrul Chowdhury <sadrul@chromium.org> Cr-Commit-Position: refs/heads/master@{#727077}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .