~compiz-team/compiz/compiz.performance_1040478

« back to all changes in this revision

Viewing changes to compizconfig/tests/compizconfig_ccs_settings_test_fixture.h

  • Committer: Sam Spilsbury
  • Date: 2012-10-02 01:21:28 UTC
  • mfrom: (3360.1.45 compiz)
  • Revision ID: sam.spilsbury@canonical.com-20121002012128-sw01jhz41guvcvnw
MergeĀ lp:compiz

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Compiz configuration system library
 
3
 *
 
4
 * Copyright (C) 2012 Canonical Ltd.
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Lesser General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2.1 of the License, or (at your option) any later version.
 
10
 
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Lesser General Public License for more details.
 
15
 
 
16
 * You should have received a copy of the GNU Lesser General Public
 
17
 * License along with this library; if not, write to the Free Software
 
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
19
 *
 
20
 * Authored By:
 
21
 * Sam Spilsbury <sam.spilsbury@canonical.com>
 
22
 */
 
23
#ifndef _COMPIZCONFIG_CCS_SETTINGS_TEST_FIXTURE_H
 
24
#define _COMPIZCONFIG_CCS_SETTINGS_TEST_FIXTURE_H
 
25
#include <string>
 
26
#include <ccs-defs.h>
 
27
#include "compizconfig_ccs_variant_types.h"
 
28
 
 
29
typedef enum _CCSSettingType CCSSettingType;
 
30
typedef struct _CCSSetting   CCSSetting;
 
31
 
 
32
namespace compizconfig
 
33
{
 
34
    namespace test
 
35
    {
 
36
        Bool boolToBool (bool v);
 
37
    }
 
38
}
 
39
 
 
40
class CCSSettingsConceptTestEnvironmentInterface
 
41
{
 
42
    public:
 
43
 
 
44
        virtual void SetUp () = 0;
 
45
        virtual void TearDown () = 0;
 
46
 
 
47
        virtual void WriteBoolAtKey (const std::string  &plugin,
 
48
                                     const std::string  &key,
 
49
                                     const VariantTypes   &value) = 0;
 
50
        virtual void WriteIntegerAtKey (const std::string &plugin,
 
51
                                        const std::string &key,
 
52
                                        const VariantTypes &value) = 0;
 
53
        virtual void WriteFloatAtKey (const std::string  &plugin,
 
54
                                      const std::string  &key,
 
55
                                      const VariantTypes &value) = 0;
 
56
        virtual void WriteStringAtKey (const std::string  &plugin,
 
57
                                       const std::string  &key,
 
58
                                       const VariantTypes &value) = 0;
 
59
        virtual void WriteColorAtKey (const std::string  &plugin,
 
60
                                      const std::string  &key,
 
61
                                      const VariantTypes &value) = 0;
 
62
        virtual void WriteKeyAtKey (const std::string  &plugin,
 
63
                                    const std::string  &key,
 
64
                                    const VariantTypes &value) = 0;
 
65
        virtual void WriteButtonAtKey (const std::string  &plugin,
 
66
                                       const std::string  &key,
 
67
                                       const VariantTypes &value) = 0;
 
68
        virtual void WriteEdgeAtKey (const std::string  &plugin,
 
69
                                     const std::string  &key,
 
70
                                     const VariantTypes &value) = 0;
 
71
        virtual void WriteMatchAtKey (const std::string  &plugin,
 
72
                                      const std::string  &key,
 
73
                                      const VariantTypes &value) = 0;
 
74
        virtual void WriteBellAtKey (const std::string  &plugin,
 
75
                                     const std::string  &key,
 
76
                                     const VariantTypes &value) = 0;
 
77
        virtual void WriteListAtKey (const std::string  &plugin,
 
78
                                     const std::string  &key,
 
79
                                     const VariantTypes &value) = 0;
 
80
 
 
81
        virtual Bool ReadBoolAtKey (const std::string  &plugin,
 
82
                                    const std::string  &key) = 0;
 
83
        virtual int ReadIntegerAtKey (const std::string &plugin,
 
84
                                      const std::string &key) = 0;
 
85
        virtual float ReadFloatAtKey (const std::string &plugin,
 
86
                                      const std::string &key) = 0;
 
87
        virtual const char * ReadStringAtKey (const std::string &plugin,
 
88
                                              const std::string &key) = 0;
 
89
        virtual CCSSettingColorValue ReadColorAtKey (const std::string &plugin,
 
90
                                                     const std::string &key) = 0;
 
91
        virtual CCSSettingKeyValue ReadKeyAtKey (const std::string &plugin,
 
92
                                                 const std::string &key) = 0;
 
93
        virtual CCSSettingButtonValue ReadButtonAtKey (const std::string &plugin,
 
94
                                                       const std::string &key) = 0;
 
95
        virtual unsigned int ReadEdgeAtKey (const std::string &plugin,
 
96
                                            const std::string &key) = 0;
 
97
        virtual const char * ReadMatchAtKey (const std::string &plugin,
 
98
                                             const std::string &key) = 0;
 
99
        virtual Bool ReadBellAtKey (const std::string &plugin,
 
100
                                    const std::string &key) = 0;
 
101
        virtual CCSSettingValueList ReadListAtKey (const std::string &plugin,
 
102
                                                   const std::string &key,
 
103
                                                   CCSSetting        *setting) = 0;
 
104
};
 
105
 
 
106
#endif