-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
Hi,
at first thanks for cool gmock generator it's really useful! I found that generator has problems with generating mocks for templates, ie:
#ifndef FOO_H
#define FOO_H
template < class F >
struct Foo
{
virtual ~Foo() {}
virtual void bar(F* f = nullptr) = 0;
};
struct Baz
{
template < class T > void baz(T* t = nullptr)
{
}
};
class Generated
{
virtual void generated(void* p = nullptr) = 0;
};
#endif /* FOO_H */becomes:
#include <gmock/gmock.h>
#include "foo.h"
struct GeneratedMock : public Generated
{
MOCK_METHOD1(generated, void(void *));
};- Foo and Baz structures are missing. Would you add support for templates and templates methods (like in: http://code.google.com/p/googlemock/wiki/CookBook#Mocking_Class_Templates )?
Metadata
Metadata
Assignees
Labels
No labels