diff options
Diffstat (limited to 'Source/WebKit/chromium/tests/FrameTestHelpers.cpp')
-rw-r--r-- | Source/WebKit/chromium/tests/FrameTestHelpers.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/WebKit/chromium/tests/FrameTestHelpers.cpp b/Source/WebKit/chromium/tests/FrameTestHelpers.cpp index ba6666699..e406413dd 100644 --- a/Source/WebKit/chromium/tests/FrameTestHelpers.cpp +++ b/Source/WebKit/chromium/tests/FrameTestHelpers.cpp @@ -31,7 +31,7 @@ #include "config.h" #include "FrameTestHelpers.h" -#include "StdLibExtras.h" +#include <wtf/StdLibExtras.h> #include "WebFrame.h" #include "WebFrameClient.h" #include "WebSettings.h" @@ -48,6 +48,11 @@ namespace FrameTestHelpers { void registerMockedURLLoad(const std::string& base, const std::string& fileName) { + registerMockedURLLoad(GURL(base + fileName), fileName); +} + +void registerMockedURLLoad(GURL url, const std::string& fileName) +{ WebURLResponse response; response.initialize(); response.setMIMEType("text/html"); @@ -56,7 +61,7 @@ void registerMockedURLLoad(const std::string& base, const std::string& fileName) filePath += "/Source/WebKit/chromium/tests/data/"; filePath += fileName; - webkit_support::RegisterMockedURL(GURL(base + fileName), response, WebString::fromUTF8(filePath)); + webkit_support::RegisterMockedURL(url, response, WebString::fromUTF8(filePath)); } void loadFrame(WebFrame* frame, const std::string& url) |