2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
9 #include "utils/StreamUtils.h"
11 #include <gtest/gtest.h>
13 TEST(TestStreamUtils
, General
)
15 EXPECT_EQ(0, StreamUtils::GetCodecPriority(""));
16 EXPECT_EQ(1, StreamUtils::GetCodecPriority("ac3"));
17 EXPECT_EQ(2, StreamUtils::GetCodecPriority("dca"));
18 EXPECT_EQ(3, StreamUtils::GetCodecPriority("eac3"));
19 EXPECT_EQ(4, StreamUtils::GetCodecPriority("dtshd_hra"));
20 EXPECT_EQ(5, StreamUtils::GetCodecPriority("dtshd_ma"));
21 EXPECT_EQ(6, StreamUtils::GetCodecPriority("truehd"));
22 EXPECT_EQ(7, StreamUtils::GetCodecPriority("flac"));