Skip to content
Commit 2d889788 authored by Chris Fredrickson's avatar Chris Fredrickson Committed by Chromium LUCI CQ
Browse files

Use narrower types in CookiePartitionKeyTest

Some of the test case structs have a boolean field, and other fields
that are only meaningful if the aforementioned boolean is true.
Instead of using a bool and just ignoring other fields sometimes, we
should use an optional to make the semantics clearer and harder to
misuse.

This CL also adds some `using enum` directives to reduce noisy
namespacing.

Change-Id: I0ae5a60586d8e31de598616500fa1f78f98db45b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5466048


Reviewed-by: default avatarDylan Cutler <dylancutler@google.com>
Commit-Queue: Chris Fredrickson <cfredric@chromium.org>
Auto-Submit: Chris Fredrickson <cfredric@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1289585}
parent da204441
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment