CORE_EXPORT String FocusgroupFlagsToStringForTesting(FocusgroupFlags flags);
I found this export was needed to build some configurations of blink_unittests, let me know if there is a better pattern I can use here, as subsequent changes add more helpers that run into the same issue where testing is the only place where they will be called outside of core. (Of course, this one is only ever called in test).
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
LGTM, but +pdr@ for more advice on exposing debug strings.
focusgroup::FocusgroupFlagsToStringForTesting(FocusgroupFlags::kNone));
A test for the test strings function. I like it. 😊
CORE_EXPORT String FocusgroupFlagsToStringForTesting(FocusgroupFlags flags);
I found this export was needed to build some configurations of blink_unittests, let me know if there is a better pattern I can use here, as subsequent changes add more helpers that run into the same issue where testing is the only place where they will be called outside of core. (Of course, this one is only ever called in test).
+pdr@ who I think has added some similar test-only helpers in the past. This seems ok to me, but it's hard to find a similar pattern to follow in the codebase.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
CORE_EXPORT String FocusgroupFlagsToStringForTesting(FocusgroupFlags flags);
Mason FreedI found this export was needed to build some configurations of blink_unittests, let me know if there is a better pattern I can use here, as subsequent changes add more helpers that run into the same issue where testing is the only place where they will be called outside of core. (Of course, this one is only ever called in test).
+pdr@ who I think has added some similar test-only helpers in the past. This seems ok to me, but it's hard to find a similar pattern to follow in the codebase.
This seems fine to me.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[focusgroup] Add PrintTo helper for logging FocusgroupFlags
Adds helper to make FocusgroupFlags human-readable for tests and debug
logging.
This change also updates the FocusgroupFlags parsing unittests to
prefer EXPECT_* over ASSERT_* for situations where it would be
possible for the test to continue.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |