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 |