Unbreak traffic shaping

Fix typos to make trafficshaping and it's unittest work.

R=tonyg@chromium.org
Review url: https://codereview.chromium.org/244763005/
Merge pull request #10 from balazs/fix_trafficshaping

Unbreak traffic shaping