diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-11 14:26:31 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-11 14:26:31 +0000 |
commit | 8c899745075cbd3a3abead137ca0b151529898a2 (patch) | |
tree | c0b33b7b1a0a1b7b430060b78b165e79700d4972 /chrome/browser/notifications | |
parent | 03f7f4f98a9c241ed05862158e10120bfe64472f (diff) | |
download | chromium_src-8c899745075cbd3a3abead137ca0b151529898a2.zip chromium_src-8c899745075cbd3a3abead137ca0b151529898a2.tar.gz chromium_src-8c899745075cbd3a3abead137ca0b151529898a2.tar.bz2 |
[GTTF] Add more NULL-checks to UI tests that were lacking them to avoid crashiness.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/841002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41273 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications')
-rw-r--r-- | chrome/browser/notifications/notifications_uitest.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/notifications/notifications_uitest.cc b/chrome/browser/notifications/notifications_uitest.cc index e6c1d32..66f35dc 100644 --- a/chrome/browser/notifications/notifications_uitest.cc +++ b/chrome/browser/notifications/notifications_uitest.cc @@ -26,7 +26,9 @@ TEST_F(NotificationsPermissionTest, FLAKY_TestUserGestureInfobar) { ASSERT_TRUE(server.get() != NULL); scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0)); + ASSERT_TRUE(browser.get()); scoped_refptr<TabProxy> tab(browser->GetActiveTab()); + ASSERT_TRUE(tab.get()); tab->NavigateToURL(server->TestServerPageW( L"files/notifications/notifications_request_function.html")); WaitUntilTabCount(1); @@ -49,7 +51,9 @@ TEST_F(NotificationsPermissionTest, TestNoUserGestureInfobar) { ASSERT_TRUE(server.get() != NULL); scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0)); + ASSERT_TRUE(browser.get()); scoped_refptr<TabProxy> tab(browser->GetActiveTab()); + ASSERT_TRUE(tab.get()); // Load a page which just does a request; no user gesture should result // in no infobar. |