definitely worth a stop at Broc for the chocolate factory (although you don't really see any production).
In Gruyere, you'll want to see 2 cheese factories: the modern "demonstration" factory in town, and the traditional factory in the nearby mountain hamlet.
Gruyere town is nice as well. Try to visit in the evening after the tourist hordes are gone.