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

Unified Diff: ui/ozone/platform/dri/screen_manager_unittest.cc

Issue 548613002: Revert of [Ozone-GBM] Handle GPU crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « ui/ozone/platform/dri/screen_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/screen_manager_unittest.cc
diff --git a/ui/ozone/platform/dri/screen_manager_unittest.cc b/ui/ozone/platform/dri/screen_manager_unittest.cc
index 8eda243f66bc82c00a46735fe284ae05755a85d6..f98f5c095d50600658093f193b6af3364444ece2 100644
--- a/ui/ozone/platform/dri/screen_manager_unittest.cc
+++ b/ui/ozone/platform/dri/screen_manager_unittest.cc
@@ -75,7 +75,6 @@
}
TEST_F(ScreenManagerTest, CheckWithValidController) {
- screen_manager_->AddDisplayController(kPrimaryCrtc, kPrimaryConnector);
screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
kPrimaryConnector,
GetPrimaryBounds().origin(),
@@ -88,7 +87,6 @@
}
TEST_F(ScreenManagerTest, CheckWithInvalidBounds) {
- screen_manager_->AddDisplayController(kPrimaryCrtc, kPrimaryConnector);
screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
kPrimaryConnector,
GetPrimaryBounds().origin(),
@@ -99,23 +97,18 @@
}
TEST_F(ScreenManagerTest, CheckForSecondValidController) {
- screen_manager_->AddDisplayController(kPrimaryCrtc, kPrimaryConnector);
- screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
- kPrimaryConnector,
- GetPrimaryBounds().origin(),
- kDefaultMode);
- screen_manager_->AddDisplayController(kSecondaryCrtc, kSecondaryConnector);
- screen_manager_->ConfigureDisplayController(kSecondaryCrtc,
- kSecondaryConnector,
- GetSecondaryBounds().origin(),
- kDefaultMode);
+ screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
+ kPrimaryConnector,
+ GetPrimaryBounds().origin(),
+ kDefaultMode);
+ screen_manager_->ConfigureDisplayController(
+ 3, 4, GetSecondaryBounds().origin(), kDefaultMode);
EXPECT_TRUE(screen_manager_->GetDisplayController(GetPrimaryBounds()));
EXPECT_TRUE(screen_manager_->GetDisplayController(GetSecondaryBounds()));
}
TEST_F(ScreenManagerTest, CheckControllerAfterItIsRemoved) {
- screen_manager_->AddDisplayController(kPrimaryCrtc, kPrimaryConnector);
screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
kPrimaryConnector,
GetPrimaryBounds().origin(),
@@ -129,7 +122,6 @@
}
TEST_F(ScreenManagerTest, CheckDuplicateConfiguration) {
- screen_manager_->AddDisplayController(kPrimaryCrtc, kPrimaryConnector);
screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
kPrimaryConnector,
GetPrimaryBounds().origin(),
@@ -144,7 +136,6 @@
}
TEST_F(ScreenManagerTest, CheckChangingMode) {
- screen_manager_->AddDisplayController(kPrimaryCrtc, kPrimaryConnector);
screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
kPrimaryConnector,
GetPrimaryBounds().origin(),
@@ -164,12 +155,10 @@
}
TEST_F(ScreenManagerTest, CheckForControllersInMirroredMode) {
- screen_manager_->AddDisplayController(kPrimaryCrtc, kPrimaryConnector);
- screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
- kPrimaryConnector,
- GetPrimaryBounds().origin(),
- kDefaultMode);
- screen_manager_->AddDisplayController(kSecondaryCrtc, kSecondaryConnector);
+ screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
+ kPrimaryConnector,
+ GetPrimaryBounds().origin(),
+ kDefaultMode);
screen_manager_->ConfigureDisplayController(kSecondaryCrtc,
kSecondaryConnector,
GetPrimaryBounds().origin(),
@@ -180,12 +169,10 @@
}
TEST_F(ScreenManagerTest, CheckMirrorModeTransitions) {
- screen_manager_->AddDisplayController(kPrimaryCrtc, kPrimaryConnector);
- screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
- kPrimaryConnector,
- GetPrimaryBounds().origin(),
- kDefaultMode);
- screen_manager_->AddDisplayController(kSecondaryCrtc, kSecondaryConnector);
+ screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
+ kPrimaryConnector,
+ GetPrimaryBounds().origin(),
+ kDefaultMode);
screen_manager_->ConfigureDisplayController(kSecondaryCrtc,
kSecondaryConnector,
GetSecondaryBounds().origin(),
@@ -218,12 +205,10 @@
}
TEST_F(ScreenManagerTest, MonitorGoneInMirrorMode) {
- screen_manager_->AddDisplayController(kPrimaryCrtc, kPrimaryConnector);
- screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
- kPrimaryConnector,
- GetPrimaryBounds().origin(),
- kDefaultMode);
- screen_manager_->AddDisplayController(kSecondaryCrtc, kSecondaryConnector);
+ screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
+ kPrimaryConnector,
+ GetPrimaryBounds().origin(),
+ kDefaultMode);
screen_manager_->ConfigureDisplayController(kSecondaryCrtc,
kSecondaryConnector,
GetPrimaryBounds().origin(),
« no previous file with comments | « ui/ozone/platform/dri/screen_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698