#include <string>
#include "chrome/browser/preloading/chrome_preloading.h"
#include "chrome/browser/preloading/prerender/prerender_manager.h"
#include "chrome/browser/preloading/prerender/prerender_utils.h"
#include "chrome/browser/search_engines/template_url_service_factory_test_util.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "components/search_engines/template_url_service.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/preloading_test_util.h"
#include "content/public/test/prerender_test_util.h"
#include "content/public/test/web_contents_tester.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
class PrerenderManagerTest : public ChromeRenderViewHostTestHarness { … };
TEST_F(PrerenderManagerTest, StartCleanSearchSuggestionPrerender) { … }
TEST_F(PrerenderManagerTest, StartNewSuggestionPrerender) { … }
TEST_F(PrerenderManagerTest, StartSameSuggestionPrerender) { … }
TEST_F(PrerenderManagerTest, StartCleanPrerenderDirectUrlInput) { … }
TEST_F(PrerenderManagerTest, StartNewPrerenderDirectUrlInput) { … }
enum TriggerType { … };
class PrerenderManagerBasicRequirementTest
: public testing::WithParamInterface<TriggerType>,
public PrerenderManagerTest { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(PrerenderManagerBasicRequirementTest, NavigateAway) { … }
}