• Vaclav Brozek's avatar
    Fix swapped messages in _CheckUniquePtr · c2fecf47
    Vaclav Brozek authored
    _CheckUniquePtr consistes of two checks -- one related to nullptr, one
    related to make_unique. The error messages are currently swapped by
    accident. This CL fixes that and adds a check for that.
    
    It also removes some confusing "java/src" subpaths from the mock file
    paths in the check. Those got in via copy&paste and are confusing,
    while not relevant for what the test is testing.
    
    Bug: 827961
    Change-Id: Iaf3272cfc5fe0a641feaee861ad17fe71505800b
    Reviewed-on: https://chromium-review.googlesource.com/999604Reviewed-by: default avatarDirk Pranke <dpranke@chromium.org>
    Commit-Queue: Vaclav Brozek <vabr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#548807}
    c2fecf47
PRESUBMIT_test.py 61.1 KB