Googletest export
gMock Cookbook: Slight rewording Remove "I" because documentation can have multiple authors. And remove unnecessary "guy". PiperOrigin-RevId: 314533746
This commit is contained in:
		
				
					committed by
					
						
						Gennadiy Rozental
					
				
			
			
				
	
			
			
			
						parent
						
							cb44c86c1a
						
					
				
				
					commit
					210aab09de
				
			@@ -410,8 +410,8 @@ NOTE: `NiceMock` and `StrictMock` only affects *uninteresting* calls (calls of
 | 
				
			|||||||
methods with expectations, but they don't match). See
 | 
					methods with expectations, but they don't match). See
 | 
				
			||||||
[Understanding Uninteresting vs Unexpected Calls](#uninteresting-vs-unexpected).
 | 
					[Understanding Uninteresting vs Unexpected Calls](#uninteresting-vs-unexpected).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There are some caveats though (I dislike them just as much as the next guy, but
 | 
					There are some caveats though (sadly they are side effects of C++'s
 | 
				
			||||||
sadly they are side effects of C++'s limitations):
 | 
					limitations):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1.  `NiceMock<MockFoo>` and `StrictMock<MockFoo>` only work for mock methods
 | 
					1.  `NiceMock<MockFoo>` and `StrictMock<MockFoo>` only work for mock methods
 | 
				
			||||||
    defined using the `MOCK_METHOD` macro **directly** in the `MockFoo` class.
 | 
					    defined using the `MOCK_METHOD` macro **directly** in the `MockFoo` class.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user