~ubuntu-branches/ubuntu/wily/bombono-dvd/wily

« back to all changes in this revision

Viewing changes to src/mgui/tests/test_burn.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-11-04 11:46:25 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101104114625-8xfdhvhpsm51i0nu
Tags: upstream-0.8.0
ImportĀ upstreamĀ versionĀ 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
// mgui/tests/test_burn.cpp
3
3
// This file is part of Bombono DVD project.
4
4
//
5
 
// Copyright (c) 2009 Ilya Murav'jov
 
5
// Copyright (c) 2009-2010 Ilya Murav'jov
6
6
//
7
7
// This program is free software; you can redistribute it and/or modify
8
8
// it under the terms of the GNU General Public License as published by
27
27
#include <mgui/sdk/window.h>
28
28
#include <mgui/sdk/packing.h>
29
29
 
 
30
std::string GetTestFNameContents(const std::string& fname)
 
31
{
 
32
    std::string path = GetTestFileName(fname.c_str());
 
33
    return Glib::file_get_contents(path);
 
34
}
 
35
 
30
36
namespace Author
31
37
{
32
38
 
47
53
 
48
54
static DVDInfo ParseDVDInfoExample(bool is_good, const std::string& fname)
49
55
{
50
 
    std::string path = GetTestFileName(("dvd+rw-mediainfo/" + fname).c_str());
51
 
    return ParseDVDInfo(is_good, Glib::file_get_contents(path));
 
56
    return ParseDVDInfo(is_good, GetTestFNameContents("dvd+rw-mediainfo/" + fname));
52
57
}
53
58
 
54
59
static DVDType ParseDVDTypeExample(bool is_good, const std::string& fname)