diff options
author | slan <slan@chromium.org> | 2015-09-21 12:54:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-21 19:54:56 +0000 |
commit | 66aaf7e5ac9bd3f5c516b3ea0e36247359eefd5d (patch) | |
tree | 7a1de6e6ee17afe80bc494abb1f1dce27f23611e /chromecast/media/audio | |
parent | 53c64f901c142b0ba2827f8476d3059039edf662 (diff) | |
download | chromium_src-66aaf7e5ac9bd3f5c516b3ea0e36247359eefd5d.zip chromium_src-66aaf7e5ac9bd3f5c516b3ea0e36247359eefd5d.tar.gz chromium_src-66aaf7e5ac9bd3f5c516b3ea0e36247359eefd5d.tar.bz2 |
[Chromecast] Add a return value after NOTREACHED in tests.
Required to compile on internal ARM compiler.
BUG=
Review URL: https://codereview.chromium.org/1351493003
Cr-Commit-Position: refs/heads/master@{#349997}
Diffstat (limited to 'chromecast/media/audio')
-rw-r--r-- | chromecast/media/audio/BUILD.gn | 4 | ||||
-rw-r--r-- | chromecast/media/audio/cast_audio_output_stream_unittest.cc | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/chromecast/media/audio/BUILD.gn b/chromecast/media/audio/BUILD.gn index 87a6caa..a5ca0f1 100644 --- a/chromecast/media/audio/BUILD.gn +++ b/chromecast/media/audio/BUILD.gn @@ -26,10 +26,6 @@ source_set("audio") { source_set("test_support") { testonly = true - sources = [ - "cast_audio_output_stream_unittest.cc", - ] - configs += [ "//chromecast:config" ] deps = [ diff --git a/chromecast/media/audio/cast_audio_output_stream_unittest.cc b/chromecast/media/audio/cast_audio_output_stream_unittest.cc index a1e491a..8d885f9 100644 --- a/chromecast/media/audio/cast_audio_output_stream_unittest.cc +++ b/chromecast/media/audio/cast_audio_output_stream_unittest.cc @@ -80,8 +80,12 @@ class FakeAudioPipelineDevice : public AudioPipelineDevice { return kFramePending; case PIPELINE_STATUS_ERROR: return kFrameFailed; + default: + NOTREACHED(); } - NOTREACHED(); + + // This will never be reached but is necessary for compiler warnings. + return kFrameFailed; } RenderingDelay GetRenderingDelay() const override { return RenderingDelay(); } bool GetStatistics(Statistics* stats) const override { return false; } |