I will tell you -- the scene in St.Jean PdP, when he first arrives in France, and is sitting in the outdoor cafe, when he meets the Dutch pilgrim -- that is a real restaraunt in SJPdP, it's where I ate the night before I started walking! It's delightful, reasonably priced, friendly staff.
As far as eating gourmet food, well, the others are correct, it won't happen often on the Camino for a variety of reasons. But you WILL, quite often, sit around a communal table and share a meal with other pilgrims, and yes, sometimes locals. Truthfully, those are the meals I remember the most, whether or not the food was fancy. Sometimes it was just pasta and vegetables in a donativo run by a local parish, sometimes it was a little more 'upscale'. But the real value, and the real memories, come from the shared experience!
But, if you are looking for some awesome food, I recommend the albergue in Orisson (for the amazing food and SOOOOO much more!), the little bar next to the monastery in San Juan de Ortega (best. blood sausage. ever.), pretty much anything in Burgos, the helado in Leon (I suggest Cafe Albany, across from the cathedral), the dinner at the Brazilian-run albergue in Vega de Valcarce... and definitely the local soft cheeses of Galicia! For a bit of a splurge, but totally worth it, on the way down from O Cebreiro, in the village of Biduedo, there's a tiny pension called Casa Xato, run by a delightful woman called Celia. She'll cook you up an amazing dinner and a breakfast in the morning, all primarily made by herself with ingredients from her farm. And she treats you like a guest in her own home! Private rooms & bathrooms, to boot
Yes, you'll be eating a lot of bocadillos (sandwiches) and tortillas (somewhere along the lines of an omelette or quiche) and ensaladas mixtas (mixed salads). But again, you'll rarely eat alone, and it's the company that you'll remember the most!