// Copyright 2021 Google LLC. All Rights Reserved. This file and proprietary // source code may only be used and distributed under the Widevine License // Agreement. #include "okp_info.h" namespace wvcdm { namespace okp { const char* SystemStateToString(SystemState state) { switch (state) { case SystemState::kNeedsProvisioning: return "NeedsProvisioning"; case SystemState::kFallbackMode: return "FallbackMode"; case SystemState::kProvisioned: return "Provisioned"; case SystemState::kUnknown: default: return "Unknown"; } } bool SystemFallbackInfo::operator==(const SystemFallbackInfo& other) const { if (this == &other) return true; if (state_ != other.state_) return false; if (first_checked_time_ != other.first_checked_time_) return false; if (backoff_start_time_ != other.backoff_start_time_) return false; if (backoff_duration_ != other.backoff_duration_) return false; if (provisioning_time_ != other.provisioning_time_) return false; return true; } } // namespace okp } // namespace wvcdm