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

Side by Side Diff: components/constrained_window/constrained_window_views_unittest.cc

Issue 832953002: Cleanup: Update the path to gfx size headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/constrained_window/constrained_window_views.h" 5 #include "components/constrained_window/constrained_window_views.h"
6 6
7 #include "components/web_modal/test_web_contents_modal_dialog_host.h" 7 #include "components/web_modal/test_web_contents_modal_dialog_host.h"
8 #include "ui/gfx/geometry/point.h" 8 #include "ui/gfx/geometry/point.h"
9 #include "ui/gfx/geometry/rect.h" 9 #include "ui/gfx/geometry/rect.h"
10 #include "ui/gfx/geometry/size.h"
10 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
11 #include "ui/gfx/size.h"
12 #include "ui/views/border.h" 12 #include "ui/views/border.h"
13 #include "ui/views/test/views_test_base.h" 13 #include "ui/views/test/views_test_base.h"
14 #include "ui/views/widget/widget.h" 14 #include "ui/views/widget/widget.h"
15 #include "ui/views/window/dialog_delegate.h" 15 #include "ui/views/window/dialog_delegate.h"
16 16
17 using views::Widget; 17 using views::Widget;
18 18
19 namespace constrained_window { 19 namespace constrained_window {
20 namespace { 20 namespace {
21 21
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 // Increasing the maximum dialog size should bring the dialog back to its 146 // Increasing the maximum dialog size should bring the dialog back to its
147 // original size. 147 // original size.
148 max_dialog_size.Enlarge(100, 100); 148 max_dialog_size.Enlarge(100, 100);
149 dialog_host()->set_max_dialog_size(max_dialog_size); 149 dialog_host()->set_max_dialog_size(max_dialog_size);
150 UpdateWebContentsModalDialogPosition(dialog(), dialog_host()); 150 UpdateWebContentsModalDialogPosition(dialog(), dialog_host());
151 EXPECT_EQ(full_dialog_size.ToString(), GetDialogSize().ToString()); 151 EXPECT_EQ(full_dialog_size.ToString(), GetDialogSize().ToString());
152 } 152 }
153 153
154 } // namespace constrained_window 154 } // namespace constrained_window
OLDNEW
« no previous file with comments | « chromecast/media/cma/test/mock_frame_provider.cc ('k') | components/dom_distiller/core/distiller_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698