Yes, frosting is a verb. It is the "doing" of the sentence.
verbs are words that are used to describe an action, or occurrence taking place. It forms the main part of the predicate of a sentence, such as (hear, become, happen).
I hope this helps you and have a great day!! :)