#include "chrome/browser/ui/media_router/query_result_manager.h"
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/json/json_writer.h"
#include "components/media_router/browser/media_sinks_observer.h"
#include "components/media_router/browser/test/mock_media_router.h"
#include "components/media_router/common/media_route_provider_helper.h"
#include "components/media_router/common/media_sink.h"
#include "components/media_router/common/media_source.h"
#include "components/media_router/common/test/test_helper.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
_;
Eq;
IsEmpty;
Mock;
NiceMock;
Return;
namespace media_router {
namespace {
const char kOrigin[] = …;
class MockObserver : public MediaSinkWithCastModesObserver { … };
}
class QueryResultManagerTest : public ::testing::Test { … };
MATCHER_P(VectorSetEquals, expected, "") { … }
TEST_F(QueryResultManagerTest, Observers) { … }
TEST_F(QueryResultManagerTest, StartStopSinksQuery) { … }
TEST_F(QueryResultManagerTest, MultipleQueries) { … }
TEST_F(QueryResultManagerTest, MultipleUrls) { … }
TEST_F(QueryResultManagerTest, AddInvalidSource) { … }
}