| Index: sky/engine/core/testing/URLTestHelpers.cpp
|
| diff --git a/sky/engine/core/testing/URLTestHelpers.cpp b/sky/engine/core/testing/URLTestHelpers.cpp
|
| index 0d5b26e5cd813b455bfe45c468fac540d8c811b2..08f76be4a944b9f23e3c208c85a3891686837a8f 100644
|
| --- a/sky/engine/core/testing/URLTestHelpers.cpp
|
| +++ b/sky/engine/core/testing/URLTestHelpers.cpp
|
| @@ -32,7 +32,6 @@
|
|
|
| #include "sky/engine/public/platform/Platform.h"
|
| #include "sky/engine/public/platform/WebURL.h"
|
| -#include "sky/engine/public/platform/WebURLResponse.h"
|
| #include "sky/engine/public/platform/WebUnitTestSupport.h"
|
|
|
| namespace blink {
|
| @@ -52,17 +51,6 @@ void registerMockedURLLoad(const WebURL& fullURL, const WebString& fileName, con
|
|
|
| void registerMockedURLLoad(const WebURL& fullURL, const WebString& fileName, const WebString& relativeBaseDirectory, const WebString& mimeType)
|
| {
|
| - WebURLResponse response(fullURL);
|
| - response.setMIMEType(mimeType);
|
| - response.setHTTPStatusCode(200);
|
| -
|
| - // Physical file path for the mock = <webkitRootDir> + relativeBaseDirectory + fileName.
|
| - std::string filePath = std::string(Platform::current()->unitTestSupport()->webKitRootDir().utf8().data());
|
| - filePath.append("/engine/web/tests/data/");
|
| - filePath.append(std::string(relativeBaseDirectory.utf8().data()));
|
| - filePath.append(std::string(fileName.utf8().data()));
|
| -
|
| - Platform::current()->unitTestSupport()->registerMockedURL(fullURL, response, WebString::fromUTF8(filePath.c_str()));
|
| }
|
|
|
| } // namespace URLTestHelpers
|
|
|