summaryrefslogtreecommitdiffstats
path: root/xbmc/utils/test/TestScraperParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/utils/test/TestScraperParser.cpp')
-rw-r--r--xbmc/utils/test/TestScraperParser.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/xbmc/utils/test/TestScraperParser.cpp b/xbmc/utils/test/TestScraperParser.cpp
new file mode 100644
index 0000000..50744b4
--- /dev/null
+++ b/xbmc/utils/test/TestScraperParser.cpp
@@ -0,0 +1,26 @@
1/*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9#include "test/TestUtils.h"
10#include "utils/ScraperParser.h"
11
12#include <gtest/gtest.h>
13
14TEST(TestScraperParser, General)
15{
16 CScraperParser a;
17
18 a.Clear();
19 EXPECT_TRUE(
20 a.Load(XBMC_REF_FILE_PATH("/addons/metadata.themoviedb.org/tmdb.xml")));
21
22 EXPECT_STREQ(
23 XBMC_REF_FILE_PATH("/addons/metadata.themoviedb.org/tmdb.xml").c_str(),
24 a.GetFilename().c_str());
25 EXPECT_STREQ("UTF-8", a.GetSearchStringEncoding().c_str());
26}