PageRenderTime 29ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/test/TestEventListenerProxy.cpp

https://gitlab.com/admin-github-cloud/cynara
C++ | 86 lines | 47 code | 18 blank | 21 comment | 0 complexity | 47c4b8f4fb38951f56ec4626f257e0e0 MD5 | raw file
  1. /*
  2. * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /**
  17. * @file test/TestEventListenerProxy.cpp
  18. * @author Aleksander Zdyb <a.zdyb@samsung.com>
  19. * @version 1.0
  20. * @brief Proxy for ::testing::TestEventListener
  21. */
  22. #include "TestEventListenerProxy.h"
  23. namespace Cynara {
  24. TestEventListenerProxy::TestEventListenerProxy(TestEventListener *originalListener)
  25. : m_originalListener(originalListener) {};
  26. TestEventListenerProxy::~TestEventListenerProxy() {
  27. delete m_originalListener;
  28. };
  29. void TestEventListenerProxy::OnTestProgramStart(const UnitTest &unit_test) {
  30. m_originalListener->OnTestProgramStart(unit_test);
  31. }
  32. void TestEventListenerProxy::OnTestIterationStart(const UnitTest &unit_test, int iteration) {
  33. m_originalListener->OnTestIterationStart(unit_test, iteration);
  34. }
  35. void TestEventListenerProxy::OnEnvironmentsSetUpStart(const UnitTest &unit_test) {
  36. m_originalListener->OnEnvironmentsSetUpStart(unit_test);
  37. }
  38. void TestEventListenerProxy::OnEnvironmentsSetUpEnd(const UnitTest &unit_test) {
  39. m_originalListener->OnEnvironmentsSetUpEnd(unit_test);
  40. }
  41. void TestEventListenerProxy::OnTestCaseStart(const TestCase &test_case) {
  42. m_originalListener->OnTestCaseStart(test_case);
  43. }
  44. void TestEventListenerProxy::OnTestStart(const TestInfo &test_info) {
  45. m_originalListener->OnTestStart(test_info);
  46. }
  47. void TestEventListenerProxy::OnTestPartResult(const TestPartResult &result) {
  48. m_originalListener->OnTestPartResult(result);
  49. }
  50. void TestEventListenerProxy::OnTestEnd(const TestInfo &test_info) {
  51. m_originalListener->OnTestEnd(test_info);
  52. }
  53. void TestEventListenerProxy::OnTestCaseEnd(const TestCase &test_case) {
  54. m_originalListener->OnTestCaseEnd(test_case);
  55. }
  56. void TestEventListenerProxy::OnEnvironmentsTearDownStart(const UnitTest &unit_test) {
  57. m_originalListener->OnEnvironmentsTearDownStart(unit_test);
  58. }
  59. void TestEventListenerProxy::OnEnvironmentsTearDownEnd(const UnitTest &unit_test) {
  60. m_originalListener->OnEnvironmentsTearDownEnd(unit_test);
  61. }
  62. void TestEventListenerProxy::OnTestIterationEnd(const UnitTest &unit_test, int iteration) {
  63. m_originalListener->OnTestIterationEnd(unit_test, iteration);
  64. }
  65. void TestEventListenerProxy::OnTestProgramEnd(const UnitTest &unit_test) {
  66. m_originalListener->OnTestProgramEnd(unit_test);
  67. }
  68. } /* namespace Cynara */