@@ -849,7 +849,7 @@ namespace {
849849
850850template <typename Expected, typename F>
851851static constexpr bool IsMockFunctionTemplateArgumentDeducedTo (
852- const MockFunction<F>&) {
852+ const internal:: MockFunction<F>&) {
853853 return std::is_same<F, Expected>::value;
854854}
855855
@@ -868,14 +868,14 @@ TYPED_TEST(MockMethodMockFunctionSignatureTest,
868868 IsMockFunctionTemplateArgumentDeducedForRawSignature) {
869869 using Argument = TypeParam;
870870 MockFunction<Argument> foo;
871- EXPECT_TRUE (IsMockFunctionTemplateArgumentDeducedTo<Argument >(foo));
871+ EXPECT_TRUE (IsMockFunctionTemplateArgumentDeducedTo<TypeParam >(foo));
872872}
873873
874874TYPED_TEST (MockMethodMockFunctionSignatureTest,
875875 IsMockFunctionTemplateArgumentDeducedForStdFunction) {
876876 using Argument = std::function<TypeParam>;
877877 MockFunction<Argument> foo;
878- EXPECT_TRUE (IsMockFunctionTemplateArgumentDeducedTo<Argument >(foo));
878+ EXPECT_TRUE (IsMockFunctionTemplateArgumentDeducedTo<TypeParam >(foo));
879879}
880880
881881TYPED_TEST (
@@ -887,15 +887,27 @@ TYPED_TEST(
887887 EXPECT_TRUE ((std::is_same<ForRawSignature, ForStdFunction>::value));
888888}
889889
890+ template <typename F>
891+ struct AlternateCallable {
892+ };
893+
894+ TYPED_TEST (MockMethodMockFunctionSignatureTest,
895+ IsMockFunctionTemplateArgumentDeducedForAlternateCallable) {
896+ using Argument = AlternateCallable<TypeParam>;
897+ MockFunction<Argument> foo;
898+ EXPECT_TRUE (IsMockFunctionTemplateArgumentDeducedTo<TypeParam>(foo));
899+ }
900+
890901TYPED_TEST (
891902 MockMethodMockFunctionSignatureTest,
892- IsMockFunctionAsStdFunctionMethodSignatureTheSameForRawSignatureAndStdFunction ) {
893- using ForRawSignature = decltype (&MockFunction<TypeParam>::AsStdFunction );
903+ IsMockFunctionCallMethodSignatureTheSameForAlternateCallable ) {
904+ using ForRawSignature = decltype (&MockFunction<TypeParam>::Call );
894905 using ForStdFunction =
895- decltype (&MockFunction<std::function<TypeParam>>::AsStdFunction );
906+ decltype (&MockFunction<std::function<TypeParam>>::Call );
896907 EXPECT_TRUE ((std::is_same<ForRawSignature, ForStdFunction>::value));
897908}
898909
910+
899911struct MockMethodSizes0 {
900912 MOCK_METHOD (void , func, ());
901913};
0 commit comments