Shaka Packager SDK
single_thread_job_manager.cc
1 // Copyright 2020 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/app/single_thread_job_manager.h>
8 
9 #include <packager/media/chunking/sync_point_queue.h>
10 #include <packager/media/origin/origin_handler.h>
11 
12 namespace shaka {
13 namespace media {
14 
15 SingleThreadJobManager::SingleThreadJobManager(
16  std::unique_ptr<SyncPointQueue> sync_points)
17  : JobManager(std::move(sync_points)) {}
18 
19 Status SingleThreadJobManager::RunJobs() {
20  Status status;
21 
22  for (auto& job : jobs_)
23  status.Update(job->Run());
24 
25  return status;
26 }
27 
28 } // namespace media
29 } // namespace shaka
All the methods that are virtual are virtual for mocking.
Definition: crypto_flags.cc:66