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