commit | a6803be1c607cf6b8d2769aaf444433507ba3558 | [log] [tgz] |
---|---|---|
author | Alvin Lee <alvinlee@google.com> | Mon Jan 17 08:20:04 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jan 17 08:20:04 2022 |
tree | 978a95dfff7f6fe8e795bd4a1548711b201a519f | |
parent | 27fde05a4e02bbc5c00e17424e837a1fa68f3375 [diff] |
Modify seat_unittest's TestDataSourceDelegate to store data in a map. Currently, the TestDataSourceDelegate within seat_unittest.cc only stores one data item that is used by OnSend() irrespective of any MIME type. This becomes problematic for testing flows where multiple MIME types with different data items coexist. This CL modifies TestDataSourceDelegate to internally store data as a map from MIME type to data item. An entry into this data map is added in SetData() and OnSend() sends the corresponding data item for a MIME type key. Bug: 1280544 Change-Id: I9cba17aaa4d668abb21fae2d6f7ed395e839be22 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3359422 Reviewed-by: Yuichiro Hanada <yhanada@chromium.org> Commit-Queue: Alvin Lee <alvinlee@google.com> Auto-Submit: Alvin Lee <alvinlee@google.com> Cr-Commit-Position: refs/heads/main@{#959961}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.