1 // 2 // Copyright 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_DIAGNOSTICS_H_ 8 #define PREPROCESSOR_TESTS_MOCK_DIAGNOSTICS_H_ 9 10 #include "compiler/preprocessor/DiagnosticsBase.h" 11 #include "gmock/gmock.h" 12 13 namespace angle 14 { 15 16 class MockDiagnostics : public pp::Diagnostics 17 { 18 public: 19 MOCK_METHOD3(print, void(ID id, const pp::SourceLocation &loc, const std::string &text)); 20 }; 21 22 } // namespace angle 23 24 #endif // PREPROCESSOR_TESTS_MOCK_DIAGNOSTICS_H_ 25