Index: ui/display/chromeos/display_configurator_unittest.cc |
diff --git a/ui/display/chromeos/display_configurator_unittest.cc b/ui/display/chromeos/display_configurator_unittest.cc |
index 1790d669779785e6ab4e18e35d27f9a003d615e5..4e879ef8002fa1267614cac9dd57fdcd74d3a556 100644 |
--- a/ui/display/chromeos/display_configurator_unittest.cc |
+++ b/ui/display/chromeos/display_configurator_unittest.cc |
@@ -376,7 +376,7 @@ class TestMirroringController |
software_mirroring_enabled_ = enabled; |
} |
- bool software_mirroring_enabled() const { |
+ virtual bool SoftwareMirroringEnabled() const OVERRIDE { |
return software_mirroring_enabled_; |
} |
@@ -592,7 +592,7 @@ TEST_F(DisplayConfiguratorTest, ConnectSecondOutput) { |
kUngrab, |
NULL), |
log_->GetActionsAndClear()); |
- EXPECT_FALSE(mirroring_controller_.software_mirroring_enabled()); |
+ EXPECT_FALSE(mirroring_controller_.SoftwareMirroringEnabled()); |
EXPECT_EQ(1, observer_.num_changes()); |
observer_.Reset(); |
@@ -607,7 +607,7 @@ TEST_F(DisplayConfiguratorTest, ConnectSecondOutput) { |
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. |
@@ -621,7 +621,7 @@ TEST_F(DisplayConfiguratorTest, ConnectSecondOutput) { |
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. |
@@ -644,14 +644,14 @@ TEST_F(DisplayConfiguratorTest, ConnectSecondOutput) { |
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. |
@@ -659,7 +659,7 @@ TEST_F(DisplayConfiguratorTest, ConnectSecondOutput) { |
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. |
@@ -668,7 +668,7 @@ TEST_F(DisplayConfiguratorTest, ConnectSecondOutput) { |
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. |
@@ -682,7 +682,7 @@ TEST_F(DisplayConfiguratorTest, ConnectSecondOutput) { |
kUngrab, |
NULL), |
log_->GetActionsAndClear()); |
- EXPECT_FALSE(mirroring_controller_.software_mirroring_enabled()); |
+ EXPECT_FALSE(mirroring_controller_.SoftwareMirroringEnabled()); |
EXPECT_EQ(1, observer_.num_changes()); |
} |
@@ -702,7 +702,7 @@ TEST_F(DisplayConfiguratorTest, SetDisplayPower) { |
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 |
@@ -740,7 +740,7 @@ TEST_F(DisplayConfiguratorTest, SetDisplayPower) { |
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. |
@@ -759,7 +759,7 @@ TEST_F(DisplayConfiguratorTest, SetDisplayPower) { |
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. |
@@ -788,7 +788,7 @@ TEST_F(DisplayConfiguratorTest, SetDisplayPower) { |
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 |
@@ -809,7 +809,7 @@ TEST_F(DisplayConfiguratorTest, SetDisplayPower) { |
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 |
@@ -835,7 +835,7 @@ TEST_F(DisplayConfiguratorTest, SetDisplayPower) { |
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. |
@@ -861,7 +861,7 @@ TEST_F(DisplayConfiguratorTest, SetDisplayPower) { |
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()); |
} |