rèn​dí​wéi​yǒu

to treat an enemy as a friend