Hello everyone,
Inspired by a related issue in PDFium [1], I have initiated a similar issue in Chromium, details of which can be found in [2]. Currently, Helmut Januschka and I are actively working on this.
The primary goal of this issue is to clean up unnecessary underscores in the TestSuiteName and TestName of tests written using the GoogleTest framework in the Chromium codebase (excluding special prefixes like MAYBE_ and DISABLED_).
However, during the cleanup of the //base directory, Alexei Svitkine raised some concerns and suggested further discussion on this topic. Details of his feedback can be found in [3].
From my perspective, removing unnecessary underscores in TestSuiteName and TestName is reasonable. The GoogleTest documentation supports this to some extent, even though the examples provided are limited. For reference, please see [4]:
```
So for simplicity, we just ask the users to avoid _ in TestSuiteName and TestName. The rule is more constraining than necessary, but it's simple and easy to remember. It also gives GoogleTest some wiggle room in case its implementation needs to change in the future.
```
Given the current lack of consensus, I’d like to seek input from the Chromium Slack: Should we adopt the practice of cleaning up unnecessary underscores in TestSuiteName and TestName within the Chromium project?
[1] https://issues.chromium.org/issues/42270790
[2] https://issues.chromium.org/issues/377144451
[3] https://chromium-review.googlesource.com/c/chromium/src/+/6034789?tab=comments
[4] https://github.com/google/googletest/blob/main/docs/faq.md#why-should-test-suite-names-and-test-names-not-contain-underscore
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAKFU2SAR_wqcKo2uGuJGW9tD9X9qi-aS%2BF%2BThiL6BcJW9RZSjA%40mail.gmail.com.
--
Google Germany GmbH
Erika-Mann-Straße 33
80636 München
Geschäftsführer: Paul Manicle, Liana Sebastian
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Diese E-Mail ist vertraulich. Falls Sie diese fälschlicherweise erhalten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail an die falsche Person gesendet wurde.
This email is confidential. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to the wrong person.
--
It seems to me that forbidding underscores in TestSuiteName, but allowing them in TestName, would prevent the generated-class-name-clashing issue while permitting the vast majority of existing underscore usage in Chromium (so minimal churn to fix).Underscore usage is widespread enough that I really can't imagine GoogleTest breaking that in a future update ¯\_(ツ)_/¯Ryan
As of now, there are no more problems or issues with this topic, and all previously merged patches have been reverted.
Is there any videos I can watch to learn this stuff. ,?? I'm so confused on the header stuff I click one thing and it doesn't do anything I need help