• David Van Cleve's avatar
    NetLog: Allow extracting a nested dictionary in the test util getter · 8aed8cc1
    David Van Cleve authored
    This change updates net_log_test_util's methods that retrieve strings
    from NetLogEvent dictionaries to allow fetching a string from a nested
    dictionary using the base::Value::GetStringPath syntax (for instance,
    "inner.item" will fetch { "inner": { "item": "value" } }).
    
    (This allows writing some slightly more concise test code in the child
    CL crrev.com/c/2315641.)
    
    R=eroman
    
    Bug: None
    Change-Id: Ie8552b9347e9bb147f12e1a57ca98a43b9216f88
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2354293
    Commit-Queue: David Van Cleve <davidvc@chromium.org>
    Commit-Queue: Eric Roman <eroman@chromium.org>
    Reviewed-by: default avatarEric Roman <eroman@chromium.org>
    Auto-Submit: David Van Cleve <davidvc@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#798224}
    8aed8cc1
test_net_log_util.cc 6.6 KB