Shaka Packager SDK
origin_handler.cc
1 // Copyright 2017 Google LLC. 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 #include <packager/status.h>
10 
11 namespace shaka {
12 namespace media {
13 
14 // Origin handlers are always at the start of a pipeline (chain or handlers)
15 // and therefore should never receive input via |Process|.
16 Status OriginHandler::Process(std::unique_ptr<StreamData> /* ignored */) {
17  return Status(error::INTERNAL_ERROR,
18  "An origin handlers should never be a downstream handler.");
19 }
20 
21 } // namespace media
22 } // namespace shaka
All the methods that are virtual are virtual for mocking.
Definition: crypto_flags.cc:66