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:
Fang Yu
2019-01-18 13:31:03 -08:00
parent c20687acf3
commit 6a1fcfa108
4 changed files with 3 additions and 6 deletions

View File

@@ -8,9 +8,9 @@
// Example of how to use types/functions in wv_cas_types. // Example of how to use types/functions in wv_cas_types.
#include <iostream>
#include <string> #include <string>
#include "glog/logging.h"
#include "media_cas_packager_sdk/public/wv_cas_types.h" #include "media_cas_packager_sdk/public/wv_cas_types.h"
void CallCreateWvCasEncryptionRequestJson() { void CallCreateWvCasEncryptionRequestJson() {
@@ -21,7 +21,8 @@ void CallCreateWvCasEncryptionRequestJson() {
request.key_rotation = true; request.key_rotation = true;
std::string request_json; std::string request_json;
widevine::cas::CreateWvCasEncryptionRequestJson(request, &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) { int main(int argc, char **argv) {

View File

@@ -161,7 +161,6 @@ cc_library(
deps = [ deps = [
"//base", "//base",
"//protos/public:media_cas_encryption_proto", "//protos/public:media_cas_encryption_proto",
"//common:status",
], ],
) )

View File

@@ -11,7 +11,6 @@
#include "glog/logging.h" #include "glog/logging.h"
#include "base/macros.h" #include "base/macros.h"
#include "google/protobuf/util/json_util.h" #include "google/protobuf/util/json_util.h"
#include "common/status.h"
#include "protos/public/media_cas_encryption.pb.h" #include "protos/public/media_cas_encryption.pb.h"
using google::protobuf::util::JsonPrintOptions; using google::protobuf::util::JsonPrintOptions;

View File

@@ -12,8 +12,6 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "common/status.h"
namespace widevine { namespace widevine {
namespace cas { namespace cas {