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

Unified Diff: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h

Issue 1456873003: More regular Platform implementations in unit tests (reland.) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: have GN disable c4267 also Created 5 years, 1 month 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: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
diff --git a/third_party/WebKit/Source/platform/TestingPlatformSupport.h b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
similarity index 94%
rename from third_party/WebKit/Source/platform/TestingPlatformSupport.h
rename to third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
index cdb74e3ef41ef46ab0f73336a7d8905cdc151c3d..e1d5a49e99ef0cc7274c505612f7756634d7a713 100644
--- a/third_party/WebKit/Source/platform/TestingPlatformSupport.h
+++ b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
@@ -31,12 +31,16 @@
#ifndef TestingPlatformSupport_h
#define TestingPlatformSupport_h
+#include "platform/PlatformExport.h"
#include "public/platform/Platform.h"
#include "public/platform/WebDiscardableMemory.h"
#include "wtf/Vector.h"
namespace blink {
+class WebCompositorSupport;
+class WebThread;
+
class TestingDiscardableMemory : public WebDiscardableMemory {
public:
explicit TestingDiscardableMemory(size_t);
@@ -64,6 +68,7 @@ public:
WebCompositorSupport* compositorSupport;
};
+ TestingPlatformSupport();
explicit TestingPlatformSupport(const Config&);
~TestingPlatformSupport() override;
@@ -74,8 +79,9 @@ public:
const unsigned char* getTraceCategoryEnabledFlag(const char* categoryName) override;
WebString defaultLocale() override;
WebCompositorSupport* compositorSupport() override;
+ WebThread* currentThread() override;
-private:
+protected:
const Config m_config;
Platform* const m_oldPlatform;
};

Powered by Google App Engine
This is Rietveld 408576698