Unbreak traffic shaping

Fix typos to make trafficshaping and it's unittest work.

R=tonyg@chromium.org
Review url: https://codereview.chromium.org/244763005/