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

Unified Diff: chrome/browser/ui/views/confirm_bubble_views_unittest.cc

Issue 12222003: Rebase ConfirmBubbleViews on DialogDelegateView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ConfirmBubbleViewsTest and remove moot checks. Created 7 years, 10 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
« no previous file with comments | « chrome/browser/ui/views/confirm_bubble_views.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/confirm_bubble_views_unittest.cc
diff --git a/chrome/browser/ui/views/confirm_bubble_views_unittest.cc b/chrome/browser/ui/views/confirm_bubble_views_unittest.cc
index 8995e76e67e81596dca8ec1eaea7caf4f363b775..31f79e45985e4f25c4b39838e9b5e6a8fbaa33c9 100644
--- a/chrome/browser/ui/views/confirm_bubble_views_unittest.cc
+++ b/chrome/browser/ui/views/confirm_bubble_views_unittest.cc
@@ -26,17 +26,9 @@ TEST_F(ConfirmBubbleViewsTest, CreateAndClose) {
bool model_deleted = false;
TestConfirmBubbleModel* model =
new TestConfirmBubbleModel(&model_deleted, NULL, NULL, NULL);
- ConfirmBubbleViews* bubble =
- new ConfirmBubbleViews(parent_widget->GetNativeView(),
- gfx::Point(12, 34),
- model);
- views::BubbleDelegateView::CreateBubble(bubble);
- bubble->Show();
-
- // We're anchored to a point, not a specific view or widget.
- EXPECT_EQ("12,34", bubble->anchor_point().ToString());
- EXPECT_FALSE(bubble->anchor_view());
- EXPECT_FALSE(bubble->anchor_widget());
+ ConfirmBubbleViews* bubble = new ConfirmBubbleViews(model);
+ gfx::NativeView parent = parent_widget->GetNativeView();
+ views::DialogDelegateView::CreateDialogWidget(bubble, NULL, parent)->Show();
rpetterson 2013/02/12 00:28:20 You don't need any checks about placement here?
msw 2013/02/12 00:40:12 There is no anchor view/point to check since it's
Mike Wittman 2013/02/12 00:49:57 Ultimately tab-constrained dialog positioning will
// Clean up.
bubble->GetWidget()->CloseNow();
« no previous file with comments | « chrome/browser/ui/views/confirm_bubble_views.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698