| 47 | }; |
| 48 | |
| 49 | TEST_F(GcsThrottleTest, ReplenishTokens) { |
| 50 | EXPECT_EQ(0, throttle_.available_tokens()); |
| 51 | time_.AdvanceSeconds(1); |
| 52 | EXPECT_EQ(100000, throttle_.available_tokens()); |
| 53 | time_.AdvanceSeconds(2); |
| 54 | EXPECT_EQ(300000, throttle_.available_tokens()); |
| 55 | } |
| 56 | |
| 57 | TEST_F(GcsThrottleTest, RejectRequest) { |
| 58 | EXPECT_EQ(0, throttle_.available_tokens()); |
nothing calls this directly
no test coverage detected