I just wanted to add, that sometimes the effects of chocolate poisoning aren't known for three days, it doesn't affect the intestinal tract as badly as it affects the nervous system, and yes cake with cocoa, has chocolate. Here's some more information on what chocolate does to dogs.
Chocolate and Dog Poisoning