chromium/chrome/browser/guest_view/mime_handler_view/chrome_mime_handler_view_interactive_uitest.cc

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

#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/run_until.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/exclusive_access/exclusive_access_test.h"
#include "chrome/test/base/interactive_test_utils.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/guest_view/browser/guest_view_manager_delegate.h"
#include "components/guest_view/browser/test_guest_view_manager.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/hit_test_region_observer.h"
#include "extensions/browser/api/extensions_api_client.h"
#include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.h"
#include "extensions/browser/guest_view/mime_handler_view/test_mime_handler_view_guest.h"
#include "extensions/common/constants.h"
#include "extensions/test/result_catcher.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "third_party/blink/public/common/input/web_pointer_properties.h"

GuestViewManager;
TestGuestViewManager;

namespace extensions {

class ChromeMimeHandlerViewInteractiveUITest : public ExtensionApiTest {};

// Test is flaky on Linux.  https://crbug.com/877627
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
#define MAYBE_Fullscreen
#else
#define MAYBE_Fullscreen
#endif
IN_PROC_BROWSER_TEST_F(ChromeMimeHandlerViewInteractiveUITest,
                       MAYBE_Fullscreen) {}

namespace {

void WaitForFullscreenAnimation() {}

}  // namespace

// TODO(crbug.com/40714227): Flaky under Lacros.
#if BUILDFLAG(IS_CHROMEOS_LACROS)
#define MAYBE_EscapeExitsFullscreen
#else
#define MAYBE_EscapeExitsFullscreen
#endif
IN_PROC_BROWSER_TEST_F(ChromeMimeHandlerViewInteractiveUITest,
                       MAYBE_EscapeExitsFullscreen) {}

}  // namespace extensions