chromium/components/media_router/browser/test/test_helper.h

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

#ifndef COMPONENTS_MEDIA_ROUTER_BROWSER_TEST_TEST_HELPER_H_
#define COMPONENTS_MEDIA_ROUTER_BROWSER_TEST_TEST_HELPER_H_

#include <string>
#include <vector>

#include "base/test/values_test_util.h"
#include "components/media_router/browser/media_routes_observer.h"
#include "components/media_router/browser/media_sinks_observer.h"
#include "components/media_router/common/mojom/logger.mojom.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/blink/public/mojom/presentation/presentation.mojom.h"

#if !BUILDFLAG(IS_ANDROID)
#include "components/media_router/browser/issue_manager.h"
#include "components/media_router/browser/issues_observer.h"
#endif  // !BUILDFALG(IS_ANDROID)

namespace media_router {

// Matcher for IssueInfo title.
MATCHER_P(IssueTitleEquals, title, "") {}

MATCHER_P(StateChangeInfoEquals, other, "") {}

#if !BUILDFLAG(IS_ANDROID)
class MockIssuesObserver : public IssuesObserver {};
#endif  // !BUILDFLAG(IS_ANDROID)

class MockMediaSinksObserver : public MediaSinksObserver {};

class MockMediaRoutesObserver : public MediaRoutesObserver {};

class MockPresentationConnectionProxy
    : public blink::mojom::PresentationConnection {};

// Matcher for PresentationConnectionMessagePtr arguments.
MATCHER_P(IsPresentationConnectionMessage, json, "") {}

}  // namespace media_router

#endif  // COMPONENTS_MEDIA_ROUTER_BROWSER_TEST_TEST_HELPER_H_