gmock-actions: make OnceAction public.

So that it can be referenced in conversion operators for actions that need to
know the concrete return type.

PiperOrigin-RevId: 447889344
Change-Id: I643d3298bc8effd08741282a956c221f9d67d378
This commit is contained in:
Aaron Jacobs
2022-05-10 20:08:19 -07:00
committed by Copybara-Service
parent bda85449f4
commit 6386897feb
3 changed files with 59 additions and 20 deletions

View File

@@ -1920,7 +1920,7 @@ TEST(MockMethodTest, ActionSwallowsAllArguments) {
struct ActionWithTemplatedConversionOperators {
template <typename... Args>
operator internal::OnceAction<int(Args...)>() && { // NOLINT
operator OnceAction<int(Args...)>() && { // NOLINT
return [] { return 17; };
}