In the agreement , India and Saudi Arabia also pledged to cooperate in the fight against terrorism .