Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2122)

Unified Diff: net/url_request/url_request_throttler_unittest.cc

Issue 51683002: [Net] Assert that URLRequests with LOAD_IGNORE_LIMITS have MAXIMUM_PRIORITY (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/url_request/url_request_throttler_unittest.cc
diff --git a/net/url_request/url_request_throttler_unittest.cc b/net/url_request/url_request_throttler_unittest.cc
index e47da30ef9a507cec0d3bf9e5b6f8e7e4e212dcf..4c430563db61c3433e2934ba155f475a2914dd10 100644
--- a/net/url_request/url_request_throttler_unittest.cc
+++ b/net/url_request/url_request_throttler_unittest.cc
@@ -202,7 +202,7 @@ const char* kHistogramNames[] = {
};
void URLRequestThrottlerEntryTest::SetUp() {
- request_.set_load_flags(0);
+ request_.SetLoadFlags(0);
now_ = TimeTicks::Now();
entry_ = new MockURLRequestThrottlerEntry(&manager_);
@@ -257,7 +257,7 @@ TEST_F(URLRequestThrottlerEntryTest, InterfaceDuringExponentialBackoff) {
EXPECT_TRUE(entry_->ShouldRejectRequest(request_));
// Also end-to-end test the load flags exceptions.
- request_.set_load_flags(LOAD_MAYBE_USER_GESTURE);
+ request_.SetLoadFlags(LOAD_MAYBE_USER_GESTURE);
EXPECT_FALSE(entry_->ShouldRejectRequest(request_));
CalculateHistogramDeltas();
@@ -395,7 +395,7 @@ class URLRequestThrottlerManagerTest : public testing::Test {
}
virtual void SetUp() {
- request_.set_load_flags(0);
+ request_.SetLoadFlags(0);
}
// context_ must be declared before request_.

Powered by Google App Engine
This is Rietveld 408576698