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

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

Issue 13896026: Stick windows to sides of workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dock with zero width (comments on unit tests) Created 7 years, 6 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 7ad9fde8cc9cd2581569bd52531f85dc0bcce888..f97f8b1aab3989486822eb941dfdae39eae3df4f 100644
--- a/ash/wm/workspace/workspace_window_resizer_unittest.cc
+++ b/ash/wm/workspace/workspace_window_resizer_unittest.cc
@@ -65,6 +65,8 @@ class TestWindowDelegate : public aura::test::TestWindowDelegate {
DISALLOW_COPY_AND_ASSIGN(TestWindowDelegate);
};
+} // namespace
+
class WorkspaceWindowResizerTest : public test::AshTestBase {
public:
WorkspaceWindowResizerTest() {}
@@ -137,7 +139,7 @@ class WorkspaceWindowResizerTest : public test::AshTestBase {
gfx::Point CalculateDragPoint(const WorkspaceWindowResizer& resizer,
int delta_x,
int delta_y) const {
- gfx::Point location = resizer.GetInitialLocationInParentForTest();
+ gfx::Point location = resizer.GetInitialLocationForTest();
location.set_x(location.x() + delta_x);
location.set_y(location.y() + delta_y);
return location;
@@ -179,8 +181,6 @@ class WorkspaceWindowResizerTestSticky : public WorkspaceWindowResizerTest {
DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizerTestSticky);
};
-} // namespace
-
// Assertions around attached window resize dragging from the right with 2
// windows.
TEST_F(WorkspaceWindowResizerTest, AttachedResize_RIGHT_2) {
« ash/wm/panels/panel_window_resizer.h ('K') | « ash/wm/workspace/workspace_window_resizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698