~kdub/+junk/no-native

« back to all changes in this revision

Viewing changes to tests/unit-tests/graphics/mesa/test_cursor.cpp

  • Committer: Kevin DuBois
  • Date: 2014-11-19 19:30:10 UTC
  • mfrom: (2060.1.11 native-ipc-operations)
  • Revision ID: kevin.dubois@canonical.com-20141119193010-0va4n207jzx32brt
merge base branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
    };
301
301
 
302
302
    // We expect a full 64x64 pixel write as we will pad missing data with transparency.
303
 
    size_t const buffer_size_bytes{64 * 64 * sizeof(uint32_t)};
 
303
    size_t const height = 64;
 
304
    size_t const width = 64;
 
305
    size_t const stride = width * 4;
 
306
    size_t const buffer_size_bytes{height * stride};
 
307
    ON_CALL(mock_gbm, gbm_bo_get_stride(_))
 
308
        .WillByDefault(Return(stride));
304
309
    EXPECT_CALL(mock_gbm, gbm_bo_write(mock_gbm.fake_gbm.bo, ContainsASingleWhitePixel(), buffer_size_bytes));
305
310
 
306
311
    cursor.show(SinglePixelCursorImage());