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

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: Don't call base::i18n::InitializeICU during setup of regular unit tests. 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..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

Powered by Google App Engine
This is Rietveld 408576698