Replace html entities with their equivalents
This commit is contained in:
		
							parent
							
								
									505b9cf9c4
								
							
						
					
					
						commit
						c16ad8ce5d
					
				@ -2365,7 +2365,7 @@ Now there’s one topic we haven’t covered: how do you set expectations on `Sh
 | 
				
			|||||||
  // When one calls ShareBuzz() on the MockBuzzer like this, the call is
 | 
					  // When one calls ShareBuzz() on the MockBuzzer like this, the call is
 | 
				
			||||||
  // forwarded to DoShareBuzz(), which is mocked.  Therefore this statement
 | 
					  // forwarded to DoShareBuzz(), which is mocked.  Therefore this statement
 | 
				
			||||||
  // will trigger the above EXPECT_CALL.
 | 
					  // will trigger the above EXPECT_CALL.
 | 
				
			||||||
  mock_buzzer_.ShareBuzz(MakeUnique<Buzz>(AccessLevel::kInternal),
 | 
					  mock_buzzer_.ShareBuzz(MakeUnique<Buzz>(AccessLevel::kInternal),
 | 
				
			||||||
                         ::base::Now());
 | 
					                         ::base::Now());
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -2404,7 +2404,7 @@ Now, the mock `DoShareBuzz()` method is free to save the buzz argument for later
 | 
				
			|||||||
```
 | 
					```
 | 
				
			||||||
  std::unique_ptr<Buzz> intercepted_buzz;
 | 
					  std::unique_ptr<Buzz> intercepted_buzz;
 | 
				
			||||||
  EXPECT_CALL(mock_buzzer_, DoShareBuzz(NotNull(), _))
 | 
					  EXPECT_CALL(mock_buzzer_, DoShareBuzz(NotNull(), _))
 | 
				
			||||||
      .WillOnce(Invoke([&intercepted_buzz](Buzz* buzz, Time timestamp) {
 | 
					      .WillOnce(Invoke([&intercepted_buzz](Buzz* buzz, Time timestamp) {
 | 
				
			||||||
        // Save buzz in intercepted_buzz for analysis later.
 | 
					        // Save buzz in intercepted_buzz for analysis later.
 | 
				
			||||||
        intercepted_buzz.reset(buzz);
 | 
					        intercepted_buzz.reset(buzz);
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user