chrome/browser/ui/toolbar/toolbar_model_unittest.cc
// Test that we don't replace any URLs when the query extraction is disabled.
Test that we don't replace any URLs when the query extraction is disabled.
Test that we don ' t replace any URLs when the query extraction is disabled .
TEST_F(ToolbarModelTest, ShouldDisplayURLQueryExtractionDisabled) {
  ASSERT_FALSE(chrome::search::IsQueryExtractionEnabled(profile()))
      << "This test expects query extraction to be disabled.";
  ResetDefaultTemplateURL();
  AddTab(browser(), GURL(chrome::kAboutBlankURL));
  for (size_t i = 0; i < arraysize(test_items); ++i) {
    const TestItem& test_item = test_items[i];
    NavigateAndCheckText(test_item.url,
                         test_item.expected_text,
                         test_item.expected_replace_text_inactive,
                         false,
                         test_item.should_display);
  }
}
TEST_F ( ToolbarModelTest , ShouldDisplayURLQueryExtractionDisabled ) { ASSERT_FALSE ( chrome :: search :: IsQueryExtractionEnabled ( profile ( ) ) ) << " " ; ResetDefaultTemplateURL ( ) ; AddTab ( browser ( ) , GURL ( chrome :: kAboutBlankURL ) ) ; for ( size_t i = 0 ; i < arraysize ( test_items ) ; ++ i ) { const TestItem & test_item = test_items [ i ] ; NavigateAndCheckText ( test_item . url , test_item . expected_text , test_item . expected_replace_text_inactive , false , test_item . should_display ) ; } }
Test that we don't replace any URLs when the query extraction is disabled.
Test that we don ' t replace any URLs when the query extraction is disabled .