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

Unified Diff: ui/display/chromeos/display_configurator_unittest.cc

Issue 296183002: Merge 271252 "Fix HDCP in mirror mode." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1985/src/
Patch Set: Created 6 years, 7 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/display/chromeos/display_configurator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/display_configurator_unittest.cc
===================================================================
--- ui/display/chromeos/display_configurator_unittest.cc (revision 272088)
+++ ui/display/chromeos/display_configurator_unittest.cc (working copy)
@@ -350,7 +350,7 @@
software_mirroring_enabled_ = enabled;
}
- bool software_mirroring_enabled() const {
+ virtual bool SoftwareMirroringEnabled() const OVERRIDE {
return software_mirroring_enabled_;
}
@@ -566,7 +566,7 @@
kUngrab,
NULL),
log_->GetActionsAndClear());
- EXPECT_FALSE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_FALSE(mirroring_controller_.SoftwareMirroringEnabled());
EXPECT_EQ(1, observer_.num_changes());
observer_.Reset();
@@ -581,7 +581,7 @@
kUngrab,
NULL),
log_->GetActionsAndClear());
- EXPECT_FALSE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_FALSE(mirroring_controller_.SoftwareMirroringEnabled());
EXPECT_EQ(1, observer_.num_changes());
// Disconnect the second output.
@@ -595,7 +595,7 @@
kUngrab,
NULL),
log_->GetActionsAndClear());
- EXPECT_FALSE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_FALSE(mirroring_controller_.SoftwareMirroringEnabled());
EXPECT_EQ(1, observer_.num_changes());
// Get rid of shared modes to force software mirroring.
@@ -618,14 +618,14 @@
kUngrab,
NULL),
log_->GetActionsAndClear());
- EXPECT_FALSE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_FALSE(mirroring_controller_.SoftwareMirroringEnabled());
observer_.Reset();
EXPECT_TRUE(configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_DUAL_MIRROR));
EXPECT_EQ(JoinActions(kGrab, kUngrab, NULL), log_->GetActionsAndClear());
EXPECT_EQ(MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED,
configurator_.display_state());
- EXPECT_TRUE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_TRUE(mirroring_controller_.SoftwareMirroringEnabled());
EXPECT_EQ(1, observer_.num_changes());
// Setting MULTIPLE_DISPLAY_STATE_DUAL_MIRROR should try to reconfigure.
@@ -633,7 +633,7 @@
EXPECT_TRUE(
configurator_.SetDisplayMode(MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED));
EXPECT_EQ(JoinActions(NULL), log_->GetActionsAndClear());
- EXPECT_FALSE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_FALSE(mirroring_controller_.SoftwareMirroringEnabled());
EXPECT_EQ(1, observer_.num_changes());
// Set back to software mirror mode.
@@ -642,7 +642,7 @@
EXPECT_EQ(JoinActions(kGrab, kUngrab, NULL), log_->GetActionsAndClear());
EXPECT_EQ(MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED,
configurator_.display_state());
- EXPECT_TRUE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_TRUE(mirroring_controller_.SoftwareMirroringEnabled());
EXPECT_EQ(1, observer_.num_changes());
// Disconnect the second output.
@@ -656,7 +656,7 @@
kUngrab,
NULL),
log_->GetActionsAndClear());
- EXPECT_FALSE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_FALSE(mirroring_controller_.SoftwareMirroringEnabled());
EXPECT_EQ(1, observer_.num_changes());
}
@@ -676,7 +676,7 @@
kUngrab,
NULL),
log_->GetActionsAndClear());
- EXPECT_FALSE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_FALSE(mirroring_controller_.SoftwareMirroringEnabled());
EXPECT_EQ(1, observer_.num_changes());
// Turning off the internal display should switch the external display to
@@ -714,7 +714,7 @@
NULL),
log_->GetActionsAndClear());
EXPECT_EQ(MULTIPLE_DISPLAY_STATE_DUAL_MIRROR, configurator_.display_state());
- EXPECT_FALSE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_FALSE(mirroring_controller_.SoftwareMirroringEnabled());
EXPECT_EQ(1, observer_.num_changes());
// Turn all displays on and check that mirroring is still used.
@@ -733,7 +733,7 @@
NULL),
log_->GetActionsAndClear());
EXPECT_EQ(MULTIPLE_DISPLAY_STATE_DUAL_MIRROR, configurator_.display_state());
- EXPECT_FALSE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_FALSE(mirroring_controller_.SoftwareMirroringEnabled());
EXPECT_EQ(1, observer_.num_changes());
// Get rid of shared modes to force software mirroring.
@@ -762,7 +762,7 @@
log_->GetActionsAndClear());
EXPECT_EQ(MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED,
configurator_.display_state());
- EXPECT_TRUE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_TRUE(mirroring_controller_.SoftwareMirroringEnabled());
EXPECT_EQ(1, observer_.num_changes());
// Turning off the internal display should switch the external display to
@@ -783,7 +783,7 @@
NULL),
log_->GetActionsAndClear());
EXPECT_EQ(MULTIPLE_DISPLAY_STATE_SINGLE, configurator_.display_state());
- EXPECT_FALSE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_FALSE(mirroring_controller_.SoftwareMirroringEnabled());
EXPECT_EQ(1, observer_.num_changes());
// When all displays are turned off, the framebuffer should switch back
@@ -809,7 +809,7 @@
log_->GetActionsAndClear());
EXPECT_EQ(MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED,
configurator_.display_state());
- EXPECT_TRUE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_TRUE(mirroring_controller_.SoftwareMirroringEnabled());
EXPECT_EQ(1, observer_.num_changes());
// Turn all displays on and check that mirroring is still used.
@@ -835,7 +835,7 @@
log_->GetActionsAndClear());
EXPECT_EQ(MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED,
configurator_.display_state());
- EXPECT_TRUE(mirroring_controller_.software_mirroring_enabled());
+ EXPECT_TRUE(mirroring_controller_.SoftwareMirroringEnabled());
EXPECT_EQ(1, observer_.num_changes());
}
« no previous file with comments | « ui/display/chromeos/display_configurator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698