chromium/chrome/browser/ui/views/test/view_event_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 "chrome/browser/ui/views/test/view_event_test_base.h"

#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/test/base/chrome_unit_test_suite.h"
#include "chrome/test/base/interactive_test_utils.h"
#include "chrome/test/base/testing_browser_process.h"
#include "mojo/core/embedder/embedder.h"
#include "ui/display/screen.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/view.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_delegate.h"

#if defined(USE_AURA) && !BUILDFLAG(IS_CHROMEOS_ASH)
#include "ui/views/widget/desktop_aura/desktop_screen.h"

#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) && \
    BUILDFLAG(IS_OZONE)
#include "ui/views/test/test_desktop_screen_ozone.h"
#endif  // (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)) &&
        // BUILDFLAG(IS_OZONE)
#endif

namespace {

// View that keeps its preferred size in sync with what |harness| requests.
class TestView : public views::View {};

}  // namespace

class TestBaseWidgetDelegate : public views::WidgetDelegate {};

ViewEventTestBase::ViewEventTestBase() {}

ViewEventTestBase::~ViewEventTestBase() {}

void ViewEventTestBase::SetUpTestSuite() {}

void ViewEventTestBase::SetUp() {}

void ViewEventTestBase::TearDown() {}

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

gfx::Size ViewEventTestBase::GetPreferredSizeForContents() const {}

void ViewEventTestBase::Done() {}

void ViewEventTestBase::StartMessageLoopAndRunTest() {}

void ViewEventTestBase::RunTestMethod(base::OnceClosure task) {}

scoped_refptr<base::SingleThreadTaskRunner>
ViewEventTestBase::GetDragTaskRunner() {}