Merge pull request #71 from sigiesec/fix-protected-method-docs

Fix documentation regarding protected methods
This commit is contained in:
Mathieu Champlon 2019-04-12 16:06:32 +02:00 committed by GitHub
commit 44e8509d6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ namespace
//[ limitations_protected_private_method_problem //[ limitations_protected_private_method_problem
class base class base
{ {
private: protected:
virtual void method_1() = 0; virtual void method_1() = 0;
private: private:
virtual void method_2() = 0; virtual void method_2() = 0;

View file

@ -112,7 +112,7 @@ A workaround would be to add the signature to MOCK_METHOD :
[endsect] [endsect]
[section Private virtual methods cannot be mocked without specifying the signature] [section Protected and private virtual methods cannot be mocked without specifying the signature]
Given : Given :