| Index: third_party/WebKit/Source/platform/testing/URLTestHelpers.h
|
| diff --git a/third_party/WebKit/Source/platform/testing/URLTestHelpers.h b/third_party/WebKit/Source/platform/testing/URLTestHelpers.h
|
| index 8dccc9cd3aa0e696b807469b6bc1adb931ed6af7..2b4a53e17a04426c851766e411e342d988b794ec 100644
|
| --- a/third_party/WebKit/Source/platform/testing/URLTestHelpers.h
|
| +++ b/third_party/WebKit/Source/platform/testing/URLTestHelpers.h
|
| @@ -33,10 +33,10 @@
|
|
|
| #include "platform/weborigin/KURL.h"
|
| #include "public/platform/WebString.h"
|
| +#include "public/platform/WebURL.h"
|
|
|
| namespace blink {
|
|
|
| -class WebURL;
|
| class WebURLResponse;
|
|
|
| namespace URLTestHelpers {
|
| @@ -49,28 +49,22 @@ inline blink::KURL toKURL(const std::string& url) {
|
| // Helper functions for mock URLs. These functions set up the desired URL and
|
| // mimeType, with a 200 OK return status.
|
| // For the mock URL, fullURL == baseURL + fileName.
|
| -// For the actual file path:
|
| -// <WebKit root directory> + relativeBaseDirectory + fileName,
|
| -// or, if the relative base directory is not specified:
|
| -// <WebKit root directory> + fileName.
|
| -//
|
| -void registerMockedURLFromBaseURL(
|
| +// For the actual file path, filePath == basePath + ("/" +) fileName.
|
| +// |basePath| or |filePath| could be obtained though UnitTestHelpers.
|
| +
|
| +// Returns fullURL that was calculated from |baseURL| and |fileName|.
|
| +WebURL registerMockedURLLoadFromBase(
|
| const WebString& baseURL,
|
| + const WebString& basePath,
|
| const WebString& fileName,
|
| const WebString& mimeType = WebString::fromUTF8("text/html"));
|
| void registerMockedURLLoad(
|
| const WebURL& fullURL,
|
| - const WebString& fileName,
|
| + const WebString& filePath,
|
| const WebString& mimeType = WebString::fromUTF8("text/html"));
|
| -void registerMockedURLLoad(const WebURL& fullURL,
|
| - const WebString& fileName,
|
| - const WebString& relativeBaseDirectory,
|
| - const WebString& mimeType);
|
| -void registerMockedURLLoadWithCustomResponse(
|
| - const WebURL& fullURL,
|
| - const WebString& fileName,
|
| - const WebString& relativeBaseDirectory,
|
| - WebURLResponse);
|
| +void registerMockedURLLoadWithCustomResponse(const WebURL& fullURL,
|
| + const WebString& filePath,
|
| + WebURLResponse);
|
| void registerMockedErrorURLLoad(const WebURL& fullURL);
|
|
|
| } // namespace URLTestHelpers
|
|
|