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

Unified Diff: chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: fix ContentResourceProviderTest Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/data_usage/tab_id_annotator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc
diff --git a/chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc b/chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc
index 59853d335fa2a263affb7678a15e25d94e6a2138..db092ffe5092e34ea680c5cb89343a0ed93a17c9 100644
--- a/chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc
+++ b/chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc
@@ -30,6 +30,7 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/resource_request_info.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/common/previews_state.h"
#include "content/public/common/resource_type.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "net/url_request/url_request.h"
@@ -459,17 +460,13 @@ std::unique_ptr<net::URLRequest> OfflinePageRequestJobTest::CreateRequest(
request->set_method(method);
content::ResourceRequestInfo::AllocateForTesting(
- request.get(),
- resource_type,
- nullptr,
- 1, /* render_process_id */
- -1, /* render_view_id */
- 1, /* render_frame_id */
- true, /* is_main_frame */
- false, /* parent_is_main_frame */
- true, /* allow_download */
- true, /* is_async */
- false /* is_using_lofi */);
+ request.get(), resource_type, nullptr, /*render_process_id=*/1,
+ /*render_view_id=*/-1,
+ /*render_frame_id=*/1,
+ /*is_main_frame=*/true,
+ /*parent_is_main_frame=*/false,
+ /*allow_download=*/true,
+ /*is_async=*/true, content::PREVIEWS_OFF);
return request;
}
« no previous file with comments | « no previous file | chrome/browser/data_usage/tab_id_annotator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698