[PVR][Estuary] Timer settings dialog: Show client name in timer type selection dialog...
[xbmc.git] / xbmc / utils / test / TestStreamUtils.cpp
blobe23f958343c22a095dabb0bbf03a5402a6f99fac
1 /*
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.
7 */
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"));