commit | 0f04abaa16670ad0375f8ae8f286aed1268df6bd | [log] [tgz] |
---|---|---|
author | Kirtika Ruchandani <kirtika@chromium.org> | Sat Jan 14 23:03:20 2017 |
committer | Kirtika Ruchandani <kirtika@chromium.org> | Mon Jan 30 20:36:09 2017 |
tree | dd88333a5dbc0884f2d73eabefad7b6a0cbefa91 | |
parent | 7a7487f4505332ba5d534f81d213e04743a64385 [diff] |
network throttling: fix download rate handling Fix silly bug that caused download rate to be ignored, and used the upload rate specified for both upload/download. While there, use StrictMock for throttler class within the manager's unittest. BUG=chromium:670145 TEST=(1) Changed upload/download rate on YAPS server with one client. (2) add case 'ManagerCallsThrottlerCorrectly' to manager_unittest.cc to catch this case. Change-Id: I64861aea14414a902c7bc35282a613e67d1a2bc0 Reviewed-on: https://chromium-review.googlesource.com/433403 Commit-Ready: Kirtika Ruchandani <kirtika@chromium.org> Tested-by: Kirtika Ruchandani <kirtika@chromium.org> Reviewed-by: Kevin Cernekee <cernekee@chromium.org>