A cock pet is when somebody (that's a male) pets a person's head or shoulders with an erect penis, usually from behind.
Guy 1: WHY THE FUCK IS YOUR PENIS ON MY HAIR! Guy 2: I'm giving you a cock pet, calm down.