Index: chrome/browser/data_use_measurement/chrome_data_use_ascriber_unittest.cc |
diff --git a/chrome/browser/data_use_measurement/chrome_data_use_ascriber_unittest.cc b/chrome/browser/data_use_measurement/chrome_data_use_ascriber_unittest.cc |
index 4221ac0750fb099daf4cb65b736155b25584b447..42745795bdc1b746c3941db5ef5656ba9cd64309 100644 |
--- a/chrome/browser/data_use_measurement/chrome_data_use_ascriber_unittest.cc |
+++ b/chrome/browser/data_use_measurement/chrome_data_use_ascriber_unittest.cc |
@@ -12,6 +12,7 @@ |
#include "components/data_use_measurement/core/data_use_recorder.h" |
#include "content/public/browser/resource_request_info.h" |
#include "content/public/common/browser_side_navigation_policy.h" |
+#include "content/public/common/previews_state.h" |
#include "content/public/common/process_type.h" |
#include "content/public/test/mock_resource_context.h" |
#include "content/public/test/test_browser_thread_bundle.h" |
@@ -57,17 +58,12 @@ class ChromeDataUseAscriberTest : public testing::Test { |
context()->CreateRequest(GURL(url), net::IDLE, nullptr); |
// TODO(kundaji): Allow request_id to be specified in AllocateForTesting. |
content::ResourceRequestInfo::AllocateForTesting( |
- request.get(), |
- content::RESOURCE_TYPE_MAIN_FRAME, |
- resource_context(), |
+ request.get(), content::RESOURCE_TYPE_MAIN_FRAME, resource_context(), |
render_process_id, |
- -1, // render_view_id |
- render_frame_id, |
- is_main_frame, |
- false, // parent_is_main_frame |
- false, // allow_download |
- true, // is_async |
- false); // is_using_lofi |
+ /*render_view_id=*/-1, render_frame_id, is_main_frame, |
+ /*parent_is_main_frame=*/false, |
+ /*allow_download=*/false, |
+ /*is_async=*/true, content::PREVIEWS_OFF); |
return request; |
} |