~ubuntu-branches/ubuntu/wily/mir/wily-proposed

« back to all changes in this revision

Viewing changes to tests/unit-tests/compositor/test_gl_texture_cache.cpp

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-10-10 14:01:26 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20141010140126-n1czko8na1kuz4ll
Tags: upstream-0.8.0+14.10.20141010
ImportĀ upstreamĀ versionĀ 0.8.0+14.10.20141010

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
    cache.drop_unused();
123
123
    EXPECT_EQ(old_use_count, mock_buffer.use_count());
124
124
}
 
125
 
 
126
//LP: #1362444
 
127
TEST_F(RecentlyUsedCache, invalidated_buffers_are_reloaded)
 
128
{
 
129
    ON_CALL(*mock_buffer, id())
 
130
        .WillByDefault(testing::Return(mg::BufferID(0)));
 
131
    EXPECT_CALL(*mock_buffer,gl_bind_to_texture())
 
132
        .Times(2);
 
133
 
 
134
    mc::RecentlyUsedCache cache;
 
135
    cache.load(*renderable);
 
136
    cache.load(*renderable);
 
137
    cache.invalidate();
 
138
    cache.load(*renderable);
 
139
}