2
* Copyright (C) 2012 Canonical Ltd
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 3 as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Authored by Pawel Stolowski <pawel.stolowski@canonical.com>
19
namespace Unity.VideoLens
21
private Thumbnailer thumbnailer;
22
private Locate locate;
23
private string video_dir;
25
public static int main (string[] args)
27
video_dir = Config.TESTDATADIR;
29
locate = new Locate ("cache", "data");
30
thumbnailer = new Thumbnailer ();
33
Test.add_data_func ("/Unit/ParseLocateResults", test_parse);
38
internal static void test_parse ()
40
string input = @"$video_dir/video1.avi\n$video_dir/video2.avi\n$video_dir/video1.mpg\n$video_dir/video2.mpg\n";
41
var results = locate.parse_locate_results (input, 1000, thumbnailer);
42
assert (results.size == 4);
b'\\ No newline at end of file'