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

Unified Diff: ash/test/ash_test_base.cc

Issue 12217120: Add IsInternal property to gfx::Display (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Get rid of static initializer Created 7 years, 10 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: ash/test/ash_test_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index 4cfdac726e09047866495589f9d89c02e4e67fbf..0116710690c5ae948386dd52f7e67953a3308077 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -137,6 +137,9 @@ void AshTestBase::TearDown() {
metro_viewer_host_.reset();
#endif
event_generator_.reset();
+ // Some tests set an internal display id,
+ // reset it here, so other tests will continue in a clean environment.
+ gfx::Display::SetInternalDisplayId(gfx::Display::kInvalidDisplayID);
}
aura::test::EventGenerator& AshTestBase::GetEventGenerator() {

Powered by Google App Engine
This is Rietveld 408576698