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

Unified Diff: content/browser/loader/mojo_async_resource_handler_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
Index: content/browser/loader/mojo_async_resource_handler_unittest.cc
diff --git a/content/browser/loader/mojo_async_resource_handler_unittest.cc b/content/browser/loader/mojo_async_resource_handler_unittest.cc
index 953095aa69f18c80317277b6394f9fdf57e54ef7..bf7e108d58b2bf0b4afaaf80fc7236cf795fbbea 100644
--- a/content/browser/loader/mojo_async_resource_handler_unittest.cc
+++ b/content/browser/loader/mojo_async_resource_handler_unittest.cc
@@ -26,6 +26,7 @@
#include "content/public/browser/resource_dispatcher_host_delegate.h"
#include "content/public/browser/resource_throttle.h"
#include "content/public/browser/stream_info.h"
+#include "content/public/common/previews_state.h"
#include "content/public/common/resource_response.h"
#include "content/public/common/resource_type.h"
#include "content/public/test/test_browser_context.h"
@@ -142,11 +143,11 @@ class TestResourceDispatcherHostDelegate final
ADD_FAILURE() << "RequestComplete should not be called.";
}
- bool ShouldEnableLoFiMode(
+ PreviewsState GetPreviewsState(
const net::URLRequest& url_request,
content::ResourceContext* resource_context) override {
- ADD_FAILURE() << "ShouldEnableLoFiMode should not be called.";
- return false;
+ ADD_FAILURE() << "GetPreviewsState should not be called.";
+ return PREVIEWS_UNSPECIFIED;
}
NavigationData* GetNavigationData(net::URLRequest* request) const override {
@@ -336,7 +337,7 @@ class MojoAsyncResourceHandlerTestBase {
false, // parent_is_main_frame
false, // allow_download
true, // is_async
- false // is_using_lofi
+ PREVIEWS_OFF // previews_state
);
ResourceRequest request;

Powered by Google App Engine
This is Rietveld 408576698