Use this rich chocolate frosting to decorate our Basic Yellow Cake or Basic Chocolate Cake.
Put sugar, egg whites, and salt in the heatproof bowl of an electric mixer. Set over a pan of simmering water. Whisk constantly until sugar has dissolved and mixture registers 160 degrees on an instant-read thermometer.
Return bowl to mixer; fit mixer with the whisk attachment. Beat on medium-high speed until stiff, glossy peaks form, and mixture is cool, about 10 minutes.
Switch to the paddle attachment. With mixer on medium speed, add butter, 1 or 2 tablespoons at a time, mixing well after each addition. Mix, scraping down sides of bowl as needed, until the mixture is smooth. Mix in chocolate. Use immediately, or cover and refrigerate. Frosting can be refrigerated in an airtight container up to 3 days. Before using, bring to room temperature; beat with the paddle attachment on medium-low speed until smooth.