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

Unified Diff: ash/wm/workspace/workspace_window_resizer_unittest.cc

Issue 10870036: Allow storing display preferences per device. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 4 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
Index: ash/wm/workspace/workspace_window_resizer_unittest.cc
diff --git a/ash/wm/workspace/workspace_window_resizer_unittest.cc b/ash/wm/workspace/workspace_window_resizer_unittest.cc
index 393f707111079a26215a9dedacf15897095576ea..e3edf8cdcdcd98c96db397beec96ffef4e93815a 100644
--- a/ash/wm/workspace/workspace_window_resizer_unittest.cc
+++ b/ash/wm/workspace/workspace_window_resizer_unittest.cc
@@ -662,40 +662,40 @@ TEST_F(WorkspaceWindowResizerTest, WarpMousePointer) {
ASSERT_TRUE(controller);
window_->SetBounds(gfx::Rect(0, 0, 50, 60));
- EXPECT_FALSE(controller->dont_warp_mouse_);
+ EXPECT_FALSE(controller->dont_warp_mouse_for_testing());
{
scoped_ptr<WorkspaceWindowResizer> resizer(WorkspaceWindowResizer::Create(
window_.get(), gfx::Point(), HTCAPTION, empty_windows()));
// While dragging a window, warp should be allowed.
- EXPECT_FALSE(controller->dont_warp_mouse_);
+ EXPECT_FALSE(controller->dont_warp_mouse_for_testing());
resizer->CompleteDrag(0);
}
- EXPECT_FALSE(controller->dont_warp_mouse_);
+ EXPECT_FALSE(controller->dont_warp_mouse_for_testing());
{
scoped_ptr<WorkspaceWindowResizer> resizer(WorkspaceWindowResizer::Create(
window_.get(), gfx::Point(), HTCAPTION, empty_windows()));
- EXPECT_FALSE(controller->dont_warp_mouse_);
+ EXPECT_FALSE(controller->dont_warp_mouse_for_testing());
resizer->RevertDrag();
}
- EXPECT_FALSE(controller->dont_warp_mouse_);
+ EXPECT_FALSE(controller->dont_warp_mouse_for_testing());
{
scoped_ptr<WorkspaceWindowResizer> resizer(WorkspaceWindowResizer::Create(
window_.get(), gfx::Point(), HTRIGHT, empty_windows()));
// While resizing a window, warp should NOT be allowed.
- EXPECT_TRUE(controller->dont_warp_mouse_);
+ EXPECT_TRUE(controller->dont_warp_mouse_for_testing());
resizer->CompleteDrag(0);
}
- EXPECT_FALSE(controller->dont_warp_mouse_);
+ EXPECT_FALSE(controller->dont_warp_mouse_for_testing());
{
scoped_ptr<WorkspaceWindowResizer> resizer(WorkspaceWindowResizer::Create(
window_.get(), gfx::Point(), HTRIGHT, empty_windows()));
- EXPECT_TRUE(controller->dont_warp_mouse_);
+ EXPECT_TRUE(controller->dont_warp_mouse_for_testing());
resizer->RevertDrag();
}
- EXPECT_FALSE(controller->dont_warp_mouse_);
+ EXPECT_FALSE(controller->dont_warp_mouse_for_testing());
}
// Verifies windows are correctly restacked when reordering multiple windows.

Powered by Google App Engine
This is Rietveld 408576698