chrome/browser/ui/toolbar/toolbar_model_unittest.cc
// Test that we replace URLs when the query extraction API is enabled.
Test that we replace URLs when the query extraction API is enabled.
Test that we replace URLs when the query extraction API is enabled .
TEST_F(ToolbarModelTest, ShouldDisplayURLQueryExtractionEnabled) {
  chrome::search::EnableQueryExtractionForTesting();
  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_active,
                         test_item.would_replace,
                         test_item.should_display);
  }
}
TEST_F ( ToolbarModelTest , ShouldDisplayURLQueryExtractionEnabled ) { chrome :: search :: EnableQueryExtractionForTesting ( ) ; 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_active , test_item . would_replace , test_item . should_display ) ; } }
Test that we replace URLs when the query extraction API is enabled.
Test that we replace URLs when the query extraction API is enabled .