Shaka Packager SDK
Loading...
Searching...
No Matches
packager
utils
test_clock.h
1
// Copyright 2023 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
#ifndef SHAKA_PACKAGER_TEST_CLOCK_H
8
#define SHAKA_PACKAGER_TEST_CLOCK_H
9
10
#include <chrono>
11
#include <string>
12
13
#include <packager/utils/clock.h>
14
15
namespace
shaka
{
16
17
class
TestClock
:
public
Clock
{
18
public
:
19
explicit
TestClock
(std::string utc_time_8601);
20
time_point now()
noexcept
override
{
return
mock_time_; }
21
22
private
:
23
time_point mock_time_;
24
};
25
26
}
// namespace shaka
27
28
#endif
shaka::Clock
Definition
clock.h:14
shaka::TestClock
Definition
test_clock.h:17
shaka
All the methods that are virtual are virtual for mocking.
Definition
crypto_flags.cc:66
Generated on Fri Jan 17 2025 22:20:43 for Shaka Packager SDK by
1.9.8