| 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 b400edc6827a10b9c60692b6e61f5a51fa869246..15df79c3bfcaffc07fcdab919ace21414f9811eb 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/WebUnitTestSupport.h"
|
| #include "public/web/WebContextMenuData.h"
|
| @@ -843,7 +844,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());
|
| @@ -870,7 +871,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());
|
|
|