2 // Copyright (c) 2012 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.
7 #ifndef PREPROCESSOR_TESTS_MOCK_DIRECTIVE_HANDLER_H_
8 #define PREPROCESSOR_TESTS_MOCK_DIRECTIVE_HANDLER_H_
10 #include "gmock/gmock.h"
11 #include "DirectiveHandlerBase.h"
13 class MockDirectiveHandler : public pp::DirectiveHandler
16 MOCK_METHOD2(handleError,
17 void(const pp::SourceLocation& loc, const std::string& msg));
19 MOCK_METHOD4(handlePragma,
20 void(const pp::SourceLocation& loc,
21 const std::string& name,
22 const std::string& value,
25 MOCK_METHOD3(handleExtension,
26 void(const pp::SourceLocation& loc,
27 const std::string& name,
28 const std::string& behavior));
30 MOCK_METHOD2(handleVersion,
31 void(const pp::SourceLocation& loc, int version));
34 #endif // PREPROCESSOR_TESTS_MOCK_DIRECTIVE_HANDLER_H_