| Index: third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp b/third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp
|
| index 0ecebcffcd3630ea17bd931bfa9c2c6f1c8c7d3f..6d770ec32ef72d129d27d9ebe6eb583ade8df0e1 100644
|
| --- a/third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp
|
| @@ -12,8 +12,9 @@
|
| #include "platform/testing/URLTestHelpers.h"
|
| #include "public/platform/Platform.h"
|
| #include "public/platform/WebPageVisibilityState.h"
|
| -#include "public/platform/WebUnitTestSupport.h"
|
| +#include "public/platform/WebURLLoaderMockFactory.h"
|
| #include "public/platform/modules/wake_lock/WebWakeLockClient.h"
|
| +#include "public/web/WebCache.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "web/WebLocalFrameImpl.h"
|
| #include "web/tests/FrameTestHelpers.h"
|
| @@ -67,7 +68,8 @@ protected:
|
|
|
| void TearDown() override
|
| {
|
| - blink::Platform::current()->unitTestSupport()->unregisterAllMockedURLs();
|
| + blink::Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs();
|
| + blink::WebCache::clear();
|
| }
|
|
|
| void loadFrame()
|
|
|