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

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

Issue 2199493002: libFuzzer for blink::MHTMLParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from esprehn@. Created 4 years, 4 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: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
diff --git a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
index bc5b15b42161526deab638629d44185f93e9e156..b4f6910c5da27c48848dffd6fe5458124e57c994 100644
--- a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
+++ b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h
@@ -39,6 +39,14 @@
#include "wtf/Vector.h"
#include <memory>
+namespace base {
+class TestDiscardableMemoryAllocator;
+} // namespace base
+
+namespace cc_blink {
+class WebCompositorSupportImpl;
+} // namespace cc_blink
+
namespace blink {
class TestingPlatformMockWebTaskRunner;
@@ -116,6 +124,21 @@ protected:
std::unique_ptr<TestingPlatformMockWebThread> m_mockWebThread;
};
+class ScopedUnittestsEnvironmentSetup {
+ WTF_MAKE_NONCOPYABLE(ScopedUnittestsEnvironmentSetup);
+public:
+ ScopedUnittestsEnvironmentSetup(int argc, char** argv);
+ ~ScopedUnittestsEnvironmentSetup();
+
+private:
+ class DummyPlatform;
+ std::unique_ptr<base::TestDiscardableMemoryAllocator> m_discardableMemoryAllocator;
+ std::unique_ptr<DummyPlatform> m_platform;
+ std::unique_ptr<cc_blink::WebCompositorSupportImpl> m_compositorSupport;
+ TestingPlatformSupport::Config m_testingPlatformConfig;
+ std::unique_ptr<TestingPlatformSupport> m_testingPlatformSupport;
+};
+
} // namespace blink
#endif // TestingPlatformSupport_h

Powered by Google App Engine
This is Rietveld 408576698