Clarifying language
The old language might mislead someone into thinking that the access level on the base class itself was changed.
This commit is contained in:
		
							parent
							
								
									58ec2e3ded
								
							
						
					
					
						commit
						9907f86068
					
				@ -18,8 +18,9 @@ You must always put a mock method definition (`MOCK_METHOD*`) in a
 | 
				
			|||||||
`public:` section of the mock class, regardless of the method being
 | 
					`public:` section of the mock class, regardless of the method being
 | 
				
			||||||
mocked being `public`, `protected`, or `private` in the base class.
 | 
					mocked being `public`, `protected`, or `private` in the base class.
 | 
				
			||||||
This allows `ON_CALL` and `EXPECT_CALL` to reference the mock function
 | 
					This allows `ON_CALL` and `EXPECT_CALL` to reference the mock function
 | 
				
			||||||
from outside of the mock class.  (Yes, C++ allows a subclass to change
 | 
					from outside of the mock class.  (Yes, C++ allows a subclass to specify
 | 
				
			||||||
the access level of a virtual function in the base class.)  Example:
 | 
					a different access level than the base class on a virtual function.)
 | 
				
			||||||
 | 
					Example:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
class Foo {
 | 
					class Foo {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user