chromium/ui/views/test/views_test_base.cc

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

#include "ui/views/test/views_test_base.h"

#include <utility>

#include "base/environment.h"
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "build/build_config.h"
#include "mojo/core/embedder/embedder.h"
#include "ui/base/clipboard/clipboard.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_paths.h"
#include "ui/gl/test/gl_surface_test_support.h"
#include "ui/views/buildflags.h"
#include "ui/views/test/test_platform_native_widget.h"
#include "ui/views/view_test_api.h"

#if defined(USE_AURA)
#include "ui/views/widget/native_widget_aura.h"
#if BUILDFLAG(ENABLE_DESKTOP_AURA)
#include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
#endif
#elif BUILDFLAG(IS_MAC)
#include "ui/views/widget/native_widget_mac.h"
#endif

#if BUILDFLAG(IS_CHROMEOS_LACROS)
#include "chromeos/startup/browser_params_proxy.h"
#endif

namespace views {

void ViewsTestBase::WidgetCloser::operator()(Widget* widget) const {}

ViewsTestBase::ViewsTestBase(
    std::unique_ptr<base::test::TaskEnvironment> task_environment)
    :{}

ViewsTestBase::~ViewsTestBase() {}

void ViewsTestBase::SetUp() {}

void ViewsTestBase::TearDown() {}

void ViewsTestBase::SetUpForInteractiveTests() {}

void ViewsTestBase::RunPendingMessages() {}

Widget::InitParams ViewsTestBase::CreateParams(
    Widget::InitParams::Ownership ownership,
    Widget::InitParams::Type type) {}

Widget::InitParams ViewsTestBase::CreateParams(Widget::InitParams::Type type) {}

std::unique_ptr<Widget> ViewsTestBase::CreateTestWidget(
    Widget::InitParams::Ownership ownership,
    Widget::InitParams::Type type) {}

std::unique_ptr<Widget> ViewsTestBase::CreateTestWidget(
    Widget::InitParams params) {}

void ViewsTestBase::SimulateNativeDestroy(Widget* widget) {}

#if BUILDFLAG(ENABLE_DESKTOP_AURA)
void ViewsTestBase::SimulateDesktopNativeDestroy(Widget* widget) {}
#endif

#if !BUILDFLAG(IS_MAC)
int ViewsTestBase::GetSystemReservedHeightAtTopOfScreen() {}
#endif

gfx::NativeWindow ViewsTestBase::GetContext() {}

NativeWidget* ViewsTestBase::CreateNativeWidgetForTest(
    const Widget::InitParams& init_params,
    internal::NativeWidgetDelegate* delegate) {}

std::unique_ptr<Widget> ViewsTestBase::AllocateTestWidget() {}

Widget::InitParams ViewsTestBase::CreateParamsForTestWidget(
    Widget::InitParams::Ownership ownership,
    Widget::InitParams::Type type) {}

Widget::InitParams ViewsTestBase::CreateParamsForTestWidget(
    Widget::InitParams::Type type) {}

void ViewsTestWithDesktopNativeWidget::SetUp() {}

}  // namespace views