Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / angle / tests / preprocessor_tests / MockDirectiveHandler.h
1 //
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.
5 //
6
7 #ifndef PREPROCESSOR_TESTS_MOCK_DIRECTIVE_HANDLER_H_
8 #define PREPROCESSOR_TESTS_MOCK_DIRECTIVE_HANDLER_H_
9
10 #include "gmock/gmock.h"
11 #include "DirectiveHandlerBase.h"
12
13 class MockDirectiveHandler : public pp::DirectiveHandler
14 {
15   public:
16     MOCK_METHOD2(handleError,
17         void(const pp::SourceLocation& loc, const std::string& msg));
18
19     MOCK_METHOD4(handlePragma,
20         void(const pp::SourceLocation& loc,
21              const std::string& name,
22              const std::string& value,
23              bool stdgl));
24
25     MOCK_METHOD3(handleExtension,
26         void(const pp::SourceLocation& loc,
27              const std::string& name,
28              const std::string& behavior));
29
30     MOCK_METHOD2(handleVersion,
31         void(const pp::SourceLocation& loc, int version));
32 };
33
34 #endif  // PREPROCESSOR_TESTS_MOCK_DIRECTIVE_HANDLER_H_