Path: blob/main_old/src/tests/preprocessor_tests/MockDirectiveHandler.h
1693 views
//1// Copyright 2012 The ANGLE Project Authors. All rights reserved.2// Use of this source code is governed by a BSD-style license that can be3// found in the LICENSE file.4//56#ifndef PREPROCESSOR_TESTS_MOCK_DIRECTIVE_HANDLER_H_7#define PREPROCESSOR_TESTS_MOCK_DIRECTIVE_HANDLER_H_89#include "compiler/preprocessor/DirectiveHandlerBase.h"10#include "gmock/gmock.h"1112namespace angle13{1415class MockDirectiveHandler : public pp::DirectiveHandler16{17public:18MOCK_METHOD2(handleError, void(const pp::SourceLocation &loc, const std::string &msg));1920MOCK_METHOD4(handlePragma,21void(const pp::SourceLocation &loc,22const std::string &name,23const std::string &value,24bool stdgl));2526MOCK_METHOD3(handleExtension,27void(const pp::SourceLocation &loc,28const std::string &name,29const std::string &behavior));3031MOCK_METHOD3(handleVersion,32void(const pp::SourceLocation &loc, int version, ShShaderSpec spec));33};3435} // namespace angle3637#endif // PREPROCESSOR_TESTS_MOCK_DIRECTIVE_HANDLER_H_383940