Fix tests that rely on implementation details of goog.Timer.
Fix tests that rely on implementation details of goog.Timer.

goog.Timer currently uses setTimeout repeatedly, we're considering changing it to setInterval. According to a TGP this breaks tests that mock setTimeout but not setInterval or those that call MockClock.getTimeoutsMade() instead of MockClock.getCallbacksTriggered().

Tests are expected to work regardless of the implementation details of goog.Timer, this CL achieves that. The changed tests will work the same way now and will not break when goog.Timer changes.

Tested:
    TAP presubmits for global presubmit queue
    http://test/OCL:137160513:BASE:137149835:1477468220822:81af01b0
    Some tests failed; test failures are believed to be unrelated to this CL

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=137589780

joeltine/closure-library,ChadKillingsworth/closure-library,Medium/closure-library,platinumpixs/google-closure-library,platinumpixs/google-closure-library,teppeis/closure-library,ikabirov/closure-library,platinumpixs/google-closure-library,ChadKillingsworth/closure-library,joeltine/closure-library,ikabirov/closure-library,google/closure-library,redforks/closure-library,ikabirov/closure-library,google/closure-library,lucidsoftware/closure-library,lucidsoftware/closure-library,joeltine/closure-library,redforks/closure-library,Medium/closure-library,Medium/closure-library,lucidsoftware/closure-library,redforks/closure-library,ChadKillingsworth/closure-library,ikabirov/closure-library,joeltine/closure-library,teppeis/closure-library,redforks/closure-library,google/closure-library,google/closure-library,teppeis/closure-library,lucidsoftware/closure-library,platinumpixs/google-closure-library,google/closure-library,Medium/closure-library,ChadKillingsworth/closure-library,teppeis/closure-library