Shaka Packager SDK
origin_handler.cc
1 // Copyright 2017 Google Inc. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 
7 #include "packager/media/origin/origin_handler.h"
8 
9 namespace shaka {
10 namespace media {
11 
12 // Origin handlers are always at the start of a pipeline (chain or handlers)
13 // and therefore should never receive input via |Process|.
14 Status OriginHandler::Process(std::unique_ptr<StreamData> stream_data) {
15  return Status(error::INTERNAL_ERROR,
16  "An origin handlers should never be a downstream handler.");
17 }
18 
19 } // namespace media
20 } // namespace shaka
shaka
All the methods that are virtual are virtual for mocking.
Definition: gflags_hex_bytes.cc:11