Index: third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
diff --git a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
index 98c7e085f98f0791a50a3843352f104f5bf54d89..eefd9c1b0d1d2fcc208ddd041096565dfd42fdb6 100644 |
--- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
@@ -20,6 +20,7 @@ |
#include "platform/geometry/DoubleRect.h" |
#include "platform/testing/URLTestHelpers.h" |
#include "public/platform/Platform.h" |
+#include "public/platform/WebCachePolicy.h" |
#include "public/platform/WebLayerTreeView.h" |
#include "public/platform/WebURLLoaderMockFactory.h" |
#include "public/web/WebCache.h" |
@@ -845,7 +846,7 @@ TEST_P(ParameterizedVisualViewportTest, TestRestoredFromHistoryItem) |
item.setVisualViewportScrollOffset(WebFloatPoint(100, 120)); |
item.setPageScaleFactor(2); |
- FrameTestHelpers::loadHistoryItem(webViewImpl()->mainFrame(), item, WebHistoryDifferentDocumentLoad, WebURLRequest::UseProtocolCachePolicy); |
+ FrameTestHelpers::loadHistoryItem(webViewImpl()->mainFrame(), item, WebHistoryDifferentDocumentLoad, WebCachePolicy::UseProtocolCachePolicy); |
VisualViewport& visualViewport = frame()->page()->frameHost().visualViewport(); |
EXPECT_EQ(2, visualViewport.scale()); |
@@ -872,7 +873,7 @@ TEST_F(VisualViewportTest, TestRestoredFromLegacyHistoryItem) |
item.setScrollOffset(WebPoint(120, 180)); |
item.setPageScaleFactor(2); |
- FrameTestHelpers::loadHistoryItem(webViewImpl()->mainFrame(), item, WebHistoryDifferentDocumentLoad, WebURLRequest::UseProtocolCachePolicy); |
+ FrameTestHelpers::loadHistoryItem(webViewImpl()->mainFrame(), item, WebHistoryDifferentDocumentLoad, WebCachePolicy::UseProtocolCachePolicy); |
VisualViewport& visualViewport = frame()->page()->frameHost().visualViewport(); |
EXPECT_EQ(2, visualViewport.scale()); |