mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Fix building a test target
-Using Field matcher instead Eq to compare boost tribool value
This commit is contained in:
		
				
					committed by
					
						 ArseniyShestakov
						ArseniyShestakov
					
				
			
			
				
	
			
			
			
						parent
						
							1afbdf7027
						
					
				
				
					commit
					aee4bb7281
				
			| @@ -28,10 +28,9 @@ public: | ||||
| 	void setDefaultExpectations() | ||||
| 	{ | ||||
| 		ownerMatches = GetParam(); | ||||
|  | ||||
| 		EXPECT_CALL(unitMock, getAllBonuses(_, _, _, _)).Times(AtLeast(0)); | ||||
| 		EXPECT_CALL(unitMock, getTreeVersion()).Times(AtLeast(0)); | ||||
| 		EXPECT_CALL(mechanicsMock, ownerMatches(Eq(&unitMock), Eq(false))).WillRepeatedly(Return(ownerMatches)); | ||||
| 		EXPECT_CALL(mechanicsMock, ownerMatches(Eq(&unitMock), Field(&boost::logic::tribool::value, boost::logic::tribool::false_value))).WillRepeatedly(Return(ownerMatches)); | ||||
| 	} | ||||
|  | ||||
| protected: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user