From 969ff790df011552be3e8bf70dacd4bf2bd10aa5 Mon Sep 17 00:00:00 2001 From: "finnur@google.com" Date: Thu, 28 Aug 2008 22:11:13 +0000 Subject: We should not EXPECT to get a browser object or a window object, we should ASSERT that we got it (which ends the test on NULL pointers). Otherwise we continue on and crash when we try to use these pointers, such as when passing it into GetBrowserForWindow. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1508 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/constrained_window_impl_interactive_uitest.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/browser/views') diff --git a/chrome/browser/views/constrained_window_impl_interactive_uitest.cc b/chrome/browser/views/constrained_window_impl_interactive_uitest.cc index 3674403..7f39d1b 100644 --- a/chrome/browser/views/constrained_window_impl_interactive_uitest.cc +++ b/chrome/browser/views/constrained_window_impl_interactive_uitest.cc @@ -56,8 +56,10 @@ TEST_F(InteractiveConstrainedWindowTest, TestOpenAndResizeTo) { ASSERT_TRUE(automation()->WaitForWindowCountToBecome(2, 1000)); scoped_ptr popup_browser(automation()->GetBrowserWindow(1)); + ASSERT_TRUE(popup_browser != NULL); scoped_ptr popup_window( automation()->GetWindowForBrowser(popup_browser.get())); + ASSERT_TRUE(popup_window != NULL); // Make sure we were created with the correct width and height. gfx::Rect rect; -- cgit v1.1