DescriptionFactor out the string lookup code from registry_controlled_domains
The string lookup code used by registry_controlled_domains is generally useful
as it provides for efficient lookup of strings in a set with no runtime
initialisation overhead.
Factor it out into a public LookupStringInFixedSet function and add unit tests.
BUG=348877
TEST=net_unittests
Committed: https://crrev.com/3f054c2a5289d812e69f56ec613cc3f2179c50d0
Cr-Commit-Position: refs/heads/master@{#359506}
Patch Set 1 #Patch Set 2 : Add missing unit test. #
Total comments: 5
Patch Set 3 : Change constants to an enum. #Patch Set 4 : Rebase. #
Dependent Patchsets: Messages
Total messages: 28 (8 generated)
|