chromium/content/browser/media/media_keys_listener_manager_impl_browsertest.cc

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

#include "content/browser/media/media_keys_listener_manager_impl.h"

#include "base/containers/flat_set.h"
#include "base/memory/raw_ptr.h"
#include "base/test/scoped_feature_list.h"
#include "build/chromeos_buildflags.h"
#include "content/browser/browser_main_loop.h"
#include "content/browser/media/active_media_session_controller.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/content_browser_test.h"
#include "media/base/media_switches.h"
#include "services/media_session/public/cpp/test/test_media_controller.h"
#include "services/media_session/public/mojom/media_session.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/accelerators/accelerator.h"
#include "ui/base/accelerators/media_keys_listener.h"

// Disable on CrOS because MediaKeysListenerManager is disabled.
#if !BUILDFLAG(IS_CHROMEOS_LACROS)

namespace content {

MediaPlaybackState;
MediaSessionAction;
MediaSessionInfo;
MediaSessionInfoPtr;
TestMediaController;

namespace {

class MockMediaKeysListener : public ui::MediaKeysListener {};

class MockMediaKeysListenerDelegate : public ui::MediaKeysListener::Delegate {};

}  // anonymous namespace

class MediaKeysListenerManagerImplTest : public ContentBrowserTest {};

IN_PROC_BROWSER_TEST_F(MediaKeysListenerManagerImplTest, PressPlayPauseKey) {}

IN_PROC_BROWSER_TEST_F(MediaKeysListenerManagerImplTest,
                       ListensToTheCorrectMediaKeys) {}

IN_PROC_BROWSER_TEST_F(MediaKeysListenerManagerImplTest,
                       OtherDelegatesPreemptActiveMediaSessionController) {}

}  // namespace content

#endif  // !BUILDFLAG(IS_CHROMEOS_LACROS)