chrome/browser/first_run/first_run_browsertest.cc
// Test an import with all import options disabled. This is a regression test
// for http://crbug.com/169984 where this would cause the import process to
// stay running, and the NTP to be loaded with no apps.
Test an import with all import options disabled.
Test an import with all import options disabled .
IN_PROC_BROWSER_TEST_F(FirstRunMasterPrefsBrowserTest,
                       ImportNothingAndShowNewTabPage) {
  ASSERT_TRUE(ProfileManager::DidPerformProfileImport());
  ui_test_utils::NavigateToURLWithDisposition(
      browser(), GURL(chrome::kChromeUINewTabURL), CURRENT_TAB,
      ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION);
  content::WebContents* tab = browser()->tab_strip_model()->GetWebContentsAt(0);
  EXPECT_EQ(1, tab->GetMaxPageID());
}
IN_PROC_BROWSER_TEST_F ( FirstRunMasterPrefsBrowserTest , ImportNothingAndShowNewTabPage ) { ASSERT_TRUE ( ProfileManager :: DidPerformProfileImport ( ) ) ; ui_test_utils :: NavigateToURLWithDisposition ( browser ( ) , GURL ( chrome :: kChromeUINewTabURL ) , CURRENT_TAB , ui_test_utils :: BROWSER_TEST_WAIT_FOR_NAVIGATION ) ; content :: WebContents * tab = browser ( ) -> tab_strip_model ( ) -> GetWebContentsAt ( 0 ) ; EXPECT_EQ ( 1 , tab -> GetMaxPageID ( ) ) ; }
Test an import with all import options disabled.
Test an import with all import options disabled .