commit | bc16742135a8f52a53ba82d76ecc99e61808833a | [log] [tgz] |
---|---|---|
author | Xinghui Lu <xinghuilu@chromium.org> | Tue Mar 25 21:48:45 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 25 21:48:45 2025 |
tree | 93c734490ba3b38966ed30bcde9867d340edaa64 | |
parent | 64c43ccf5e688fc701bf1d48e8d789fbf19f5bf2 [diff] |
Replace StrictMock with NiceMock in ClientSideDetectionHostTest I don't see a strong reason that we need to enforce a strict behavior for the underlying classes. We'd like to enforce the expected calls of these classes, but we are uninterested in the calls during setup. StrictMock makes the test brittle and complicate the set up process. Reference: go/gmockcook#NiceStrictNaggy (sorry I can't find a public version of it). Bug: 405452036 Change-Id: Ie042879d7de3eabe32ad29ca6cd0e30b0728b1a5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6370023 Commit-Queue: Xinghui Lu <xinghuilu@chromium.org> Reviewed-by: Seung Jae Lim <andysjlim@chromium.org> Cr-Commit-Position: refs/heads/main@{#1437758}
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.