summaryrefslogtreecommitdiffstats
path: root/gfx/angle/src/tests/preprocessor_tests/MockDiagnostics.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/angle/src/tests/preprocessor_tests/MockDiagnostics.h')
-rwxr-xr-xgfx/angle/src/tests/preprocessor_tests/MockDiagnostics.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gfx/angle/src/tests/preprocessor_tests/MockDiagnostics.h b/gfx/angle/src/tests/preprocessor_tests/MockDiagnostics.h
new file mode 100755
index 000000000..397617869
--- /dev/null
+++ b/gfx/angle/src/tests/preprocessor_tests/MockDiagnostics.h
@@ -0,0 +1,20 @@
+//
+// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+
+#ifndef PREPROCESSOR_TESTS_MOCK_DIAGNOSTICS_H_
+#define PREPROCESSOR_TESTS_MOCK_DIAGNOSTICS_H_
+
+#include "gmock/gmock.h"
+#include "compiler/preprocessor/DiagnosticsBase.h"
+
+class MockDiagnostics : public pp::Diagnostics
+{
+ public:
+ MOCK_METHOD3(print,
+ void(ID id, const pp::SourceLocation& loc, const std::string& text));
+};
+
+#endif // PREPROCESSOR_TESTS_MOCK_DIAGNOSTICS_H_