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

Unified Diff: ui/views/views_test_suite.h

Issue 2807833002: [views-mus] Prevent creating a native OzonePlatform in mus tests. (Closed)
Patch Set: sky comments Created 3 years, 8 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: ui/views/views_test_suite.h
diff --git a/ui/views/views_test_suite.h b/ui/views/views_test_suite.h
index 7a03f29e7143b8231a7c1c99a5b62d4d1236a451..bea4d2c914edd8f39f91d65ee22907faaf442946 100644
--- a/ui/views/views_test_suite.h
+++ b/ui/views/views_test_suite.h
@@ -30,6 +30,12 @@ class ViewsTestSuite : public base::TestSuite {
void Initialize() override;
void Shutdown() override;
+#if defined(USE_AURA)
+ // Different test suites may wish to create Env differently.
+ virtual void InitializeEnv();
+ virtual void DestroyEnv();
+#endif
+
private:
#if defined(USE_AURA)
std::unique_ptr<aura::Env> env_;

Powered by Google App Engine
This is Rietveld 408576698