2 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 * @file test/TestEventListenerProxy.h
18 * @author Aleksander Zdyb <a.zdyb@samsung.com>
20 * @brief Proxy for ::testing::TestEventListener
23 #ifndef TEST_TESTEVENTLISTENERPROXY_H_
24 #define TEST_TESTEVENTLISTENERPROXY_H_
26 #include <gtest/gtest.h>
30 using namespace testing;
32 class TestEventListenerProxy : public TestEventListener
35 explicit TestEventListenerProxy(TestEventListener *originalListener);
36 virtual ~TestEventListenerProxy();
38 virtual void OnTestProgramStart(const UnitTest &unit_test);
39 virtual void OnTestIterationStart(const UnitTest &unit_test, int iteration);
40 virtual void OnEnvironmentsSetUpStart(const UnitTest &unit_test);
41 virtual void OnEnvironmentsSetUpEnd(const UnitTest &unit_test);
42 virtual void OnTestCaseStart(const TestCase &test_case);
43 virtual void OnTestStart(const TestInfo &test_info);
44 virtual void OnTestPartResult(const TestPartResult &result);
45 virtual void OnTestEnd(const TestInfo &test_info);
46 virtual void OnTestCaseEnd(const TestCase &test_case);
47 virtual void OnEnvironmentsTearDownStart(const UnitTest &unit_test);
48 virtual void OnEnvironmentsTearDownEnd(const UnitTest &unit_test);
49 virtual void OnTestIterationEnd(const UnitTest &unit_test, int iteration);
50 virtual void OnTestProgramEnd(const UnitTest &unit_test);
53 TestEventListener *originalListener() {
54 return m_originalListener;
58 TestEventListener *m_originalListener;
61 } /* namespace Cynara */
63 #endif /* TEST_TESTEVENTLISTENERPROXY_H_ */