Chromium Code Reviews| 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..c6012835a129a2fa92ea6ec7d133072c5fac91d9 100644 |
| --- a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h |
| +++ b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h |
| @@ -116,6 +116,22 @@ protected: |
| std::unique_ptr<TestingPlatformMockWebThread> m_mockWebThread; |
| }; |
| +class ScopedUnittestsEnvironmentSetup { |
| + WTF_MAKE_NONCOPYABLE(ScopedUnittestsEnvironmentSetup); |
| +public: |
| + enum class TestType { |
| + UnitTests, |
| + LibFuzzer, |
|
esprehn
2016/08/04 04:37:53
I'd rather not do this, what code are you trying t
Łukasz Anforowicz
2016/08/04 17:37:30
I am trying to 1) consolidate all one-time test se
|
| + }; |
| + |
| + ScopedUnittestsEnvironmentSetup(int argc, char** argv, TestType); |
| + ~ScopedUnittestsEnvironmentSetup(); |
| + |
| +private: |
| + class Impl; |
|
esprehn
2016/08/04 04:37:53
Why do you need the nested class? Maybe you want D
Łukasz Anforowicz
2016/08/04 17:37:30
I wanted to avoid including base/ headers from Tes
|
| + std::unique_ptr<Impl> m_impl; |
| +}; |
| + |
| } // namespace blink |
| #endif // TestingPlatformSupport_h |