| Index: Source/platform/TestingPlatformSupport.h
|
| diff --git a/Source/platform/TestingPlatformSupport.h b/Source/platform/TestingPlatformSupport.h
|
| index 69d8dd123f14a76e002e0d7d2ec30172c9efbe63..6220834676210732131b2d56f1112f6df4179a00 100644
|
| --- a/Source/platform/TestingPlatformSupport.h
|
| +++ b/Source/platform/TestingPlatformSupport.h
|
| @@ -32,7 +32,10 @@
|
| #define TestingPlatformSupport_h
|
|
|
| #include "public/platform/Platform.h"
|
| +#include "public/platform/WebData.h"
|
| #include "public/platform/WebDiscardableMemory.h"
|
| +#include "public/platform/WebString.h"
|
| +#include "public/platform/WebUnitTestSupport.h"
|
| #include "wtf/Vector.h"
|
|
|
| namespace WebCore {
|
| @@ -52,7 +55,7 @@ private:
|
| bool m_isLocked;
|
| };
|
|
|
| -class TestingPlatformSupport : public blink::Platform {
|
| +class TestingPlatformSupport : public blink::Platform, public blink::WebUnitTestSupport {
|
| public:
|
| struct Config {
|
| Config() : hasDiscardableMemorySupport(false) { }
|
| @@ -68,6 +71,11 @@ public:
|
| virtual blink::WebDiscardableMemory* allocateAndLockDiscardableMemory(size_t bytes) OVERRIDE;
|
| virtual void cryptographicallyRandomValues(unsigned char* buffer, size_t length) OVERRIDE;
|
| virtual const unsigned char* getTraceCategoryEnabledFlag(const char* categoryName) OVERRIDE;
|
| + virtual WebUnitTestSupport* unitTestSupport() OVERRIDE;
|
| +
|
| + // blink::WebUnitTestSupport:
|
| + virtual blink::WebString webKitRootDir() OVERRIDE;
|
| + virtual blink::WebData readFromFile(const blink::WebString& path) OVERRIDE;
|
|
|
| private:
|
| const Config m_config;
|
|
|