void FakeRun(int argc, char** argv) {}
+// LCOV_EXCL_START
void FakeAddEvent(std::shared_ptr<tizen_cpp::AppCoreBase::EventBase> event) {}
+// LCOV_EXCL_STOP
bool FakeRemoveEvent(std::shared_ptr<tizen_cpp::AppCoreBase::EventBase> event) {
return true;
void FakeExit() {}
-int FakeGetWindowPosition(int* x, int* y, int* w, int* h) {
- *x = 1920;
- *y = 1024;
- *w = 1920;
- *h = 1024;
- return 0;
-}
-
void FakeOnLoopInit(int argc, char** argv) {
loop_ = g_main_loop_new(nullptr, FALSE);
}
void AppControlCb(app_control_h app_control, void* user_data) {}
+// LCOV_EXCL_START
void AppLowMemoryCb(void* user_data) {}
void AppLowBatteryCb(void* user_data) {}
void AppLanguageChangedCb(void* user_data) {}
void AppRegionFormatChangedCb(void* user_data) {}
+// LCOV_EXCL_STOP
} // namespace
.WillRepeatedly(Invoke(FakeAddEvent));
EXPECT_CALL(GetMock<AppCoreEflMock>(), RemoveEvent(_))
.WillRepeatedly(Invoke(FakeRemoveEvent));
- EXPECT_CALL(GetMock<AppCoreEflMock>(), GetWindowPosition(_, _, _, _))
- .WillRepeatedly(Invoke(FakeGetWindowPosition));
EXPECT_CALL(GetMock<AppCoreEflMock>(), OnLoopInit(_, _))
.WillRepeatedly(Invoke(FakeOnLoopInit));
EXPECT_CALL(GetMock<AppCoreEflMock>(), OnLoopFinish())
void FakeRun(int argc, char** argv) {}
+// LCOV_EXCL_START
void FakeAddEvent(std::shared_ptr<tizen_cpp::AppCoreBase::EventBase> event) {}
bool FakeRemoveEvent(std::shared_ptr<tizen_cpp::AppCoreBase::EventBase> event) {
return true;
}
+// LCOV_EXCL_STOP
void FakeExit() {}
void AppControlCb(app_control_h app_control, void* user_data) {}
-void AppEventCb(app_event_info_h event_info, void* user_data) {}
+void AppEventCb(app_event_info_h event_info, void* user_data) {} // LCOV_EXCL_LINE
} // namespace
mock_.reset();
}
- virtual void SetUp() {}
- virtual void TearDown() {}
+ virtual void SetUp() {} // LCOV_EXCL_LINE
+ virtual void TearDown() {} // LCOV_EXCL_LINE
template <typename T>
static T& GetMock() {
auto ptr = dynamic_cast<T*>(mock_.get());
- if (!ptr)
+ if (!ptr) {
+ // LCOV_EXCL_START
throw std::invalid_argument("The test does not provide mock of \"" +
std::string(typeid(T).name()) + "\"");
+ // LCOV_EXCL_STOP
+ }
+
return *ptr;
}