| 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..bf89b2f84e50b7d7dcd7fb6f9175e474a3d2f9c6 100644
|
| --- a/ui/display/chromeos/display_configurator_unittest.cc
|
| +++ b/ui/display/chromeos/display_configurator_unittest.cc
|
| @@ -82,18 +82,6 @@ std::string GetFramebufferAction(const gfx::Size& size,
|
| out2 ? DisplaySnapshotToString(*out2).c_str() : "NULL");
|
| }
|
|
|
| -// Returns a string describing a TestNativeDisplayDelegate::ConfigureCTM() call.
|
| -std::string GetCTMAction(
|
| - int device_id,
|
| - const DisplayConfigurator::CoordinateTransformation& ctm) {
|
| - return base::StringPrintf("ctm(id=%d,transform=(%f,%f,%f,%f))",
|
| - device_id,
|
| - ctm.x_scale,
|
| - ctm.x_offset,
|
| - ctm.y_scale,
|
| - ctm.y_offset);
|
| -}
|
| -
|
| // Returns a string describing a TestNativeDisplayDelegate::SetHDCPState() call.
|
| std::string GetSetHDCPStateAction(const DisplaySnapshot& output,
|
| HDCPState state) {
|
| @@ -154,11 +142,6 @@ class TestTouchscreenDelegate
|
| configure_touchscreens_(false) {}
|
| virtual ~TestTouchscreenDelegate() {}
|
|
|
| - const DisplayConfigurator::CoordinateTransformation& GetCTM(
|
| - int touch_device_id) {
|
| - return ctms_[touch_device_id];
|
| - }
|
| -
|
| void set_configure_touchscreens(bool state) {
|
| configure_touchscreens_ = state;
|
| }
|
| @@ -171,12 +154,6 @@ class TestTouchscreenDelegate
|
| (*outputs)[i].touch_device_id = i + 1;
|
| }
|
| }
|
| - virtual void ConfigureCTM(
|
| - int touch_device_id,
|
| - const DisplayConfigurator::CoordinateTransformation& ctm) OVERRIDE {
|
| - log_->AppendAction(GetCTMAction(touch_device_id, ctm));
|
| - ctms_[touch_device_id] = ctm;
|
| - }
|
|
|
| private:
|
| ActionLogger* log_; // Not owned.
|
| @@ -1242,41 +1219,6 @@ TEST_F(DisplayConfiguratorTest, ContentProtectionTwoClients) {
|
| log_->GetActionsAndClear());
|
| }
|
|
|
| -TEST_F(DisplayConfiguratorTest, CTMForMultiScreens) {
|
| - touchscreen_delegate_->set_configure_touchscreens(true);
|
| - UpdateOutputs(2, false);
|
| - configurator_.Init(false);
|
| - state_controller_.set_state(MULTIPLE_DISPLAY_STATE_DUAL_EXTENDED);
|
| - configurator_.ForceInitialConfigure(0);
|
| -
|
| - const int kDualHeight = small_mode_.size().height() +
|
| - DisplayConfigurator::kVerticalGap +
|
| - big_mode_.size().height();
|
| - const int kDualWidth = big_mode_.size().width();
|
| -
|
| - DisplayConfigurator::CoordinateTransformation ctm1 =
|
| - touchscreen_delegate_->GetCTM(1);
|
| - DisplayConfigurator::CoordinateTransformation ctm2 =
|
| - touchscreen_delegate_->GetCTM(2);
|
| -
|
| - EXPECT_EQ(small_mode_.size().height() - 1,
|
| - round((kDualHeight - 1) * ctm1.y_scale));
|
| - EXPECT_EQ(0, round((kDualHeight - 1) * ctm1.y_offset));
|
| -
|
| - EXPECT_EQ(big_mode_.size().height() - 1,
|
| - round((kDualHeight - 1) * ctm2.y_scale));
|
| - EXPECT_EQ(small_mode_.size().height() + DisplayConfigurator::kVerticalGap,
|
| - round((kDualHeight - 1) * ctm2.y_offset));
|
| -
|
| - EXPECT_EQ(small_mode_.size().width() - 1,
|
| - round((kDualWidth - 1) * ctm1.x_scale));
|
| - EXPECT_EQ(0, round((kDualWidth - 1) * ctm1.x_offset));
|
| -
|
| - EXPECT_EQ(big_mode_.size().width() - 1,
|
| - round((kDualWidth - 1) * ctm2.x_scale));
|
| - EXPECT_EQ(0, round((kDualWidth - 1) * ctm2.x_offset));
|
| -}
|
| -
|
| TEST_F(DisplayConfiguratorTest, HandleConfigureCrtcFailure) {
|
| InitWithSingleOutput();
|
|
|
|
|