@@ -849,7 +849,7 @@ namespace {
849
849
850
850
template <typename Expected, typename F>
851
851
static constexpr bool IsMockFunctionTemplateArgumentDeducedTo (
852
- const MockFunction<F>&) {
852
+ const internal:: MockFunction<F>&) {
853
853
return std::is_same<F, Expected>::value;
854
854
}
855
855
@@ -868,14 +868,14 @@ TYPED_TEST(MockMethodMockFunctionSignatureTest,
868
868
IsMockFunctionTemplateArgumentDeducedForRawSignature) {
869
869
using Argument = TypeParam;
870
870
MockFunction<Argument> foo;
871
- EXPECT_TRUE (IsMockFunctionTemplateArgumentDeducedTo<Argument >(foo));
871
+ EXPECT_TRUE (IsMockFunctionTemplateArgumentDeducedTo<TypeParam >(foo));
872
872
}
873
873
874
874
TYPED_TEST (MockMethodMockFunctionSignatureTest,
875
875
IsMockFunctionTemplateArgumentDeducedForStdFunction) {
876
876
using Argument = std::function<TypeParam>;
877
877
MockFunction<Argument> foo;
878
- EXPECT_TRUE (IsMockFunctionTemplateArgumentDeducedTo<Argument >(foo));
878
+ EXPECT_TRUE (IsMockFunctionTemplateArgumentDeducedTo<TypeParam >(foo));
879
879
}
880
880
881
881
TYPED_TEST (
@@ -887,15 +887,27 @@ TYPED_TEST(
887
887
EXPECT_TRUE ((std::is_same<ForRawSignature, ForStdFunction>::value));
888
888
}
889
889
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
+
890
901
TYPED_TEST (
891
902
MockMethodMockFunctionSignatureTest,
892
- IsMockFunctionAsStdFunctionMethodSignatureTheSameForRawSignatureAndStdFunction ) {
893
- using ForRawSignature = decltype (&MockFunction<TypeParam>::AsStdFunction );
903
+ IsMockFunctionCallMethodSignatureTheSameForAlternateCallable ) {
904
+ using ForRawSignature = decltype (&MockFunction<TypeParam>::Call );
894
905
using ForStdFunction =
895
- decltype (&MockFunction<std::function<TypeParam>>::AsStdFunction );
906
+ decltype (&MockFunction<std::function<TypeParam>>::Call );
896
907
EXPECT_TRUE ((std::is_same<ForRawSignature, ForStdFunction>::value));
897
908
}
898
909
910
+
899
911
struct MockMethodSizes0 {
900
912
MOCK_METHOD (void , func, ());
901
913
};
0 commit comments