chromium/chrome/browser/devtools/devtools_window_testing.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 "chrome/browser/devtools/devtools_window_testing.h"

#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/lazy_instance.h"
#include "base/ranges/algorithm.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/browser_features.h"
#include "chrome/browser/devtools/chrome_devtools_manager_delegate.h"
#include "chrome/browser/devtools/devtools_window.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/test_utils.h"

namespace {

const char kHarnessScript[] =;

DevToolsWindowTestings;
base::LazyInstance<DevToolsWindowTestings>::Leaky
    g_devtools_window_testing_instances =;
}

DevToolsWindowTesting::DevToolsWindowTesting(DevToolsWindow* window)
    :{}

DevToolsWindowTesting::~DevToolsWindowTesting() {}

// static
DevToolsWindowTesting* DevToolsWindowTesting::Get(DevToolsWindow* window) {}

// static
DevToolsWindowTesting* DevToolsWindowTesting::Find(DevToolsWindow* window) {}

Browser* DevToolsWindowTesting::browser() {}

content::WebContents* DevToolsWindowTesting::main_web_contents() {}

content::WebContents* DevToolsWindowTesting::toolbox_web_contents() {}

void DevToolsWindowTesting::SetInspectedPageBounds(const gfx::Rect& bounds) {}

void DevToolsWindowTesting::SetCloseCallback(base::OnceClosure closure) {}

void DevToolsWindowTesting::SetOpenNewWindowForPopups(bool value) {}

// static
void DevToolsWindowTesting::WindowClosed(DevToolsWindow* window) {}

// static
void DevToolsWindowTesting::WaitForDevToolsWindowLoad(DevToolsWindow* window) {}

// static
DevToolsWindow* DevToolsWindowTesting::OpenDevToolsWindowSync(
    content::WebContents* inspected_web_contents,
    Profile* profile,
    bool is_docked) {}

// static
DevToolsWindow* DevToolsWindowTesting::OpenDevToolsWindowSync(
    content::WebContents* inspected_web_contents,
    bool is_docked) {}

// static
DevToolsWindow* DevToolsWindowTesting::OpenDevToolsWindowSync(
    Browser* browser,
    bool is_docked) {}

// static
DevToolsWindow* DevToolsWindowTesting::OpenDevToolsWindowSync(
    Profile* profile,
    scoped_refptr<content::DevToolsAgentHost> agent_host) {}

// static
DevToolsWindow* DevToolsWindowTesting::OpenDiscoveryDevToolsWindowSync(
    Profile* profile) {}

// static
void DevToolsWindowTesting::CloseDevToolsWindow(
    DevToolsWindow* window) {}

// static
void DevToolsWindowTesting::CloseDevToolsWindowSync(
    DevToolsWindow* window) {}

// DevToolsWindowCreationObserver ---------------------------------------------

DevToolsWindowCreationObserver::DevToolsWindowCreationObserver()
    :{}

DevToolsWindowCreationObserver::~DevToolsWindowCreationObserver() {}

void DevToolsWindowCreationObserver::Wait() {}

void DevToolsWindowCreationObserver::WaitForLoad() {}

void DevToolsWindowCreationObserver::DevToolsWindowCreated(
    DevToolsWindow* devtools_window) {}

DevToolsWindow* DevToolsWindowCreationObserver::devtools_window() {}

void DevToolsWindowCreationObserver::CloseAllSync() {}