Change unittest package name and improves code coverage
[platform/core/appfw/appcore-widget.git] / src / base / widget_base.cc
index 26219b3..20c10e1 100644 (file)
@@ -45,9 +45,11 @@ class AppContext {
     app_id_ = app_id;
   }
 
+/* LCOV_EXCL_START */
   const std::string& GetAppId() const {
     return app_id_;
   }
+/* LCOV_EXCL_STOP */
 
   void SetPackageId(const std::string& package_id) {
     package_id_ = package_id;
@@ -72,7 +74,7 @@ class AppContext {
   bool IsPermanent() const {
     return permanent_;
   }
-
+/* LCOV_EXCL_START */
   void SetFgSignal(bool fg_signal) {
     fg_signal_ = fg_signal;
   }
@@ -80,6 +82,7 @@ class AppContext {
   bool IsFgSignal() const {
     return fg_signal_;
   }
+/* LCOV_EXCL_STOP */
 
   int SendUpdateStatus(const std::string& class_id,
       const std::string& instance_id, int status, int err,
@@ -499,6 +502,7 @@ int WidgetBase::OnControl(tizen_base::Bundle b) {
   return 0;
 }
 
+/* LCOV_EXCL_START */
 void WidgetContext::Impl::OnUpdate(bool force) {
   parent_->OnUpdate(pending_content_.empty() ? tizen_base::Bundle() :
       tizen_base::Bundle(pending_content_), force);
@@ -509,6 +513,7 @@ void WidgetContext::Impl::OnUpdate(bool force) {
       WIDGET_INSTANCE_EVENT_UPDATE, 0, nullptr);
   _D("Updated: %s", id.c_str());
 }
+/* LCOV_EXCL_STOP */
 
 void WidgetContext::Impl::UpdateProcess(const tizen_base::Bundle& b) {
   bool force;
@@ -534,6 +539,7 @@ void WidgetContext::Impl::UpdateProcess(const tizen_base::Bundle& b) {
   }
 }
 
+/* LCOV_EXCL_START */
 void WidgetContext::Impl::SetPeriod(double period) {
   period_ = period;
 }
@@ -548,6 +554,7 @@ void WidgetContext::Impl::SetPeriodicTimer() {
         TimedOutCb, parent_);
   }
 }
+/* LCOV_EXCL_STOP */
 
 void WidgetContext::Impl::UnsetPeriodicTimer() {
   if (periodic_timer_) {
@@ -557,6 +564,7 @@ void WidgetContext::Impl::UnsetPeriodicTimer() {
   }
 }
 
+/* LCOV_EXCL_START */
 gboolean WidgetContext::Impl::TimedOutCb(gpointer user_data) {
   WidgetContext* wc = reinterpret_cast<WidgetContext*>(user_data);
   if (wc->IsResumed()) {
@@ -573,6 +581,7 @@ gboolean WidgetContext::Impl::TimedOutCb(gpointer user_data) {
 
   return G_SOURCE_CONTINUE;
 }
+/* LCOV_EXCL_STOP */
 
 WidgetContext::WidgetContext(std::string context_id, std::string inst_id,
     AppCoreMultiWindowBase* app)
@@ -583,6 +592,7 @@ WidgetContext::WidgetContext(std::string context_id, std::string inst_id,
 
 WidgetContext::~WidgetContext() = default;
 
+/* LCOV_EXCL_START */
 void WidgetContext::OnPause() {
   std::string id = GetInstId();
   _D("WidgetContext(%s) is paused", id.c_str());
@@ -617,6 +627,7 @@ void WidgetContext::OnResume() {
     __context.SetFgSignal(true);
   }
 }
+/* LCOV_EXCL_STOP */
 
 void WidgetContext::OnResize(int w, int h) {
 }