Skip to content

Move test mock headers into a mock_headers cc_library instead of cc_embed_data#988

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_912522697
Open

Move test mock headers into a mock_headers cc_library instead of cc_embed_data#988
copybara-service[bot] wants to merge 1 commit intomainfrom
test_912522697

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service Bot commented May 8, 2026

Move test mock headers into a mock_headers cc_library instead of cc_embed_data

To be less dependent on Bazel's cc_embed_data. Otherwise, we need to replicate that in CMake with an add_custom_command + python script, or some other method.

This is not quite as nice as the original, where you could more easily see the files separately, and potentially switch a nullability_test #include to build with the non-mock header through a cc_library.

Otherwise, this is the approach we have in the upstream optional and StatusOr checkers.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 8, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

…mbed_data

To be less dependent on Bazel's cc_embed_data. Otherwise, we need to replicate that in CMake with an `add_custom_command` + python script, or some other method.

This is not quite as nice as the original, where you could more easily see the files separately, and potentially switch a nullability_test #include to build with the non-mock header through a cc_library.

Otherwise, this is the approach we have in the upstream optional and StatusOr checkers.

PiperOrigin-RevId: 912522697
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants