chromium/chrome/browser/ui/global_media_controls/cast_media_notification_item_unittest.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 "chrome/browser/ui/global_media_controls/cast_media_notification_item.h"

#include <memory>
#include <string>
#include <utility>

#include "base/memory/raw_ptr.h"
#include "build/build_config.h"
#include "chrome/browser/bitmap_fetcher/bitmap_fetcher.h"
#include "chrome/browser/media/router/chrome_media_router_factory.h"
#include "chrome/test/base/testing_profile.h"
#include "components/global_media_controls/public/test/mock_media_item_manager.h"
#include "components/media_message_center/mock_media_notification_view.h"
#include "components/media_router/browser/test/mock_media_router.h"
#include "components/media_router/common/media_route.h"
#include "components/vector_icons/vector_icons.h"
#include "content/public/test/browser_task_environment.h"
#include "media/base/media_switches.h"
#include "net/url_request/referrer_policy.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/vector_icon_types.h"

MediaStatus;
MediaPlaybackState;
MediaSessionAction;
MediaSessionInfo;
MediaSessionInfoPtr;
_;
AtLeast;

namespace {

constexpr char kRouteDesc[] =;
constexpr char kRouteId[] =;
constexpr char kSinkName[] =;

media_router::MediaRoute CreateMediaRoute() {}

class MockBitmapFetcher : public BitmapFetcher {};

class MockSessionController : public CastMediaSessionController {};

}  // namespace

class CastMediaNotificationItemTest : public testing::Test {};

TEST_F(CastMediaNotificationItemTest, UpdateSessionInfo) {}

TEST_F(CastMediaNotificationItemTest, UpdateMetadata) {}

TEST_F(CastMediaNotificationItemTest, UpdateActions) {}

TEST_F(CastMediaNotificationItemTest, SetViewToNull) {}

TEST_F(CastMediaNotificationItemTest, HideNotificationOnDismiss) {}

TEST_F(CastMediaNotificationItemTest, HideNotificationOnDelete) {}

TEST_F(CastMediaNotificationItemTest, SendMediaStatusToController) {}

TEST_F(CastMediaNotificationItemTest, SendActionToController) {}

TEST_F(CastMediaNotificationItemTest, SendVolumeStatusToController) {}

TEST_F(CastMediaNotificationItemTest, SendSeekCommandToController) {}

TEST_F(CastMediaNotificationItemTest, DownloadImage) {}

// TODO(crbug.com/327498504): Fix the test flakiness on Win Arm64.
#if BUILDFLAG(IS_WIN) && defined(ARCH_CPU_ARM64)
#define MAYBE_MediaPositionUpdate
#else
#define MAYBE_MediaPositionUpdate
#endif
TEST_F(CastMediaNotificationItemTest, MAYBE_MediaPositionUpdate) {}

TEST_F(CastMediaNotificationItemTest, StopCasting) {}

TEST_F(CastMediaNotificationItemTest, UpdateMediaSinkName) {}