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

Unified Diff: sky/engine/core/testing/URLTestHelpers.cpp

Issue 1239633002: Remove //sky/engine/platform/network (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase Created 5 years, 5 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
« no previous file with comments | « sky/engine/core/loader/FrameLoaderClient.h ('k') | sky/engine/platform/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « sky/engine/core/loader/FrameLoaderClient.h ('k') | sky/engine/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698