#include "chrome/browser/media/router/providers/cast/cast_app_availability_tracker.h"
#include "base/ranges/algorithm.h"
#include "base/test/simple_test_tick_clock.h"
#include "components/media_router/common/discovery/media_sink_internal.h"
#include "components/media_router/common/media_route_provider_helper.h"
#include "components/media_router/common/media_sink.h"
#include "components/media_router/common/mojom/media_router.mojom.h"
#include "components/media_router/common/providers/cast/cast_media_source.h"
#include "components/media_router/common/providers/cast/channel/cast_device_capability.h"
#include "components/media_router/common/providers/cast/channel/cast_message_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
GetAppAvailabilityResult;
namespace media_router {
namespace {
MATCHER_P(CastMediaSourcesEqual, expected, "") { … }
MediaSinkInternal CreateSink(const std::string& id) { … }
}
class CastAppAvailabilityTrackerTest : public testing::Test { … };
TEST_F(CastAppAvailabilityTrackerTest, RegisterSource) { … }
TEST_F(CastAppAvailabilityTrackerTest, RegisterSourceReturnsMultipleAppIds) { … }
TEST_F(CastAppAvailabilityTrackerTest, MultipleAppIdsAlreadyTrackingOne) { … }
TEST_F(CastAppAvailabilityTrackerTest, UpdateAppAvailability) { … }
TEST_F(CastAppAvailabilityTrackerTest, RemoveResultsForSink) { … }
TEST_F(CastAppAvailabilityTrackerTest, FilterByCapability) { … }
}