blob: f0da58a34f5da913f59ef17cd71eda283cf239b8 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <map>
#include <string>
#include <vector>
#include "chrome/browser/media/router/media_sinks_observer.h"
namespace media_router {
class MediaRouter;
// Test class to implement MediaSinksObserver that receives SinkQueryResults
// from Media Router and is used for verification.
class TestMediaSinksObserver : public MediaSinksObserver {
TestMediaSinksObserver(MediaRouter* router,
const MediaSource& source,
const url::Origin& origin);
~TestMediaSinksObserver() override;
// MediaSinksObserver implementation.
void OnSinksReceived(const std::vector<MediaSink>& result) override;
// Map of <sink_name, media_sink_object>
std::map<std::string, const MediaSink> sink_map;
} // namespace media_router