chromium/chrome/browser/preloading/prefetch/no_state_prefetch/no_state_prefetch_unit_test_utils.cc

// Copyright 2022 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/preloading/prefetch/no_state_prefetch/no_state_prefetch_unit_test_utils.h"

#include "chrome/browser/preloading/prefetch/no_state_prefetch/chrome_no_state_prefetch_contents_delegate.h"
#include "chrome/browser/preloading/prefetch/no_state_prefetch/chrome_no_state_prefetch_manager_delegate.h"
#include "chrome/browser/profiles/profile.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace prerender {

int FakeNoStatePrefetchContents::g_next_route_id_ =;

FakeNoStatePrefetchContents::FakeNoStatePrefetchContents(
    UnitTestNoStatePrefetchManager* test_no_state_prefetch_manager,
    const GURL& url,
    Origin origin,
    const std::optional<url::Origin>& initiator_origin,
    FinalStatus expected_final_status)
    :{}

FakeNoStatePrefetchContents::~FakeNoStatePrefetchContents() {}

void FakeNoStatePrefetchContents::StartPrerendering(
    const gfx::Rect& bounds,
    content::SessionStorageNamespace* session_storage_namespace,
    base::WeakPtr<content::PreloadingAttempt> preloading_attempt) {}

UnitTestNoStatePrefetchManager::UnitTestNoStatePrefetchManager(Profile* profile)
    :{}

UnitTestNoStatePrefetchManager::~UnitTestNoStatePrefetchManager() {}

void UnitTestNoStatePrefetchManager::Shutdown() {}

void UnitTestNoStatePrefetchManager::MoveEntryToPendingDelete(
    NoStatePrefetchContents* entry,
    FinalStatus final_status) {}

NoStatePrefetchContents* UnitTestNoStatePrefetchManager::FindEntry(
    const GURL& url) {}

std::unique_ptr<NoStatePrefetchContents>
UnitTestNoStatePrefetchManager::FindAndUseEntry(const GURL& url) {}

FakeNoStatePrefetchContents*
UnitTestNoStatePrefetchManager::CreateNextNoStatePrefetchContents(
    const GURL& url,
    FinalStatus expected_final_status) {}

FakeNoStatePrefetchContents*
UnitTestNoStatePrefetchManager::CreateNextNoStatePrefetchContents(
    const GURL& url,
    const std::optional<url::Origin>& initiator_origin,
    Origin origin,
    FinalStatus expected_final_status) {}

FakeNoStatePrefetchContents*
UnitTestNoStatePrefetchManager::CreateNextNoStatePrefetchContents(
    const GURL& url,
    const std::vector<GURL>& alias_urls,
    FinalStatus expected_final_status) {}

void UnitTestNoStatePrefetchManager::set_rate_limit_enabled(bool enabled) {}

NoStatePrefetchContents*
UnitTestNoStatePrefetchManager::next_no_state_prefetch_contents() {}

NoStatePrefetchContents*
UnitTestNoStatePrefetchManager::GetNoStatePrefetchContentsForRoute(
    int child_id,
    int route_id) const {}

void UnitTestNoStatePrefetchManager::FakeNoStatePrefetchContentsStarted(
    int child_id,
    int route_id,
    NoStatePrefetchContents* no_state_prefetch_contents) {}

void UnitTestNoStatePrefetchManager::FakeNoStatePrefetchContentsDestroyed(
    int child_id,
    int route_id) {}

bool UnitTestNoStatePrefetchManager::IsLowEndDevice() const {}

FakeNoStatePrefetchContents*
UnitTestNoStatePrefetchManager::SetNextNoStatePrefetchContents(
    std::unique_ptr<FakeNoStatePrefetchContents> no_state_prefetch_contents) {}

std::unique_ptr<NoStatePrefetchContents>
UnitTestNoStatePrefetchManager::CreateNoStatePrefetchContents(
    const GURL& url,
    const content::Referrer& referrer,
    const std::optional<url::Origin>& initiator_origin,
    Origin origin) {}

}  // namespace prerender