~mir-team/mir/trunk-0.1.7

« back to all changes in this revision

Viewing changes to include/test/mir_test_doubles/mock_input_surface.h

  • Committer: CI bot
  • Author(s): Tarmac, Daniel van Vugt, Kevin Gunn
  • Date: 2014-03-10 19:28:33 UTC
  • mfrom: (1160.196.70 trunk-0.1.6)
  • Revision ID: ps-jenkins@lists.canonical.com-20140310192833-0tjthcchenlofkyv
Latest upstream release of Mir 0.1.6 (lp:~mir-team/mir/development-branch r1433) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    MockInputSurface()
36
36
    {
37
37
        using namespace testing;
38
 
        ON_CALL(*this, position())
 
38
        ON_CALL(*this, top_left())
39
39
            .WillByDefault(
40
40
                Return(geometry::Point{}));
41
41
        ON_CALL(*this, size())
46
46
            .WillByDefault(testing::ReturnRef(n));
47
47
    }
48
48
    ~MockInputSurface() noexcept {}
49
 
    MOCK_CONST_METHOD0(position, geometry::Point());
 
49
    MOCK_CONST_METHOD0(top_left, geometry::Point());
50
50
    MOCK_CONST_METHOD0(size, geometry::Size());
51
51
    MOCK_CONST_METHOD0(name, std::string const&());
52
52
    MOCK_CONST_METHOD1(contains, bool(geometry::Point const&));