Index: net/http/http_network_transaction_unittest.cc |
diff --git a/net/http/http_network_transaction_unittest.cc b/net/http/http_network_transaction_unittest.cc |
index c40596ef3fdcc44a7bdf4ea532f86d470c9749b3..6b6045ea4421975208f01e886977e37bc000c673 100644 |
--- a/net/http/http_network_transaction_unittest.cc |
+++ b/net/http/http_network_transaction_unittest.cc |
@@ -134,7 +134,7 @@ class TestNetworkStreamThrottler : public NetworkThrottleManager { |
void UnthrottleAllRequests() { |
std::set<TestThrottle*> outstanding_throttles_copy(outstanding_throttles_); |
for (auto& throttle : outstanding_throttles_copy) { |
- if (throttle->IsThrottled()) |
+ if (throttle->IsBlocked()) |
throttle->Unthrottle(); |
} |
} |
@@ -161,7 +161,11 @@ class TestNetworkStreamThrottler : public NetworkThrottleManager { |
~TestThrottle() override { throttler_->OnThrottleDestroyed(this); } |
// Throttle |
- bool IsThrottled() const override { return throttled_; } |
+ bool IsBlocked() const override { return throttled_; } |
+ RequestPriority Priority() const override { |
+ NOTREACHED(); |
+ return IDLE; |
+ } |
void SetPriority(RequestPriority priority) override { |
throttler_->SetPriorityCalled(priority); |
} |
@@ -175,7 +179,7 @@ class TestNetworkStreamThrottler : public NetworkThrottleManager { |
EXPECT_TRUE(throttled_); |
throttled_ = false; |
- delegate_->OnThrottleStateChanged(); |
+ delegate_->OnThrottleStateChanged(this); |
} |
bool throttled_; |