• tfarina's avatar
    gpu: Remove testonly header files from service_sources target. · d1d9e928
    tfarina authored
    These headers are intended to be consumed by tests only, not by
    production code and thus should not be listed in service_sources target.
    
    This makes the following errors disappear:
    
    ERROR at //gpu/command_buffer/service/gpu_scheduler_mock.h:9:11: Include
    not allowed.
              ^----------------------------------
    It is not in any dependency of
    //gpu/command_buffer/service:service_sources
    The include file is in the target(s):
    //testing/gmock:gmock
    which should somehow be reachable.
    
    ERROR at //gpu/command_buffer/service/mocks.h:22:11: Include not allowed.
              ^----------------------------------
    It is not in any dependency of
    //gpu/command_buffer/service:service_sources
    The include file is in the target(s):
    //testing/gmock:gmock
    which should somehow be reachable.
    
    Tested on Linux with the following command lines:
    
    $ gn gen out-gn/Debug
    $ gn check out-gn/Debug //gpu/command_buffer/service/*
    
    BUG=367595,376000
    TEST=see above
    R=sievers@chromium.org
    
    Review URL: https://codereview.chromium.org/1114633003
    
    Cr-Commit-Position: refs/heads/master@{#327384}
    d1d9e928
BUILD.gn 4.95 KB