~kdub/mir/mali-client-render-support

« back to all changes in this revision

Viewing changes to tests/unit-tests/graphics/gbm/test_native_gbm_platform.cpp

  • Committer: Kevin DuBois
  • Date: 2013-11-05 21:44:14 UTC
  • mfrom: (1062.1.137 dev)
  • Revision ID: kevin.dubois@canonical.com-20131105214414-d32r52joqrs8tsmo
merge dev branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
{
39
39
    MOCK_METHOD0(platform_fd_items, std::vector<int>());
40
40
    MOCK_METHOD1(drm_auth_magic, void(int));
 
41
    MOCK_METHOD1(drm_set_gbm_device, void(struct gbm_device*));
41
42
};
42
43
 
43
44
class NativeGBMPlatformTest : public ::testing::Test
70
71
    native.initialize(mt::fake_shared(mock_nested_context));
71
72
    native.get_ipc_package();
72
73
}
 
74
 
 
75
TEST_F(NativeGBMPlatformTest, sets_gbm_device_during_initialization)
 
76
{
 
77
    using namespace testing;
 
78
 
 
79
    mgg::NativeGBMPlatform native;
 
80
 
 
81
    EXPECT_CALL(mock_nested_context, drm_set_gbm_device(mock_gbm.fake_gbm.device));
 
82
 
 
83
    native.initialize(mt::fake_shared(mock_nested_context));
 
84
}