#include "extensions/browser/guest_view/mime_handler_view/test_mime_handler_view_guest.h"
#include "base/functional/bind.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/run_until.h"
#include "base/time/time.h"
#include "components/guest_view/browser/test_guest_view_manager.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/test_utils.h"
GuestViewBase;
namespace extensions {
TestMimeHandlerViewGuest::TestMimeHandlerViewGuest(
content::RenderFrameHost* owner_rfh)
: … { … }
TestMimeHandlerViewGuest::~TestMimeHandlerViewGuest() = default;
void TestMimeHandlerViewGuest::RegisterTestGuestViewType(
guest_view::TestGuestViewManager* manager) { … }
std::unique_ptr<GuestViewBase> TestMimeHandlerViewGuest::Create(
content::RenderFrameHost* owner_rfh) { … }
void TestMimeHandlerViewGuest::DelayNextCreateWebContents(int delay) { … }
void TestMimeHandlerViewGuest::WaitForGuestAttached() { … }
void TestMimeHandlerViewGuest::CreateWebContents(
std::unique_ptr<GuestViewBase> owned_this,
const base::Value::Dict& create_params,
WebContentsCreatedCallback callback) { … }
void TestMimeHandlerViewGuest::DidAttachToEmbedder() { … }
void TestMimeHandlerViewGuest::WaitForGuestLoadStartThenStop(
GuestViewBase* guest_view) { … }
void TestMimeHandlerViewGuest::CallBaseCreateWebContents(
std::unique_ptr<GuestViewBase> owned_this,
base::Value::Dict create_params,
WebContentsCreatedCallback callback) { … }
int TestMimeHandlerViewGuest::delay_ = …;
}