9 #include <packager/app/playready_key_encryption_flags.h>
11 #include <packager/app/validate_flag.h>
14 enable_playready_encryption,
16 "Enable encryption with PlayReady key.");
17 ABSL_FLAG(std::string,
20 "PlayReady packaging server url.");
21 ABSL_FLAG(std::string,
24 "Program identifier for packaging request.");
28 const bool kFlagIsOptional =
true;
34 const char playready_label[] =
"--enable_playready_encryption";
35 bool playready_enabled = absl::GetFlag(FLAGS_enable_playready_encryption);
37 absl::GetFlag(FLAGS_playready_server_url),
38 playready_enabled, !kFlagIsOptional, playready_label)) {
42 absl::GetFlag(FLAGS_program_identifier), playready_enabled,
43 !kFlagIsOptional, playready_label)) {
All the methods that are virtual are virtual for mocking.
bool ValidatePRCryptoFlags()
bool ValidateFlag(const char *flag_name, const FlagType &flag_value, bool condition, bool optional, const char *label)