Merge branch 'tizen_line_coverage' into tizen 46/209446/1
authorSeungbae Shin <seungbae.shin@samsung.com>
Mon, 8 Jul 2019 05:40:22 +0000 (14:40 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Mon, 8 Jul 2019 05:40:22 +0000 (14:40 +0900)
Change-Id: Ia162ed8e8ea4bb8d60ce2ae1333d5e5c232caa12

1  2 
src/cpp/CAudioOutput.cpp

diff --combined src/cpp/CAudioOutput.cpp
@@@ -33,6 -33,7 +33,7 @@@ CAudioOutput::CAudioOutput(CAudioInfo& 
      mDirection = CAudioInfo::EAudioDirection::AUDIO_DIRECTION_OUT;
  }
  
+ //LCOV_EXCL_START
  CAudioOutput::CAudioOutput(
          unsigned int            sampleRate,
          CAudioInfo::EChannel    channel,
@@@ -43,6 -44,7 +44,7 @@@
      mDirection = CAudioInfo::EAudioDirection::AUDIO_DIRECTION_OUT;
      mAudioInfo = CAudioInfo(sampleRate, channel, sampleType, audioType, -1);
  }
+ //LCOV_EXCL_STOP
  
  CAudioOutput::~CAudioOutput() {
  }
@@@ -141,8 -143,6 +143,8 @@@ void CAudioOutput::prepare() 
          /* Override the default value by audio type */
          if (audioType == CAudioInfo::EAudioType::AUDIO_OUT_TYPE_VOIP)
              streamSpec = CPulseStreamSpec::EStreamLatency::STREAM_LATENCY_OUTPUT_VOIP;
 +        else if (audioType == CAudioInfo::EAudioType::AUDIO_OUT_TYPE_MEDIA_NETWORK_SOURCE)
 +            streamSpec = CPulseStreamSpec::EStreamLatency::STREAM_LATENCY_OUTPUT_HIGH;
  
          CPulseStreamSpec spec(streamSpec, mAudioInfo);
  
          internalUnlock();
          throw;
      } catch (const std::bad_alloc&) {
+ //LCOV_EXCL_START
          internalUnlock();
          THROW_ERROR_MSG(CAudioError::EError::ERROR_OUT_OF_MEMORY, "Failed to allocate CPulseAudioClient object");
+ //LCOV_EXCL_STOP
      }
  }
  
@@@ -312,8 -314,8 +316,8 @@@ size_t CAudioOutput::write(const void* 
  
              int ret = mpPulseAudioClient->write(buffer, l);
              if (ret < 0)
-                 THROW_ERROR_MSG_FORMAT(CAudioError::EError::ERROR_INTERNAL_OPERATION,
-                                        "The written result is invalid ret:%d", ret);
+                 THROW_ERROR_MSG_FORMAT(CAudioError::EError::ERROR_INTERNAL_OPERATION,//LCOV_EXCL_LINE
+                                        "The written result is invalid ret:%d", ret); //LCOV_EXCL_LINE
  
              buffer = static_cast<const uint8_t*>(buffer) + l;
              lengthIter -= l;