chromium/chrome/browser/ui/search_engines/search_engine_tab_helper_browsertest.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/search_engines/search_engine_tab_helper.h"

#include <utility>

#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_enums.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/search_engines/template_url.h"
#include "components/search_engines/template_url_service.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/prerender_test_util.h"
#include "content/public/test/test_navigation_observer.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/embedded_test_server/http_request.h"
#include "net/test/embedded_test_server/http_response.h"

BasicHttpResponse;
HttpRequest;
HttpResponse;

namespace {

std::unique_ptr<HttpResponse> HandleRequest(const std::string& match_path,
                                            const std::string& osdd_xml_url,
                                            const HttpRequest& request) {}

class TemplateURLServiceObserver {};

testing::AssertionResult VerifyTemplateURLServiceLoad(
    TemplateURLService* service) {}

}  // namespace

class SearchEngineTabHelperBrowserTest : public InProcessBrowserTest {};

IN_PROC_BROWSER_TEST_F(SearchEngineTabHelperBrowserTest,
                       IgnoreSearchDescriptionsFromFileURLs) {}

class TestSearchEngineTabHelper : public SearchEngineTabHelper {};

class SearchEngineTabHelperPrerenderingBrowserTest
    : public InProcessBrowserTest,
      public testing::WithParamInterface<std::string> {};

INSTANTIATE_TEST_SUITE_P();

IN_PROC_BROWSER_TEST_P(SearchEngineTabHelperPrerenderingBrowserTest,
                       GenerateKeywordInPrerendering) {}

IN_PROC_BROWSER_TEST_P(SearchEngineTabHelperPrerenderingBrowserTest,
                       DeferOSDDRegistrationInPrerendering) {}