chromium/components/guest_view/browser/test_guest_view_manager.cc

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

#include "components/guest_view/browser/test_guest_view_manager.h"

#include <memory>
#include <utility>

#include "base/task/single_thread_task_runner.h"
#include "base/test/run_until.h"
#include "components/guest_view/browser/guest_view_base.h"
#include "components/guest_view/browser/guest_view_manager_delegate.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test_utils.h"

namespace {
// Returns the current RFH owned by the FrameTreeNode, denoted by
// |frame_tree_node_id|.
content::RenderFrameHost* GetCurrentGuestMainRenderFrameHost(
    int frame_tree_node_id) {}
}  // namespace

namespace guest_view {

TestGuestViewManager::TestGuestViewManager(
    content::BrowserContext* context,
    std::unique_ptr<GuestViewManagerDelegate> delegate)
    :{}

TestGuestViewManager::~TestGuestViewManager() = default;

size_t TestGuestViewManager::GetCurrentGuestCount() const {}

size_t TestGuestViewManager::GetNumRemovedInstanceIDs() const {}

content::RenderFrameHost*
TestGuestViewManager::GetLastGuestRenderFrameHostCreated() {}

content::WebContents* TestGuestViewManager::DeprecatedGetLastGuestCreated() {}

GuestViewBase* TestGuestViewManager::GetLastGuestViewCreated() {}

void TestGuestViewManager::WaitForAllGuestsDeleted() {}

void TestGuestViewManager::WaitForFirstGuestDeleted() {}

void TestGuestViewManager::WaitForLastGuestDeleted() {}

content::RenderFrameHost*
TestGuestViewManager::WaitForSingleGuestRenderFrameHostCreated() {}

content::WebContents*
TestGuestViewManager::DeprecatedWaitForSingleGuestCreated() {}

GuestViewBase* TestGuestViewManager::WaitForSingleGuestViewCreated() {}

content::RenderFrameHost*
TestGuestViewManager::WaitForNextGuestRenderFrameHostCreated() {}

content::WebContents*
TestGuestViewManager::DeprecatedWaitForNextGuestCreated() {}

GuestViewBase* TestGuestViewManager::WaitForNextGuestViewCreated() {}

void TestGuestViewManager::WaitForNumGuestsCreated(size_t count) {}

void TestGuestViewManager::WaitUntilAttached(GuestViewBase* guest_view) {}

void TestGuestViewManager::WaitForViewGarbageCollected() {}

void TestGuestViewManager::WaitForSingleViewGarbageCollected() {}

void TestGuestViewManager::AddGuest(GuestViewBase* guest) {}

void TestGuestViewManager::AttachGuest(int embedder_process_id,
                                       int element_instance_id,
                                       int guest_instance_id,
                                       const base::Value::Dict& attach_params) {}

void TestGuestViewManager::GetGuestRenderFrameHostList(
    std::vector<content::RenderFrameHost*>* guest_render_frame_host_list) {}

void TestGuestViewManager::EmbedderProcessDestroyed(int embedder_process_id) {}

void TestGuestViewManager::ViewGarbageCollected(int embedder_process_id,
                                                int view_instance_id) {}

// Test factory for creating test instances of GuestViewManager.
TestGuestViewManagerFactory::TestGuestViewManagerFactory() {}

TestGuestViewManagerFactory::~TestGuestViewManagerFactory() {}

TestGuestViewManager*
TestGuestViewManagerFactory::GetOrCreateTestGuestViewManager(
    content::BrowserContext* context,
    std::unique_ptr<GuestViewManagerDelegate> delegate) {}

std::unique_ptr<GuestViewManager>
TestGuestViewManagerFactory::CreateGuestViewManager(
    content::BrowserContext* context,
    std::unique_ptr<GuestViewManagerDelegate> delegate) {}

}  // namespace guest_view