1*8975f5c5SAndroid Build Coastguard Worker // 2*8975f5c5SAndroid Build Coastguard Worker // Copyright 2015 The ANGLE Project Authors. All rights reserved. 3*8975f5c5SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 4*8975f5c5SAndroid Build Coastguard Worker // found in the LICENSE file. 5*8975f5c5SAndroid Build Coastguard Worker // 6*8975f5c5SAndroid Build Coastguard Worker 7*8975f5c5SAndroid Build Coastguard Worker // ImageImpl_mock.h: Defines a mock of the ImageImpl class. 8*8975f5c5SAndroid Build Coastguard Worker 9*8975f5c5SAndroid Build Coastguard Worker #ifndef LIBANGLE_RENDERER_IMAGEIMPLMOCK_H_ 10*8975f5c5SAndroid Build Coastguard Worker #define LIBANGLE_RENDERER_IMAGEIMPLMOCK_H_ 11*8975f5c5SAndroid Build Coastguard Worker 12*8975f5c5SAndroid Build Coastguard Worker #include "gmock/gmock.h" 13*8975f5c5SAndroid Build Coastguard Worker 14*8975f5c5SAndroid Build Coastguard Worker #include "libANGLE/renderer/ImageImpl.h" 15*8975f5c5SAndroid Build Coastguard Worker 16*8975f5c5SAndroid Build Coastguard Worker namespace rx 17*8975f5c5SAndroid Build Coastguard Worker { 18*8975f5c5SAndroid Build Coastguard Worker class MockImageImpl : public ImageImpl 19*8975f5c5SAndroid Build Coastguard Worker { 20*8975f5c5SAndroid Build Coastguard Worker public: MockImageImpl(const egl::ImageState & state)21*8975f5c5SAndroid Build Coastguard Worker MockImageImpl(const egl::ImageState &state) : ImageImpl(state) {} ~MockImageImpl()22*8975f5c5SAndroid Build Coastguard Worker virtual ~MockImageImpl() { destructor(); } 23*8975f5c5SAndroid Build Coastguard Worker MOCK_METHOD1(initialize, egl::Error(const egl::Display *)); 24*8975f5c5SAndroid Build Coastguard Worker MOCK_METHOD2(orphan, angle::Result(const gl::Context *, egl::ImageSibling *)); 25*8975f5c5SAndroid Build Coastguard Worker MOCK_METHOD0(destructor, void()); 26*8975f5c5SAndroid Build Coastguard Worker }; 27*8975f5c5SAndroid Build Coastguard Worker } // namespace rx 28*8975f5c5SAndroid Build Coastguard Worker 29*8975f5c5SAndroid Build Coastguard Worker #endif // LIBANGLE_RENDERER_IMAGEIMPLMOCK_H_ 30