1) Removes dependency of common/status.h from wv_cas_types.
2) Do not use glogs in example binary code. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=229984175
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
|
||||
// Example of how to use types/functions in wv_cas_types.
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "glog/logging.h"
|
||||
#include "media_cas_packager_sdk/public/wv_cas_types.h"
|
||||
|
||||
void CallCreateWvCasEncryptionRequestJson() {
|
||||
@@ -21,7 +21,8 @@ void CallCreateWvCasEncryptionRequestJson() {
|
||||
request.key_rotation = true;
|
||||
std::string request_json;
|
||||
widevine::cas::CreateWvCasEncryptionRequestJson(request, &request_json);
|
||||
LOG(INFO) << "CreateWvCasEncryptionRequestJson returns " << request_json;
|
||||
std::cout << "CreateWvCasEncryptionRequestJson returns " << request_json
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
@@ -161,7 +161,6 @@ cc_library(
|
||||
deps = [
|
||||
"//base",
|
||||
"//protos/public:media_cas_encryption_proto",
|
||||
"//common:status",
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
#include "glog/logging.h"
|
||||
#include "base/macros.h"
|
||||
#include "google/protobuf/util/json_util.h"
|
||||
#include "common/status.h"
|
||||
#include "protos/public/media_cas_encryption.pb.h"
|
||||
|
||||
using google::protobuf::util::JsonPrintOptions;
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "common/status.h"
|
||||
|
||||
namespace widevine {
|
||||
namespace cas {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user