#include "components/media_router/common/discovery/media_sink_service_base.h"
#include "base/memory/ptr_util.h"
#include "base/test/mock_callback.h"
#include "base/timer/mock_timer.h"
#include "components/media_router/common/test/test_helper.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
Return;
namespace media_router {
namespace {
DialSinkExtraData CreateDialSinkExtraData(const std::string& model_name,
const std::string& ip_address,
const std::string& app_url) { … }
std::vector<media_router::MediaSinkInternal> CreateDialMediaSinks() { … }
}
class MediaSinkServiceBaseTest : public ::testing::Test { … };
TEST_F(MediaSinkServiceBaseTest, TestOnDiscoveryComplete_SameSink) { … }
TEST_F(MediaSinkServiceBaseTest,
TestOnDiscoveryComplete_SameSinkDifferentOrders) { … }
TEST_F(MediaSinkServiceBaseTest, TestOnDiscoveryComplete_OneNewSink) { … }
TEST_F(MediaSinkServiceBaseTest, TestOnDiscoveryComplete_RemovedOneSink) { … }
TEST_F(MediaSinkServiceBaseTest, TestOnDiscoveryComplete_UpdatedOneSink) { … }
TEST_F(MediaSinkServiceBaseTest, TestOnDiscoveryComplete_Mixed) { … }
}