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

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

Issue 698293002: ozone: Add PRESUBMIT.py to check patch formatting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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') | ui/ozone/platform/egltest/ozone_platform_egltest.cc » ('j') | 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 1ee000602413795b56ccbc0e8242f7e560964473..3851a7dd6970d41e5b978ceaeac5dd8e34e028cd 100644
--- a/ui/ozone/platform/dri/screen_manager_unittest.cc
+++ b/ui/ozone/platform/dri/screen_manager_unittest.cc
@@ -75,8 +75,8 @@ TEST_F(ScreenManagerTest, CheckWithNoControllers) {
}
TEST_F(ScreenManagerTest, CheckWithValidController) {
- screen_manager_->AddDisplayController(
- dri_.get(), kPrimaryCrtc, kPrimaryConnector);
+ screen_manager_->AddDisplayController(dri_.get(), kPrimaryCrtc,
+ kPrimaryConnector);
screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
kPrimaryConnector,
GetPrimaryBounds().origin(),
@@ -89,8 +89,8 @@ TEST_F(ScreenManagerTest, CheckWithValidController) {
}
TEST_F(ScreenManagerTest, CheckWithInvalidBounds) {
- screen_manager_->AddDisplayController(
- dri_.get(), kPrimaryCrtc, kPrimaryConnector);
+ screen_manager_->AddDisplayController(dri_.get(), kPrimaryCrtc,
+ kPrimaryConnector);
screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
kPrimaryConnector,
GetPrimaryBounds().origin(),
@@ -101,26 +101,25 @@ TEST_F(ScreenManagerTest, CheckWithInvalidBounds) {
}
TEST_F(ScreenManagerTest, CheckForSecondValidController) {
- screen_manager_->AddDisplayController(
- dri_.get(), kPrimaryCrtc, kPrimaryConnector);
+ screen_manager_->AddDisplayController(dri_.get(), kPrimaryCrtc,
+ kPrimaryConnector);
screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
kPrimaryConnector,
GetPrimaryBounds().origin(),
kDefaultMode);
- screen_manager_->AddDisplayController(
- dri_.get(), kSecondaryCrtc, kSecondaryConnector);
- screen_manager_->ConfigureDisplayController(kSecondaryCrtc,
- kSecondaryConnector,
- GetSecondaryBounds().origin(),
- kDefaultMode);
+ screen_manager_->AddDisplayController(dri_.get(), kSecondaryCrtc,
+ kSecondaryConnector);
+ screen_manager_->ConfigureDisplayController(
+ kSecondaryCrtc, kSecondaryConnector, GetSecondaryBounds().origin(),
+ kDefaultMode);
EXPECT_TRUE(screen_manager_->GetDisplayController(GetPrimaryBounds()));
EXPECT_TRUE(screen_manager_->GetDisplayController(GetSecondaryBounds()));
}
TEST_F(ScreenManagerTest, CheckControllerAfterItIsRemoved) {
- screen_manager_->AddDisplayController(
- dri_.get(), kPrimaryCrtc, kPrimaryConnector);
+ screen_manager_->AddDisplayController(dri_.get(), kPrimaryCrtc,
+ kPrimaryConnector);
screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
kPrimaryConnector,
GetPrimaryBounds().origin(),
@@ -134,8 +133,8 @@ TEST_F(ScreenManagerTest, CheckControllerAfterItIsRemoved) {
}
TEST_F(ScreenManagerTest, CheckDuplicateConfiguration) {
- screen_manager_->AddDisplayController(
- dri_.get(), kPrimaryCrtc, kPrimaryConnector);
+ screen_manager_->AddDisplayController(dri_.get(), kPrimaryCrtc,
+ kPrimaryConnector);
screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
kPrimaryConnector,
GetPrimaryBounds().origin(),
@@ -150,8 +149,8 @@ TEST_F(ScreenManagerTest, CheckDuplicateConfiguration) {
}
TEST_F(ScreenManagerTest, CheckChangingMode) {
- screen_manager_->AddDisplayController(
- dri_.get(), kPrimaryCrtc, kPrimaryConnector);
+ screen_manager_->AddDisplayController(dri_.get(), kPrimaryCrtc,
+ kPrimaryConnector);
screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
kPrimaryConnector,
GetPrimaryBounds().origin(),
@@ -171,14 +170,14 @@ TEST_F(ScreenManagerTest, CheckChangingMode) {
}
TEST_F(ScreenManagerTest, CheckForControllersInMirroredMode) {
- screen_manager_->AddDisplayController(
- dri_.get(), kPrimaryCrtc, kPrimaryConnector);
+ screen_manager_->AddDisplayController(dri_.get(), kPrimaryCrtc,
+ kPrimaryConnector);
screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
kPrimaryConnector,
GetPrimaryBounds().origin(),
kDefaultMode);
- screen_manager_->AddDisplayController(
- dri_.get(), kSecondaryCrtc, kSecondaryConnector);
+ screen_manager_->AddDisplayController(dri_.get(), kSecondaryCrtc,
+ kSecondaryConnector);
screen_manager_->ConfigureDisplayController(kSecondaryCrtc,
kSecondaryConnector,
GetPrimaryBounds().origin(),
@@ -189,14 +188,14 @@ TEST_F(ScreenManagerTest, CheckForControllersInMirroredMode) {
}
TEST_F(ScreenManagerTest, CheckMirrorModeTransitions) {
- screen_manager_->AddDisplayController(
- dri_.get(), kPrimaryCrtc, kPrimaryConnector);
+ screen_manager_->AddDisplayController(dri_.get(), kPrimaryCrtc,
+ kPrimaryConnector);
screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
kPrimaryConnector,
GetPrimaryBounds().origin(),
kDefaultMode);
- screen_manager_->AddDisplayController(
- dri_.get(), kSecondaryCrtc, kSecondaryConnector);
+ screen_manager_->AddDisplayController(dri_.get(), kSecondaryCrtc,
+ kSecondaryConnector);
screen_manager_->ConfigureDisplayController(kSecondaryCrtc,
kSecondaryConnector,
GetSecondaryBounds().origin(),
@@ -229,14 +228,14 @@ TEST_F(ScreenManagerTest, CheckMirrorModeTransitions) {
}
TEST_F(ScreenManagerTest, MonitorGoneInMirrorMode) {
- screen_manager_->AddDisplayController(
- dri_.get(), kPrimaryCrtc, kPrimaryConnector);
+ screen_manager_->AddDisplayController(dri_.get(), kPrimaryCrtc,
+ kPrimaryConnector);
screen_manager_->ConfigureDisplayController(kPrimaryCrtc,
kPrimaryConnector,
GetPrimaryBounds().origin(),
kDefaultMode);
- screen_manager_->AddDisplayController(
- dri_.get(), kSecondaryCrtc, kSecondaryConnector);
+ screen_manager_->AddDisplayController(dri_.get(), kSecondaryCrtc,
+ kSecondaryConnector);
screen_manager_->ConfigureDisplayController(kSecondaryCrtc,
kSecondaryConnector,
GetPrimaryBounds().origin(),
« no previous file with comments | « ui/ozone/platform/dri/screen_manager.cc ('k') | ui/ozone/platform/egltest/ozone_platform_egltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698