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

Unified Diff: Source/platform/TestingPlatformSupport.h

Issue 316343004: Add unittest for OpenTypeSanitizer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: PLATFORM_EXPORT for tests Created 6 years, 6 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
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;
« no previous file with comments | « no previous file | Source/platform/TestingPlatformSupport.cpp » ('j') | Source/platform/TestingPlatformSupport.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698