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

Unified Diff: components/data_reduction_proxy/content/browser/content_lofi_ui_service_unittest.cc

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: rebase Created 4 years 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: components/data_reduction_proxy/content/browser/content_lofi_ui_service_unittest.cc
diff --git a/components/data_reduction_proxy/content/browser/content_lofi_ui_service_unittest.cc b/components/data_reduction_proxy/content/browser/content_lofi_ui_service_unittest.cc
index ee9affb9e44f6012437ae31aa5216b07d4cf8bbd..8349d9a58289ceb45165b0a95878ef40811db0b4 100644
--- a/components/data_reduction_proxy/content/browser/content_lofi_ui_service_unittest.cc
+++ b/components/data_reduction_proxy/content/browser/content_lofi_ui_service_unittest.cc
@@ -17,6 +17,7 @@
#include "content/public/browser/render_process_host.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/test/test_renderer_host.h"
#include "net/socket/socket_test_util.h"
#include "net/url_request/url_request.h"
@@ -72,11 +73,11 @@ class ContentLoFiUIServiceTest : public content::RenderViewHostTestHarness {
request.get(), content::RESOURCE_TYPE_SUB_FRAME, NULL,
web_contents()->GetMainFrame()->GetProcess()->GetID(), -1,
web_contents()->GetMainFrame()->GetRoutingID(),
- false, // is_main_frame
- false, // parent_is_main_frame
- false, // allow_download
- false, // is_async
- true); // is_using_lofi
+ false, // is_main_frame
+ false, // parent_is_main_frame
+ false, // allow_download
+ false, // is_async
+ content::SERVER_LOFI_ON); // previews_state
Nico 2017/01/09 22:35:03 ditto
megjablon 2017/01/10 22:30:01 Done.
return request;
}

Powered by Google App Engine
This is Rietveld 408576698