~compiz-team/compiz/compiz.gsettings_conformance_test

« back to all changes in this revision

Viewing changes to compizconfig/mocks/libcompizconfig/compizconfig_ccs_setting_mock.h

Merged compiz.split_gsettings_rw_funcs into compiz.gsettings_conformance_test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
 
65
65
        /* Mock implementations */
66
66
 
 
67
        CCSSettingGMock (CCSSetting *s) :
 
68
            mSetting (s)
 
69
        {
 
70
            /* Teach GMock how to handle it */
 
71
            ON_CALL (*this, getType ()).WillByDefault (Return (TypeNum));
 
72
        }
 
73
 
 
74
        CCSSetting * setting () { return mSetting; }
 
75
 
67
76
        MOCK_METHOD0 (getName, char * ());
68
77
        MOCK_METHOD0 (getShortDesc, char * ());
69
78
        MOCK_METHOD0 (getLongDesc, char * ());
105
114
        MOCK_METHOD0 (isIntegrated, Bool ());
106
115
        MOCK_METHOD0 (isReadOnly, Bool ());
107
116
 
108
 
        CCSSettingGMock ()
109
 
        {
110
 
            /* Teach GMock how to handle it */
111
 
            ON_CALL (*this, getType ()).WillByDefault (Return (TypeNum));
112
 
        }
 
117
    private:
 
118
 
 
119
        CCSSetting *mSetting;
113
120
 
114
121
    public:
115
122