Home | History | Annotate | Download | only in tests

Lines Matching refs:browser

15 #include "chrome/browser/platform_util.h"
16 #include "chrome/browser/ui/browser.h"
43 // The browser should quit quickly if it receives a WM_ENDSESSION message.
46 // The browser should quit gracefully and quickly if it receives a SIGTERM.
224 scoped_refptr<BrowserProxy> browser = automation()->GetBrowserWindow(0);
225 ASSERT_TRUE(browser.get());
226 scoped_refptr<TabProxy> tab = browser->GetActiveTab();
265 scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0));
266 ASSERT_TRUE(browser.get());
268 // Check if browser is in fullscreen mode.
270 ASSERT_TRUE(browser->IsFullscreen(&is_visible));
272 ASSERT_TRUE(browser->IsFullscreenBubbleVisible(&is_visible));
304 scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0));
305 ASSERT_TRUE(browser.get());
322 // Test that an application browser window loads correctly.
325 scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0));
326 ASSERT_TRUE(browser.get());
328 // Verify the browser is an application.
329 Browser::Type type;
330 ASSERT_TRUE(browser->GetType(&type));
331 EXPECT_EQ(Browser::TYPE_APP, type);
334 // Tests to ensure that the browser continues running in the background after
344 // Close the browser window, then open a new one - the browser should keep
346 scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0));
347 ASSERT_TRUE(browser.get());
351 ASSERT_TRUE(browser->RunCommand(IDC_CLOSE_WINDOW));
355 ASSERT_TRUE(automation()->OpenNewBrowserWindow(Browser::TYPE_NORMAL, true));
360 // Tests to ensure that the browser continues running in the background after
371 // No browser window should be started by default.
376 // Starting a browser window should work just fine.
378 ASSERT_TRUE(automation()->OpenNewBrowserWindow(Browser::TYPE_NORMAL, true));