2 * Copyright (c) 2020 - 2021 Samsung Electronics Co., Ltd.
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 #include "appcore_mock.h"
18 #include "mock_hook.h"
19 #include "test_fixture.h"
23 void AppCoreBase::Run(int argc, char** argv) {
24 TestFixture::GetMock<AppCoreMock>().Run(argc, argv);
25 TestFixture::GetMock<AppCoreMock>().OnLoopInit(argc, argv, this);
26 TestFixture::GetMock<AppCoreMock>().OnCreate();
27 TestFixture::GetMock<AppCoreMock>().OnLoopRun();
28 TestFixture::GetMock<AppCoreMock>().OnLoopFinish();
29 TestFixture::GetMock<AppCoreMock>().OnTerminate();
32 void AppCoreBase::Exit() {
33 TestFixture::GetMock<AppCoreMock>().Exit();
34 TestFixture::GetMock<AppCoreMock>().OnLoopExit();
37 } // namespace tizen_cpp