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

Side by Side Diff: content/browser/loader/resource_scheduler_unittest.cc

Issue 451623002: Getting rid of net::LOAD_ENABLE_LOAD_TIMING (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed content/browser/loader/resource_scheduler_unittest.cc. Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « content/browser/loader/resource_request_info_impl.cc ('k') | content/child/request_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/loader/resource_scheduler.h" 5 #include "content/browser/loader/resource_scheduler.h"
6 6
7 #include "base/memory/scoped_vector.h" 7 #include "base/memory/scoped_vector.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/timer/mock_timer.h" 10 #include "base/timer/mock_timer.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 false, // is_main_frame 175 false, // is_main_frame
176 false, // parent_is_main_frame 176 false, // parent_is_main_frame
177 0, // parent_render_frame_id 177 0, // parent_render_frame_id
178 RESOURCE_TYPE_SUB_RESOURCE, // resource_type 178 RESOURCE_TYPE_SUB_RESOURCE, // resource_type
179 PAGE_TRANSITION_LINK, // transition_type 179 PAGE_TRANSITION_LINK, // transition_type
180 false, // should_replace_current_entry 180 false, // should_replace_current_entry
181 false, // is_download 181 false, // is_download
182 false, // is_stream 182 false, // is_stream
183 true, // allow_download 183 true, // allow_download
184 false, // has_user_gesture 184 false, // has_user_gesture
185 false, // enable_load_timing
185 blink::WebReferrerPolicyDefault, // referrer_policy 186 blink::WebReferrerPolicyDefault, // referrer_policy
186 blink::WebPageVisibilityStateVisible, // visibility_state 187 blink::WebPageVisibilityStateVisible, // visibility_state
187 NULL, // context 188 NULL, // context
188 base::WeakPtr<ResourceMessageFilter>(), // filter 189 base::WeakPtr<ResourceMessageFilter>(), // filter
189 is_async); // is_async 190 is_async); // is_async
190 info->AssociateWithRequest(url_request.get()); 191 info->AssociateWithRequest(url_request.get());
191 return url_request.Pass(); 192 return url_request.Pass();
192 } 193 }
193 194
194 scoped_ptr<net::URLRequest> NewURLRequest(const char* url, 195 scoped_ptr<net::URLRequest> NewURLRequest(const char* url,
(...skipping 1898 matching lines...) Expand 10 before | Expand all | Expand 10 after
2093 FireCoalescingTimer(); 2094 FireCoalescingTimer();
2094 2095
2095 EXPECT_TRUE(high->started()); 2096 EXPECT_TRUE(high->started());
2096 EXPECT_TRUE(high2->started()); 2097 EXPECT_TRUE(high2->started());
2097 EXPECT_TRUE(low->started()); 2098 EXPECT_TRUE(low->started());
2098 } 2099 }
2099 2100
2100 } // unnamed namespace 2101 } // unnamed namespace
2101 2102
2102 } // namespace content 2103 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.cc ('k') | content/child/request_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698