diff options
| author | finnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-28 22:11:13 +0000 |
|---|---|---|
| committer | finnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-28 22:11:13 +0000 |
| commit | 969ff790df011552be3e8bf70dacd4bf2bd10aa5 (patch) | |
| tree | ff5882d48676b5a113ca55e97f29af36581dc163 /chrome/browser/views | |
| parent | b588b77cec996e3f017344343f85bd5d1fdbb5eb (diff) | |
| download | chromium_src-969ff790df011552be3e8bf70dacd4bf2bd10aa5.zip chromium_src-969ff790df011552be3e8bf70dacd4bf2bd10aa5.tar.gz chromium_src-969ff790df011552be3e8bf70dacd4bf2bd10aa5.tar.bz2 | |
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
Diffstat (limited to 'chrome/browser/views')
| -rw-r--r-- | chrome/browser/views/constrained_window_impl_interactive_uitest.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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<BrowserProxy> popup_browser(automation()->GetBrowserWindow(1)); + ASSERT_TRUE(popup_browser != NULL); scoped_ptr<WindowProxy> 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; |
